Deployments - Create Or Update
Deploys resources to a resource group.
You can provide the template and parameters directly in the request or link to JSON files.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2025-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
deployment
|
path | True |
string minLength: 1maxLength: 64 pattern: ^[-\w\._\(\)]+$ |
The name of the deployment. |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+$ |
The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. |
subscription
|
path | True |
string |
The Microsoft Azure subscription ID. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
properties | True |
The deployment properties. |
|
identity |
The Managed Identity configuration for a deployment. |
||
___location |
string |
The ___location to store the deployment data. |
|
tags |
object |
Deployment tags |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK - Returns information about the deployment, including provisioning status. |
|
201 Created |
Created - Returns information about the deployment, including provisioning status. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Create a deployment that will deploy a template with a uri and queryString
Sample request
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000001/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment?api-version=2025-04-01
{
"properties": {
"templateLink": {
"uri": "https://example.com/exampleTemplate.json",
"queryString": "sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=xxxxxxxx0xxxxxxxxxxxxx%2bxxxxxxxxxxxxxxxxxxxx%3d"
},
"parameters": {},
"mode": "Incremental"
}
}
Sample response
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
"name": "my-deployment",
"type": "Microsoft.Resources/deployments",
"properties": {
"templateLink": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1",
"contentVersion": "1.0.0.0"
},
"templateHash": "0000000000000000000",
"parameters": {},
"mode": "Incremental",
"provisioningState": "Succeeded",
"timestamp": "2020-06-05T01:20:01.723776Z",
"duration": "PT22.8356799S",
"correlationId": "00000000-0000-0000-0000-000000000000",
"providers": [
{
"namespace": "Microsoft.Storage",
"resourceTypes": [
{
"resourceType": "storageAccounts",
"locations": [
"eastus"
]
}
]
}
],
"dependencies": [],
"outputResources": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/my-storage-account"
}
]
}
}
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
"name": "my-deployment",
"type": "Microsoft.Resources/deployments",
"properties": {
"templateLink": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1",
"contentVersion": "1.0.0.0"
},
"templateHash": "0000000000000000000",
"parameters": {},
"mode": "Incremental",
"provisioningState": "Accepted",
"timestamp": "2020-06-05T01:20:01.723776Z",
"duration": "PT22.8356799S",
"correlationId": "00000000-0000-0000-0000-000000000000",
"providers": [
{
"namespace": "Microsoft.Storage",
"resourceTypes": [
{
"resourceType": "storageAccounts",
"locations": [
"eastus"
]
}
]
}
],
"dependencies": []
}
}
Create a deployment that will deploy a templateSpec with the given resourceId
Sample request
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000001/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment?api-version=2025-04-01
{
"properties": {
"templateLink": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1"
},
"parameters": {},
"mode": "Incremental"
}
}
Sample response
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
"name": "my-deployment",
"type": "Microsoft.Resources/deployments",
"properties": {
"templateLink": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1",
"contentVersion": "1.0.0.0"
},
"templateHash": "0000000000000000000",
"parameters": {},
"mode": "Incremental",
"provisioningState": "Succeeded",
"timestamp": "2020-06-05T01:20:01.723776Z",
"duration": "PT22.8356799S",
"correlationId": "00000000-0000-0000-0000-000000000000",
"providers": [
{
"namespace": "Microsoft.Storage",
"resourceTypes": [
{
"resourceType": "storageAccounts",
"locations": [
"eastus"
]
}
]
}
],
"dependencies": [],
"outputResources": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/my-storage-account"
}
]
}
}
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
"name": "my-deployment",
"type": "Microsoft.Resources/deployments",
"properties": {
"templateLink": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1",
"contentVersion": "1.0.0.0"
},
"templateHash": "0000000000000000000",
"parameters": {},
"mode": "Incremental",
"provisioningState": "Accepted",
"timestamp": "2020-06-05T01:20:01.723776Z",
"duration": "PT22.8356799S",
"correlationId": "00000000-0000-0000-0000-000000000000",
"providers": [
{
"namespace": "Microsoft.Storage",
"resourceTypes": [
{
"resourceType": "storageAccounts",
"locations": [
"eastus"
]
}
]
}
],
"dependencies": []
}
}
Create a deployment that will redeploy another deployment on failure
Sample request
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment?api-version=2025-04-01
{
"properties": {
"templateLink": {
"uri": "https://example.com/exampleTemplate.json"
},
"parameters": {},
"mode": "Complete",
"onErrorDeployment": {
"type": "SpecificDeployment",
"deploymentName": "name-of-deployment-to-use"
}
}
}
Sample response
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
"name": "my-deployment",
"type": "Microsoft.Resources/deployments",
"properties": {
"templateLink": {
"uri": "https://example.com/exampleTemplate.json",
"contentVersion": "1.0.0.0"
},
"parameters": {},
"mode": "Complete",
"provisioningState": "Accepted",
"timestamp": "2019-03-01T00:00:00.0000000Z",
"duration": "PT0.8204881S",
"correlationId": "00000000-0000-0000-0000-000000000000",
"providers": [
{
"namespace": "Microsoft.Network",
"resourceTypes": [
{
"resourceType": "virtualNetworks",
"locations": [
"centralus"
]
},
{
"resourceType": "virtualNetworks/subnets",
"locations": [
"centralus"
]
}
]
}
],
"dependencies": [
{
"dependsOn": [
{
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks",
"resourceName": "VNet1"
}
],
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks/subnets",
"resourceName": "VNet1/Subnet1"
},
{
"dependsOn": [
{
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks",
"resourceName": "VNet1"
},
{
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks/subnets",
"resourceName": "VNet1/Subnet1"
}
],
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks/subnets",
"resourceName": "VNet1/Subnet2"
}
],
"onErrorDeployment": {
"type": "SpecificDeployment",
"deploymentName": "name-of-deployment-to-use"
}
}
}
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
"name": "my-deployment",
"type": "Microsoft.Resources/deployments",
"properties": {
"templateLink": {
"uri": "https://example.com/exampleTemplate.json",
"contentVersion": "1.0.0.0"
},
"parameters": {},
"mode": "Complete",
"provisioningState": "Accepted",
"timestamp": "2019-03-01T00:00:00.0000000Z",
"duration": "PT0.8204881S",
"correlationId": "00000000-0000-0000-0000-000000000000",
"providers": [
{
"namespace": "Microsoft.Network",
"resourceTypes": [
{
"resourceType": "virtualNetworks",
"locations": [
"centralus"
]
},
{
"resourceType": "virtualNetworks/subnets",
"locations": [
"centralus"
]
}
]
}
],
"dependencies": [
{
"dependsOn": [
{
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks",
"resourceName": "VNet1"
}
],
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks/subnets",
"resourceName": "VNet1/Subnet1"
},
{
"dependsOn": [
{
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks",
"resourceName": "VNet1"
},
{
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks/subnets",
"resourceName": "VNet1/Subnet1"
}
],
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks/subnets",
"resourceName": "VNet1/Subnet2"
}
],
"onErrorDeployment": {
"type": "SpecificDeployment",
"deploymentName": "name-of-deployment-to-use"
}
}
}
Create a deployment that will redeploy the last successful deployment on failure
Sample request
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment?api-version=2025-04-01
{
"properties": {
"templateLink": {
"uri": "https://example.com/exampleTemplate.json"
},
"parameters": {},
"mode": "Complete",
"onErrorDeployment": {
"type": "LastSuccessful"
}
}
}
Sample response
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
"name": "my-deployment",
"type": "Microsoft.Resources/deployments",
"properties": {
"templateLink": {
"uri": "https://example.com/exampleTemplate.json",
"contentVersion": "1.0.0.0"
},
"parameters": {},
"mode": "Complete",
"provisioningState": "Accepted",
"timestamp": "2019-03-01T00:00:00.0000000Z",
"duration": "PT0.8204881S",
"correlationId": "00000000-0000-0000-0000-000000000000",
"providers": [
{
"namespace": "Microsoft.Network",
"resourceTypes": [
{
"resourceType": "virtualNetworks",
"locations": [
"centralus"
]
},
{
"resourceType": "virtualNetworks/subnets",
"locations": [
"centralus"
]
}
]
}
],
"dependencies": [
{
"dependsOn": [
{
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks",
"resourceName": "VNet1"
}
],
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks/subnets",
"resourceName": "VNet1/Subnet1"
},
{
"dependsOn": [
{
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks",
"resourceName": "VNet1"
},
{
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks/subnets",
"resourceName": "VNet1/Subnet1"
}
],
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks/subnets",
"resourceName": "VNet1/Subnet2"
}
],
"onErrorDeployment": {
"type": "LastSuccessful",
"deploymentName": "{nameOfLastSuccesfulDeployment}"
}
}
}
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
"name": "my-deployment",
"type": "Microsoft.Resources/deployments",
"properties": {
"templateLink": {
"uri": "https://example.com/exampleTemplate.json",
"contentVersion": "1.0.0.0"
},
"parameters": {},
"mode": "Complete",
"provisioningState": "Accepted",
"timestamp": "2019-03-01T00:00:00.0000000Z",
"duration": "PT0.8204881S",
"correlationId": "00000000-0000-0000-0000-000000000000",
"providers": [
{
"namespace": "Microsoft.Network",
"resourceTypes": [
{
"resourceType": "virtualNetworks",
"locations": [
"centralus"
]
},
{
"resourceType": "virtualNetworks/subnets",
"locations": [
"centralus"
]
}
]
}
],
"dependencies": [
{
"dependsOn": [
{
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks",
"resourceName": "VNet1"
}
],
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks/subnets",
"resourceName": "VNet1/Subnet1"
},
{
"dependsOn": [
{
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks",
"resourceName": "VNet1"
},
{
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks/subnets",
"resourceName": "VNet1/Subnet1"
}
],
"id": "{resourceid}",
"resourceType": "Microsoft.Network/virtualNetworks/subnets",
"resourceName": "VNet1/Subnet2"
}
],
"onErrorDeployment": {
"type": "LastSuccessful",
"deploymentName": "{nameOfLastSuccesfulDeployment}"
}
}
}
Create deployment using external inputs
Sample request
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000001/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment?api-version=2025-04-01
{
"properties": {
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"inputObj": {
"type": "object"
}
},
"resources": [],
"outputs": {
"inputObj": {
"type": "object",
"value": "[parameters('inputObj')]"
}
}
},
"parameters": {
"inputObj": {
"expression": "[createObject('foo', externalInputs('fooValue'))]"
}
},
"externalInputDefinitions": {
"fooValue": {
"kind": "sys.envVar",
"config": "FOO_VALUE"
}
},
"externalInputs": {
"fooValue": {
"value": "baz"
}
},
"mode": "Incremental"
}
}
Sample response
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
"name": "my-deployment",
"type": "Microsoft.Resources/deployments",
"properties": {
"templateHash": "17686481789412793580",
"parameters": {
"inputObj": {
"type": "Object",
"value": {
"foo": "baz"
}
}
},
"mode": "Incremental",
"provisioningState": "Succeeded",
"timestamp": "2025-04-09T14:36:48.2047169Z",
"correlationId": "ef613b6c-f76e-48fd-9da7-28884243c5e5",
"providers": [],
"dependencies": [],
"outputs": {
"inputObj": {
"type": "Object",
"value": {
"foo": "baz"
}
}
},
"outputResources": []
}
}
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
"name": "my-deployment",
"type": "Microsoft.Resources/deployments",
"properties": {
"templateHash": "17686481789412793580",
"parameters": {
"inputObj": {
"type": "Object",
"value": {
"foo": "baz"
}
}
},
"mode": "Incremental",
"provisioningState": "Accepted",
"timestamp": "2025-04-09T14:36:47.6637583Z",
"duration": "PT0.0009164S",
"correlationId": "ef613b6c-f76e-48fd-9da7-28884243c5e5",
"providers": [],
"dependencies": []
}
}
Definitions
Name | Description |
---|---|
Alias |
The alias type. |
Alias |
The type of the paths for alias. |
Alias |
The attributes of the token that the alias path is referring to. |
Alias |
|
Alias |
The type of the token that the alias path is referring to. |
Alias |
The type of the pattern for an alias path. |
Alias |
The type of alias pattern |
Alias |
The type of the alias. |
Api |
|
Basic |
Deployment dependency information. |
Cloud |
An error response for a resource management request. |
Debug |
The debug setting. |
Dependency |
Deployment dependency information. |
Deployment |
Deployment operation parameters. |
Deployment |
|
Deployment |
Deployment information. |
Deployment |
|
Deployment |
|
Deployment |
Deployment external input for parameterization. |
Deployment |
Deployment external input definition for parameterization. |
Deployment |
The Managed Identity configuration for a deployment. |
Deployment |
The identity type. |
Deployment |
The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. |
Deployment |
Deployment parameter for the template. |
Deployment |
Deployment properties. |
Deployment |
Deployment properties with additional details. |
Error |
The resource management error additional info. |
Error |
Error Response |
Expression |
Specifies whether template expressions are evaluated within the scope of the parent template or nested template. |
Expression |
The scope to be used for evaluation of parameters, variables and functions in a nested template. |
Extension |
|
Key |
Azure Key Vault parameter reference. |
Key |
Azure Key Vault reference. |
Level |
Denotes the additional response level. |
On |
Deployment on error behavior. |
On |
Deployment on error behavior with additional details. |
On |
The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. |
Parameters |
Entity representing the reference to the deployment parameters. |
Provider |
Resource provider information. |
Provider |
The provider authorization consent state. |
Provider |
The provider extended ___location. |
Provider |
Resource type managed by the resource provider. |
Provisioning |
Denotes the state of provisioning. |
Resource |
The resource Id model. |
Template |
Entity representing the reference to the template. |
User |
User assigned identity properties |
Validation |
The level of validation performed on the deployment. |
Zone |
Alias
The alias type.
Name | Type | Description |
---|---|---|
defaultMetadata |
The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata |
|
defaultPath |
string |
The default path for an alias. |
defaultPattern |
The default pattern for an alias. |
|
name |
string |
The alias name. |
paths |
The paths for an alias. |
|
type |
The type of the alias. |
AliasPath
The type of the paths for alias.
Name | Type | Description |
---|---|---|
apiVersions |
string[] |
The API versions. |
metadata |
The metadata of the alias path. If missing, fall back to the default metadata of the alias. |
|
path |
string |
The path of an alias. |
pattern |
The pattern for an alias path. |
AliasPathAttributes
The attributes of the token that the alias path is referring to.
Value | Description |
---|---|
None |
The token that the alias path is referring to has no attributes. |
Modifiable |
The token that the alias path is referring to is modifiable by policies with 'modify' effect. |
AliasPathMetadata
Name | Type | Description |
---|---|---|
attributes |
The attributes of the token that the alias path is referring to. |
|
type |
The type of the token that the alias path is referring to. |
AliasPathTokenType
The type of the token that the alias path is referring to.
Value | Description |
---|---|
NotSpecified |
The token type is not specified. |
Any |
The token type can be anything. |
String |
The token type is string. |
Object |
The token type is object. |
Array |
The token type is array. |
Integer |
The token type is integer. |
Number |
The token type is number. |
Boolean |
The token type is boolean. |
AliasPattern
The type of the pattern for an alias path.
Name | Type | Description |
---|---|---|
phrase |
string |
The alias pattern phrase. |
type |
The type of alias pattern |
|
variable |
string |
The alias pattern variable. |
AliasPatternType
The type of alias pattern
Value | Description |
---|---|
NotSpecified |
NotSpecified is not allowed. |
Extract |
Extract is the only allowed value. |
AliasType
The type of the alias.
Value | Description |
---|---|
NotSpecified |
Alias type is unknown (same as not providing alias type). |
PlainText |
Alias value is not secret. |
Mask |
Alias value is secret. |
ApiProfile
Name | Type | Description |
---|---|---|
apiVersion |
string |
The API version. |
profileVersion |
string |
The profile version. |
BasicDependency
Deployment dependency information.
Name | Type | Description |
---|---|---|
id |
string |
The ID of the dependency. |
resourceName |
string |
The dependency resource name. |
resourceType |
string |
The dependency resource type. |
CloudError
An error response for a resource management request.
Name | Type | Description |
---|---|---|
error |
Error Response |
DebugSetting
The debug setting.
Name | Type | Description |
---|---|---|
detailLevel |
string |
Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations. |
Dependency
Deployment dependency information.
Name | Type | Description |
---|---|---|
dependsOn |
The list of dependencies. |
|
id |
string |
The ID of the dependency. |
resourceName |
string |
The dependency resource name. |
resourceType |
string |
The dependency resource type. |
Deployment
Deployment operation parameters.
Name | Type | Description |
---|---|---|
identity |
The Managed Identity configuration for a deployment. |
|
___location |
string |
The ___location to store the deployment data. |
properties |
The deployment properties. |
|
tags |
object |
Deployment tags |
DeploymentDiagnosticsDefinition
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
level |
Denotes the additional response level. |
|
message |
string |
The error message. |
target |
string |
The error target. |
DeploymentExtended
Deployment information.
Name | Type | Description |
---|---|---|
id |
string |
The ID of the deployment. |
___location |
string |
the ___location of the deployment. |
name |
string |
The name of the deployment. |
properties |
Deployment properties. |
|
tags |
object |
Deployment tags |
type |
string |
The type of the deployment. |
DeploymentExtensionConfigItem
Name | Type | Description |
---|---|---|
keyVaultReference |
The Azure Key Vault reference used to retrieve the secret value of the extension config property. |
|
type |
The value type of the extension config property. |
|
value |
|
The value of the extension config property. |
DeploymentExtensionDefinition
Name | Type | Description |
---|---|---|
alias |
string |
The alias of the extension as defined in the deployment template. |
config |
<string,
Deployment |
The extension configuration. |
configId |
string |
The extension configuration ID. It uniquely identifies a deployment control plane within an extension. |
name |
string |
The extension name. |
version |
string |
The extension version. |
DeploymentExternalInput
Deployment external input for parameterization.
Name | Type | Description |
---|---|---|
value |
|
External input value. |
DeploymentExternalInputDefinition
Deployment external input definition for parameterization.
Name | Type | Description |
---|---|---|
config |
|
Configuration for the external input. |
kind |
string |
The kind of external input. |
DeploymentIdentity
The Managed Identity configuration for a deployment.
Name | Type | Description |
---|---|---|
type |
The identity type. |
|
userAssignedIdentities |
<string,
User |
The set of user assigned identities associated with the resource. |
DeploymentIdentityType
The identity type.
Value | Description |
---|---|
None | |
UserAssigned |
DeploymentMode
The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources.
Value | Description |
---|---|
Incremental | |
Complete |
DeploymentParameter
Deployment parameter for the template.
Name | Type | Description |
---|---|---|
expression |
string |
Input expression to the parameter. |
reference |
Azure Key Vault parameter reference. |
|
value |
|
Input value to the parameter . |
DeploymentProperties
Deployment properties.
Name | Type | Description |
---|---|---|
debugSetting |
The debug setting of the deployment. |
|
expressionEvaluationOptions |
Specifies whether template expressions are evaluated within the scope of the parent template or nested template. Only applicable to nested templates. If not specified, default value is outer. |
|
extensionConfigs |
object |
The configurations to use for deployment extensions. The keys of this object are deployment extension aliases as defined in the deployment template. |
externalInputDefinitions |
<string,
Deployment |
External input definitions, used by external tooling to define expected external input values. |
externalInputs |
<string,
Deployment |
External input values, used by external tooling for parameter evaluation. |
mode |
The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. |
|
onErrorDeployment |
The deployment on error behavior. |
|
parameters |
<string,
Deployment |
Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. |
parametersLink |
The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. |
|
template |
object |
The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. |
templateLink |
The URI of the template. Use either the templateLink property or the template property, but not both. |
|
validationLevel |
The validation level of the deployment |
DeploymentPropertiesExtended
Deployment properties with additional details.
Name | Type | Description |
---|---|---|
correlationId |
string |
The correlation ID of the deployment. |
debugSetting |
The debug setting of the deployment. |
|
dependencies |
The list of deployment dependencies. |
|
diagnostics |
Contains diagnostic information collected during validation process. |
|
duration |
string |
The duration of the template deployment. |
error |
Error Response |
|
extensions |
The extensions used in this deployment. |
|
mode |
The deployment mode. Possible values are Incremental and Complete. |
|
onErrorDeployment |
The deployment on error behavior. |
|
outputResources |
Array of provisioned resources. |
|
outputs |
object |
Key/value pairs that represent deployment output. |
parameters |
object |
Deployment parameters. |
parametersLink |
The URI referencing the parameters. |
|
providers |
Provider[] |
The list of resource providers needed for the deployment. |
provisioningState |
Denotes the state of provisioning. |
|
templateHash |
string |
The hash produced for the template. |
templateLink |
The URI referencing the template. |
|
timestamp |
string (date-time) |
The timestamp of the template deployment. |
validatedResources |
Array of validated resources. |
|
validationLevel |
The validation level of the deployment |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorResponse
Error Response
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ExpressionEvaluationOptions
Specifies whether template expressions are evaluated within the scope of the parent template or nested template.
Name | Type | Description |
---|---|---|
scope |
The scope to be used for evaluation of parameters, variables and functions in a nested template. |
ExpressionEvaluationOptionsScopeType
The scope to be used for evaluation of parameters, variables and functions in a nested template.
Value | Description |
---|---|
NotSpecified | |
Outer | |
Inner |
ExtensionConfigPropertyType
Value | Description |
---|---|
String |
Property type representing a string value. |
Int |
Property type representing an integer value. |
Bool |
Property type representing a boolean value. |
Array |
Property type representing an array value. |
Object |
Property type representing an object value. |
SecureString |
Property type representing a secure string value. |
SecureObject |
Property type representing a secure object value. |
KeyVaultParameterReference
Azure Key Vault parameter reference.
Name | Type | Description |
---|---|---|
keyVault |
Azure Key Vault reference. |
|
secretName |
string |
Azure Key Vault secret name. |
secretVersion |
string |
Azure Key Vault secret version. |
KeyVaultReference
Azure Key Vault reference.
Name | Type | Description |
---|---|---|
id |
string |
Azure Key Vault resource id. |
Level
Denotes the additional response level.
Value | Description |
---|---|
Warning | |
Info | |
Error |
OnErrorDeployment
Deployment on error behavior.
Name | Type | Description |
---|---|---|
deploymentName |
string |
The deployment to be used on error case. |
type |
The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. |
OnErrorDeploymentExtended
Deployment on error behavior with additional details.
Name | Type | Description |
---|---|---|
deploymentName |
string |
The deployment to be used on error case. |
provisioningState |
string |
The state of the provisioning for the on error deployment. |
type |
The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. |
OnErrorDeploymentType
The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment.
Value | Description |
---|---|
LastSuccessful | |
SpecificDeployment |
ParametersLink
Entity representing the reference to the deployment parameters.
Name | Type | Description |
---|---|---|
contentVersion |
string |
If included, must match the ContentVersion in the template. |
uri |
string |
The URI of the parameters file. |
Provider
Resource provider information.
Name | Type | Description |
---|---|---|
id |
string |
The provider ID. |
namespace |
string |
The namespace of the resource provider. |
providerAuthorizationConsentState |
The provider authorization consent state. |
|
registrationPolicy |
string |
The registration policy of the resource provider. |
registrationState |
string |
The registration state of the resource provider. |
resourceTypes |
The collection of provider resource types. |
ProviderAuthorizationConsentState
The provider authorization consent state.
Value | Description |
---|---|
NotSpecified | |
Required | |
NotRequired | |
Consented |
ProviderExtendedLocation
The provider extended ___location.
Name | Type | Description |
---|---|---|
extendedLocations |
string[] |
The extended locations for the azure ___location. |
___location |
string |
The azure ___location. |
type |
string |
The extended ___location type. |
ProviderResourceType
Resource type managed by the resource provider.
Name | Type | Description |
---|---|---|
aliases |
Alias[] |
The aliases that are supported by this resource type. |
apiProfiles |
The API profiles for the resource provider. |
|
apiVersions |
string[] |
The API version. |
capabilities |
string |
The additional capabilities offered by this resource type. |
defaultApiVersion |
string |
The default API version. |
locationMappings |
The ___location mappings that are supported by this resource type. |
|
locations |
string[] |
The collection of locations where this resource type can be created. |
properties |
object |
The properties. |
resourceType |
string |
The resource type. |
zoneMappings |
ProvisioningState
Denotes the state of provisioning.
Value | Description |
---|---|
NotSpecified | |
Accepted | |
Running | |
Ready | |
Creating | |
Created | |
Deleting | |
Deleted | |
Canceled | |
Failed | |
Succeeded | |
Updating |
ResourceReference
The resource Id model.
Name | Type | Description |
---|---|---|
apiVersion |
string |
The API version the resource was deployed with. |
extension |
The extension the resource was deployed with. |
|
id |
string |
The fully qualified Azure resource ID. |
identifiers |
object |
The extensible resource identifiers. |
resourceType |
string |
The resource type. |
TemplateLink
Entity representing the reference to the template.
Name | Type | Description |
---|---|---|
contentVersion |
string |
If included, must match the ContentVersion in the template. |
id |
string |
The resource id of a Template Spec. Use either the id or uri property, but not both. |
queryString |
string |
The query string (for example, a SAS token) to be used with the templateLink URI. |
relativePath |
string |
The relativePath property can be used to deploy a linked template at a ___location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs |
uri |
string |
The URI of the template to deploy. Use either the uri or id property, but not both. |
UserAssignedIdentity
User assigned identity properties
Name | Type | Description |
---|---|---|
clientId |
string (uuid) |
The client ID of the assigned identity. |
principalId |
string (uuid) |
The principal ID of the assigned identity. |
ValidationLevel
The level of validation performed on the deployment.
Value | Description |
---|---|
Template |
Static analysis of the template is performed. |
Provider |
Static analysis of the template is performed and resource declarations are sent to resource providers for semantic validation. Validates that the caller has RBAC write permissions on each resource. |
ProviderNoRbac |
Static analysis of the template is performed and resource declarations are sent to resource providers for semantic validation. Skips validating that the caller has RBAC write permissions on each resource. |
ZoneMapping
Name | Type | Description |
---|---|---|
___location |
string |
The ___location of the zone mapping. |
zones |
string[] |