DeploymentArgs

data class DeploymentArgs(val accountName: Output<String>? = null, val deploymentName: Output<String>? = null, val properties: Output<DeploymentPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<DeploymentArgs>

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

Example Usage

PutDeployment

using System.Collections.Generic;
using System.Linq;
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/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

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, deploymentName: Output<String>? = null, properties: Output<DeploymentPropertiesArgs>? = null, resourceGroupName: Output<String>? = null)

Properties

Link copied to clipboard
val accountName: Output<String>? = null

The name of Cognitive Services account.

Link copied to clipboard
val deploymentName: Output<String>? = null

The name of the deployment associated with the Cognitive Services Account

Link copied to clipboard

Properties of Cognitive Services account deployment.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Functions

Link copied to clipboard
open override fun toJava(): DeploymentArgs