1. Packages
  2. Azure Native v1
  3. API Docs
  4. cognitiveservices
  5. Deployment
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.cognitiveservices.Deployment

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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 pulumi
    import pulumi_azure_native as azure_native
    
    deployment = azure_native.cognitiveservices.Deployment("deployment",
        account_name="accountName",
        deployment_name="deploymentName",
        properties=azure_native.cognitiveservices.DeploymentPropertiesResponseArgs(
            model=azure_native.cognitiveservices.DeploymentModelArgs(
                format="OpenAI",
                name="ada",
                version="1",
            ),
            scale_settings=azure_native.cognitiveservices.DeploymentScaleSettingsArgs(
                capacity=1,
                scale_type="Manual",
            ),
        ),
        resource_group_name="resourceGroupName")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const deployment = new azure_native.cognitiveservices.Deployment("deployment", {
        accountName: "accountName",
        deploymentName: "deploymentName",
        properties: {
            model: {
                format: "OpenAI",
                name: "ada",
                version: "1",
            },
            scaleSettings: {
                capacity: 1,
                scaleType: "Manual",
            },
        },
        resourceGroupName: "resourceGroupName",
    });
    
    resources:
      deployment:
        type: azure-native:cognitiveservices:Deployment
        properties:
          accountName: accountName
          deploymentName: deploymentName
          properties:
            model:
              format: OpenAI
              name: ada
              version: '1'
            scaleSettings:
              capacity: 1
              scaleType: Manual
          resourceGroupName: resourceGroupName
    

    Create Deployment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Deployment(name: string, args: DeploymentArgs, opts?: CustomResourceOptions);
    @overload
    def Deployment(resource_name: str,
                   args: DeploymentArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Deployment(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   account_name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   deployment_name: Optional[str] = None,
                   properties: Optional[DeploymentPropertiesArgs] = None)
    func NewDeployment(ctx *Context, name string, args DeploymentArgs, opts ...ResourceOption) (*Deployment, error)
    public Deployment(string name, DeploymentArgs args, CustomResourceOptions? opts = null)
    public Deployment(String name, DeploymentArgs args)
    public Deployment(String name, DeploymentArgs args, CustomResourceOptions options)
    
    type: azure-native:cognitiveservices:Deployment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DeploymentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DeploymentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DeploymentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeploymentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeploymentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var exampledeploymentResourceResourceFromCognitiveservices = new AzureNative.Cognitiveservices.Deployment("exampledeploymentResourceResourceFromCognitiveservices", new()
    {
        AccountName = "string",
        ResourceGroupName = "string",
        DeploymentName = "string",
        Properties = 
        {
            { "model", 
            {
                { "format", "string" },
                { "name", "string" },
                { "version", "string" },
            } },
            { "scaleSettings", 
            {
                { "capacity", 0 },
                { "scaleType", "string" },
            } },
        },
    });
    
    example, err := cognitiveservices.NewDeployment(ctx, "exampledeploymentResourceResourceFromCognitiveservices", &cognitiveservices.DeploymentArgs{
    	AccountName:       "string",
    	ResourceGroupName: "string",
    	DeploymentName:    "string",
    	Properties: map[string]interface{}{
    		"model": map[string]interface{}{
    			"format":  "string",
    			"name":    "string",
    			"version": "string",
    		},
    		"scaleSettings": map[string]interface{}{
    			"capacity":  0,
    			"scaleType": "string",
    		},
    	},
    })
    
    var exampledeploymentResourceResourceFromCognitiveservices = new Deployment("exampledeploymentResourceResourceFromCognitiveservices", DeploymentArgs.builder()
        .accountName("string")
        .resourceGroupName("string")
        .deploymentName("string")
        .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    exampledeployment_resource_resource_from_cognitiveservices = azure_native.cognitiveservices.Deployment("exampledeploymentResourceResourceFromCognitiveservices",
        account_name=string,
        resource_group_name=string,
        deployment_name=string,
        properties={
            model: {
                format: string,
                name: string,
                version: string,
            },
            scaleSettings: {
                capacity: 0,
                scaleType: string,
            },
        })
    
    const exampledeploymentResourceResourceFromCognitiveservices = new azure_native.cognitiveservices.Deployment("exampledeploymentResourceResourceFromCognitiveservices", {
        accountName: "string",
        resourceGroupName: "string",
        deploymentName: "string",
        properties: {
            model: {
                format: "string",
                name: "string",
                version: "string",
            },
            scaleSettings: {
                capacity: 0,
                scaleType: "string",
            },
        },
    });
    
    type: azure-native:cognitiveservices:Deployment
    properties:
        accountName: string
        deploymentName: string
        properties:
            model:
                format: string
                name: string
                version: string
            scaleSettings:
                capacity: 0
                scaleType: string
        resourceGroupName: string
    

    Deployment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Deployment resource accepts the following input properties:

    AccountName string
    The name of Cognitive Services account.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DeploymentName string
    The name of the deployment associated with the Cognitive Services Account
    Properties Pulumi.AzureNative.CognitiveServices.Inputs.DeploymentProperties
    Properties of Cognitive Services account deployment.
    AccountName string
    The name of Cognitive Services account.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DeploymentName string
    The name of the deployment associated with the Cognitive Services Account
    Properties DeploymentPropertiesArgs
    Properties of Cognitive Services account deployment.
    accountName String
    The name of Cognitive Services account.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    deploymentName String
    The name of the deployment associated with the Cognitive Services Account
    properties DeploymentProperties
    Properties of Cognitive Services account deployment.
    accountName string
    The name of Cognitive Services account.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    deploymentName string
    The name of the deployment associated with the Cognitive Services Account
    properties DeploymentProperties
    Properties of Cognitive Services account deployment.
    account_name str
    The name of Cognitive Services account.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    deployment_name str
    The name of the deployment associated with the Cognitive Services Account
    properties DeploymentPropertiesArgs
    Properties of Cognitive Services account deployment.
    accountName String
    The name of Cognitive Services account.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    deploymentName String
    The name of the deployment associated with the Cognitive Services Account
    properties Property Map
    Properties of Cognitive Services account deployment.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Deployment resource produces the following output properties:

    Etag string
    Resource Etag.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.CognitiveServices.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Etag string
    Resource Etag.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    etag String
    Resource Etag.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    etag string
    Resource Etag.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    etag str
    Resource Etag.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    etag String
    Resource Etag.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Metadata pertaining to creation and last modification of the resource.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    DeploymentModel, DeploymentModelArgs

    Format string
    Deployment model format.
    Name string
    Deployment model name.
    Version string
    Deployment model version.
    Format string
    Deployment model format.
    Name string
    Deployment model name.
    Version string
    Deployment model version.
    format String
    Deployment model format.
    name String
    Deployment model name.
    version String
    Deployment model version.
    format string
    Deployment model format.
    name string
    Deployment model name.
    version string
    Deployment model version.
    format str
    Deployment model format.
    name str
    Deployment model name.
    version str
    Deployment model version.
    format String
    Deployment model format.
    name String
    Deployment model name.
    version String
    Deployment model version.

    DeploymentModelResponse, DeploymentModelResponseArgs

    Format string
    Deployment model format.
    Name string
    Deployment model name.
    Version string
    Deployment model version.
    Format string
    Deployment model format.
    Name string
    Deployment model name.
    Version string
    Deployment model version.
    format String
    Deployment model format.
    name String
    Deployment model name.
    version String
    Deployment model version.
    format string
    Deployment model format.
    name string
    Deployment model name.
    version string
    Deployment model version.
    format str
    Deployment model format.
    name str
    Deployment model name.
    version str
    Deployment model version.
    format String
    Deployment model format.
    name String
    Deployment model name.
    version String
    Deployment model version.

    DeploymentProperties, DeploymentPropertiesArgs

    Model Pulumi.AzureNative.CognitiveServices.Inputs.DeploymentModel
    Properties of Cognitive Services account deployment model.
    ScaleSettings Pulumi.AzureNative.CognitiveServices.Inputs.DeploymentScaleSettings
    Properties of Cognitive Services account deployment model.
    Model DeploymentModel
    Properties of Cognitive Services account deployment model.
    ScaleSettings DeploymentScaleSettings
    Properties of Cognitive Services account deployment model.
    model DeploymentModel
    Properties of Cognitive Services account deployment model.
    scaleSettings DeploymentScaleSettings
    Properties of Cognitive Services account deployment model.
    model DeploymentModel
    Properties of Cognitive Services account deployment model.
    scaleSettings DeploymentScaleSettings
    Properties of Cognitive Services account deployment model.
    model DeploymentModel
    Properties of Cognitive Services account deployment model.
    scale_settings DeploymentScaleSettings
    Properties of Cognitive Services account deployment model.
    model Property Map
    Properties of Cognitive Services account deployment model.
    scaleSettings Property Map
    Properties of Cognitive Services account deployment model.

    DeploymentPropertiesResponse, DeploymentPropertiesResponseArgs

    ProvisioningState string
    Gets the status of the resource at the time the operation was called.
    Model Pulumi.AzureNative.CognitiveServices.Inputs.DeploymentModelResponse
    Properties of Cognitive Services account deployment model.
    ScaleSettings Pulumi.AzureNative.CognitiveServices.Inputs.DeploymentScaleSettingsResponse
    Properties of Cognitive Services account deployment model.
    ProvisioningState string
    Gets the status of the resource at the time the operation was called.
    Model DeploymentModelResponse
    Properties of Cognitive Services account deployment model.
    ScaleSettings DeploymentScaleSettingsResponse
    Properties of Cognitive Services account deployment model.
    provisioningState String
    Gets the status of the resource at the time the operation was called.
    model DeploymentModelResponse
    Properties of Cognitive Services account deployment model.
    scaleSettings DeploymentScaleSettingsResponse
    Properties of Cognitive Services account deployment model.
    provisioningState string
    Gets the status of the resource at the time the operation was called.
    model DeploymentModelResponse
    Properties of Cognitive Services account deployment model.
    scaleSettings DeploymentScaleSettingsResponse
    Properties of Cognitive Services account deployment model.
    provisioning_state str
    Gets the status of the resource at the time the operation was called.
    model DeploymentModelResponse
    Properties of Cognitive Services account deployment model.
    scale_settings DeploymentScaleSettingsResponse
    Properties of Cognitive Services account deployment model.
    provisioningState String
    Gets the status of the resource at the time the operation was called.
    model Property Map
    Properties of Cognitive Services account deployment model.
    scaleSettings Property Map
    Properties of Cognitive Services account deployment model.

    DeploymentScaleSettings, DeploymentScaleSettingsArgs

    Capacity int
    Deployment capacity.
    ScaleType string | Pulumi.AzureNative.CognitiveServices.DeploymentScaleType
    Deployment scale type.
    Capacity int
    Deployment capacity.
    ScaleType string | DeploymentScaleType
    Deployment scale type.
    capacity Integer
    Deployment capacity.
    scaleType String | DeploymentScaleType
    Deployment scale type.
    capacity number
    Deployment capacity.
    scaleType string | DeploymentScaleType
    Deployment scale type.
    capacity int
    Deployment capacity.
    scale_type str | DeploymentScaleType
    Deployment scale type.
    capacity Number
    Deployment capacity.
    scaleType String | "Standard" | "Manual"
    Deployment scale type.

    DeploymentScaleSettingsResponse, DeploymentScaleSettingsResponseArgs

    Capacity int
    Deployment capacity.
    ScaleType string
    Deployment scale type.
    Capacity int
    Deployment capacity.
    ScaleType string
    Deployment scale type.
    capacity Integer
    Deployment capacity.
    scaleType String
    Deployment scale type.
    capacity number
    Deployment capacity.
    scaleType string
    Deployment scale type.
    capacity int
    Deployment capacity.
    scale_type str
    Deployment scale type.
    capacity Number
    Deployment capacity.
    scaleType String
    Deployment scale type.

    DeploymentScaleType, DeploymentScaleTypeArgs

    Standard
    Standard
    Manual
    Manual
    DeploymentScaleTypeStandard
    Standard
    DeploymentScaleTypeManual
    Manual
    Standard
    Standard
    Manual
    Manual
    Standard
    Standard
    Manual
    Manual
    STANDARD
    Standard
    MANUAL
    Manual
    "Standard"
    Standard
    "Manual"
    Manual

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    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 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi