azure-native.cognitiveservices.Deployment
Explore with Pulumi AI
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:
- Account
Name string - The name of Cognitive Services account.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Deployment
Name string - The name of the deployment associated with the Cognitive Services Account
- Properties
Pulumi.
Azure Native. Cognitive Services. Inputs. Deployment Properties - Properties of Cognitive Services account deployment.
- Account
Name string - The name of Cognitive Services account.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Deployment
Name string - The name of the deployment associated with the Cognitive Services Account
- Properties
Deployment
Properties Args - Properties of Cognitive Services account deployment.
- account
Name String - The name of Cognitive Services account.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- deployment
Name String - The name of the deployment associated with the Cognitive Services Account
- properties
Deployment
Properties - Properties of Cognitive Services account deployment.
- account
Name string - The name of Cognitive Services account.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- deployment
Name string - The name of the deployment associated with the Cognitive Services Account
- properties
Deployment
Properties - Properties of Cognitive Services account deployment.
- account_
name str - The name of Cognitive Services account.
- resource_
group_ strname - 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
Deployment
Properties Args - Properties of Cognitive Services account deployment.
- account
Name String - The name of Cognitive Services account.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- deployment
Name 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
- System
Data Pulumi.Azure Native. Cognitive Services. Outputs. System Data Response - 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
- System
Data SystemData Response - 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
- system
Data SystemData Response - 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
- system
Data SystemData Response - 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 SystemData Response - 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
- system
Data 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
DeploymentModelResponse, DeploymentModelResponseArgs
DeploymentProperties, DeploymentPropertiesArgs
- Model
Pulumi.
Azure Native. Cognitive Services. Inputs. Deployment Model - Properties of Cognitive Services account deployment model.
- Scale
Settings Pulumi.Azure Native. Cognitive Services. Inputs. Deployment Scale Settings - Properties of Cognitive Services account deployment model.
- Model
Deployment
Model - Properties of Cognitive Services account deployment model.
- Scale
Settings DeploymentScale Settings - Properties of Cognitive Services account deployment model.
- model
Deployment
Model - Properties of Cognitive Services account deployment model.
- scale
Settings DeploymentScale Settings - Properties of Cognitive Services account deployment model.
- model
Deployment
Model - Properties of Cognitive Services account deployment model.
- scale
Settings DeploymentScale Settings - Properties of Cognitive Services account deployment model.
- model
Deployment
Model - Properties of Cognitive Services account deployment model.
- scale_
settings DeploymentScale Settings - Properties of Cognitive Services account deployment model.
- model Property Map
- Properties of Cognitive Services account deployment model.
- scale
Settings Property Map - Properties of Cognitive Services account deployment model.
DeploymentPropertiesResponse, DeploymentPropertiesResponseArgs
- Provisioning
State string - Gets the status of the resource at the time the operation was called.
- Model
Pulumi.
Azure Native. Cognitive Services. Inputs. Deployment Model Response - Properties of Cognitive Services account deployment model.
- Scale
Settings Pulumi.Azure Native. Cognitive Services. Inputs. Deployment Scale Settings Response - Properties of Cognitive Services account deployment model.
- Provisioning
State string - Gets the status of the resource at the time the operation was called.
- Model
Deployment
Model Response - Properties of Cognitive Services account deployment model.
- Scale
Settings DeploymentScale Settings Response - Properties of Cognitive Services account deployment model.
- provisioning
State String - Gets the status of the resource at the time the operation was called.
- model
Deployment
Model Response - Properties of Cognitive Services account deployment model.
- scale
Settings DeploymentScale Settings Response - Properties of Cognitive Services account deployment model.
- provisioning
State string - Gets the status of the resource at the time the operation was called.
- model
Deployment
Model Response - Properties of Cognitive Services account deployment model.
- scale
Settings DeploymentScale Settings Response - Properties of Cognitive Services account deployment model.
- provisioning_
state str - Gets the status of the resource at the time the operation was called.
- model
Deployment
Model Response - Properties of Cognitive Services account deployment model.
- scale_
settings DeploymentScale Settings Response - Properties of Cognitive Services account deployment model.
- provisioning
State String - Gets the status of the resource at the time the operation was called.
- model Property Map
- Properties of Cognitive Services account deployment model.
- scale
Settings Property Map - Properties of Cognitive Services account deployment model.
DeploymentScaleSettings, DeploymentScaleSettingsArgs
- Capacity int
- Deployment capacity.
- Scale
Type string | Pulumi.Azure Native. Cognitive Services. Deployment Scale Type - Deployment scale type.
- Capacity int
- Deployment capacity.
- Scale
Type string | DeploymentScale Type - Deployment scale type.
- capacity Integer
- Deployment capacity.
- scale
Type String | DeploymentScale Type - Deployment scale type.
- capacity number
- Deployment capacity.
- scale
Type string | DeploymentScale Type - Deployment scale type.
- capacity int
- Deployment capacity.
- scale_
type str | DeploymentScale Type - Deployment scale type.
- capacity Number
- Deployment capacity.
- scale
Type String | "Standard" | "Manual" - Deployment scale type.
DeploymentScaleSettingsResponse, DeploymentScaleSettingsResponseArgs
- capacity int
- Deployment capacity.
- scale_
type str - Deployment scale type.
DeploymentScaleType, DeploymentScaleTypeArgs
- Standard
- Standard
- Manual
- Manual
- Deployment
Scale Type Standard - Standard
- Deployment
Scale Type Manual - Manual
- Standard
- Standard
- Manual
- Manual
- Standard
- Standard
- Manual
- Manual
- STANDARD
- Standard
- MANUAL
- Manual
- "Standard"
- Standard
- "Manual"
- Manual
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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