Deployment

Cognitive Services account deployment. API Version: 2021-10-01.

Example Usage

PutDeployment

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var deployment = new AzureNative.CognitiveServices.Deployment("deployment", new()
{
AccountName = "accountName",
DeploymentName = "deploymentName",
Properties = new AzureNative.CognitiveServices.Inputs.DeploymentPropertiesArgs
{
Model = new AzureNative.CognitiveServices.Inputs.DeploymentModelArgs
{
Format = "OpenAI",
Name = "ada",
Version = "1",
},
ScaleSettings = new AzureNative.CognitiveServices.Inputs.DeploymentScaleSettingsArgs
{
Capacity = 1,
ScaleType = "Manual",
},
},
ResourceGroupName = "resourceGroupName",
});
});
package main
import (
cognitiveservices "github.com/pulumi/pulumi-azure-native/sdk/go/azure/cognitiveservices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cognitiveservices.NewDeployment(ctx, "deployment", &cognitiveservices.DeploymentArgs{
AccountName: pulumi.String("accountName"),
DeploymentName: pulumi.String("deploymentName"),
Properties: cognitiveservices.DeploymentPropertiesResponse{
Model: &cognitiveservices.DeploymentModelArgs{
Format: pulumi.String("OpenAI"),
Name: pulumi.String("ada"),
Version: pulumi.String("1"),
},
ScaleSettings: &cognitiveservices.DeploymentScaleSettingsArgs{
Capacity: pulumi.Int(1),
ScaleType: pulumi.String("Manual"),
},
},
ResourceGroupName: pulumi.String("resourceGroupName"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cognitiveservices.Deployment;
import com.pulumi.azurenative.cognitiveservices.DeploymentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var deployment = new Deployment("deployment", DeploymentArgs.builder()
.accountName("accountName")
.deploymentName("deploymentName")
.properties(Map.ofEntries(
Map.entry("model", Map.ofEntries(
Map.entry("format", "OpenAI"),
Map.entry("name", "ada"),
Map.entry("version", "1")
)),
Map.entry("scaleSettings", Map.ofEntries(
Map.entry("capacity", 1),
Map.entry("scaleType", "Manual")
))
))
.resourceGroupName("resourceGroupName")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:cognitiveservices:Deployment deploymentName /subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/deployments/deploymentName

Properties

Link copied to clipboard
val etag: Output<String>

Resource Etag.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Properties of Cognitive Services account deployment.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>