Deployments - Validate At Management Group Scope
Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..
POST https://management.azure.com/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate?api-version=2021-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
deployment
|
path | True |
string |
The name of the deployment. Regex pattern: |
group
|
path | True |
string |
The management group ID. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
location | True |
string |
The location to store the deployment data. |
properties | True |
The deployment properties. |
|
tags |
object |
Deployment tags |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK - Returns the validation result. |
|
202 Accepted |
Accepted - The request has been accepted for processing and the operation will complete asynchronously. |
|
400 Bad Request |
Returns the validation result. |
|
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 |
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 |
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 properties. |
Deployment |
Deployment properties with additional details. |
Deployment |
Information from validate template deployment response. |
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. |
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. |
Scoped |
Deployment operation parameters. |
Template |
Entity representing the reference to the template. |
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.
Name | Type | Description |
---|---|---|
Modifiable |
string |
The token that the alias path is referring to is modifiable by policies with 'modify' effect. |
None |
string |
The token that the alias path is referring to has no attributes. |
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.
Name | Type | Description |
---|---|---|
Any |
string |
The token type can be anything. |
Array |
string |
The token type is array. |
Boolean |
string |
The token type is boolean. |
Integer |
string |
The token type is integer. |
NotSpecified |
string |
The token type is not specified. |
Number |
string |
The token type is number. |
Object |
string |
The token type is object. |
String |
string |
The token type is string. |
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
Name | Type | Description |
---|---|---|
Extract |
string |
Extract is the only allowed value. |
NotSpecified |
string |
NotSpecified is not allowed. |
AliasType
The type of the alias.
Name | Type | Description |
---|---|---|
Mask |
string |
Alias value is secret. |
NotSpecified |
string |
Alias type is unknown (same as not providing alias type). |
PlainText |
string |
Alias value is not 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. |
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.
Name | Type | Description |
---|---|---|
Complete |
string |
|
Incremental |
string |
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. |
|
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 |
object |
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. |
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. |
|
duration |
string |
The duration of the template deployment. |
error |
Error Response |
|
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 |
The timestamp of the template deployment. |
validatedResources |
Array of validated resources. |
DeploymentValidateResult
Information from validate template deployment response.
Name | Type | Description |
---|---|---|
error |
Error Response |
|
properties |
The template deployment properties. |
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.
Name | Type | Description |
---|---|---|
Inner |
string |
|
NotSpecified |
string |
|
Outer |
string |
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.
Name | Type | Description |
---|---|---|
LastSuccessful |
string |
|
SpecificDeployment |
string |
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.
Name | Type | Description |
---|---|---|
Consented |
string |
|
NotRequired |
string |
|
NotSpecified |
string |
|
Required |
string |
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.
Name | Type | Description |
---|---|---|
Accepted |
string |
|
Canceled |
string |
|
Created |
string |
|
Creating |
string |
|
Deleted |
string |
|
Deleting |
string |
|
Failed |
string |
|
NotSpecified |
string |
|
Ready |
string |
|
Running |
string |
|
Succeeded |
string |
|
Updating |
string |
ResourceReference
The resource Id model.
Name | Type | Description |
---|---|---|
id |
string |
The fully qualified resource Id. |
ScopedDeployment
Deployment operation parameters.
Name | Type | Description |
---|---|---|
location |
string |
The location to store the deployment data. |
properties |
The deployment properties. |
|
tags |
object |
Deployment tags |
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. |
ZoneMapping
Name | Type | Description |
---|---|---|
location |
string |
The location of the zone mapping. |
zones |
string[] |