Microsoft.Resources (stable:2017-05-10)

2025/06/04 • 11 new methods

Deployments_Delete (new)
Description :  A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.
Reference :  Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}
{
resourceGroupName: string ,
deploymentName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
Deployments_CheckExistence (new)
Description :  Checks whether the deployment exists.
Reference :  Link ¶

⚼ Request

HEAD:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}
{
resourceGroupName: string ,
deploymentName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (204)

{}

⚐ Response (404)

{}
Deployments_CreateOrUpdate (new)
Description :  You can provide the template and parameters directly in the request or link to JSON files.
Reference :  Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}
{
resourceGroupName: string ,
deploymentName: string ,
parameters:
{
properties:
{
template: object ,
templateLink:
{
uri: string ,
contentVersion: string ,
}
,
parameters: object ,
parametersLink:
{
uri: string ,
contentVersion: string ,
}
,
mode: enum ,
debugSetting:
{
detailLevel: string ,
}
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
properties:
{
provisioningState: string ,
correlationId: string ,
timestamp: string ,
outputs: object ,
providers:
[
{
id: string ,
namespace: string ,
registrationState: string ,
resourceTypes:
[
{
resourceType: string ,
locations:
[
string ,
]
,
aliases:
[
{
name: string ,
paths:
[
{
path: string ,
apiVersions:
[
string ,
]
,
}
,
]
,
}
,
]
,
apiVersions:
[
string ,
]
,
zoneMappings:
[
{
location: string ,
zones:
[
string ,
]
,
}
,
]
,
properties: object ,
}
,
]
,
}
,
]
,
dependencies:
[
{
dependsOn:
[
{
id: string ,
resourceType: string ,
resourceName: string ,
}
,
]
,
id: string ,
resourceType: string ,
resourceName: string ,
}
,
]
,
template: object ,
templateLink:
{
uri: string ,
contentVersion: string ,
}
,
parameters: object ,
parametersLink:
{
uri: string ,
contentVersion: string ,
}
,
mode: enum ,
debugSetting:
{
detailLevel: string ,
}
,
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
,
}

⚐ Response (201)

{
id: string ,
name: string ,
properties:
{
provisioningState: string ,
correlationId: string ,
timestamp: string ,
outputs: object ,
providers:
[
{
id: string ,
namespace: string ,
registrationState: string ,
resourceTypes:
[
{
resourceType: string ,
locations:
[
string ,
]
,
aliases:
[
{
name: string ,
paths:
[
{
path: string ,
apiVersions:
[
string ,
]
,
}
,
]
,
}
,
]
,
apiVersions:
[
string ,
]
,
zoneMappings:
[
{
location: string ,
zones:
[
string ,
]
,
}
,
]
,
properties: object ,
}
,
]
,
}
,
]
,
dependencies:
[
{
dependsOn:
[
{
id: string ,
resourceType: string ,
resourceName: string ,
}
,
]
,
id: string ,
resourceType: string ,
resourceName: string ,
}
,
]
,
template: object ,
templateLink:
{
uri: string ,
contentVersion: string ,
}
,
parameters: object ,
parametersLink:
{
uri: string ,
contentVersion: string ,
}
,
mode: enum ,
debugSetting:
{
detailLevel: string ,
}
,
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
,
}
Deployments_Get (new)
Description :  Gets a deployment.
Reference :  Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}
{
resourceGroupName: string ,
deploymentName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
properties:
{
provisioningState: string ,
correlationId: string ,
timestamp: string ,
outputs: object ,
providers:
[
{
id: string ,
namespace: string ,
registrationState: string ,
resourceTypes:
[
{
resourceType: string ,
locations:
[
string ,
]
,
aliases:
[
{
name: string ,
paths:
[
{
path: string ,
apiVersions:
[
string ,
]
,
}
,
]
,
}
,
]
,
apiVersions:
[
string ,
]
,
zoneMappings:
[
{
location: string ,
zones:
[
string ,
]
,
}
,
]
,
properties: object ,
}
,
]
,
}
,
]
,
dependencies:
[
{
dependsOn:
[
{
id: string ,
resourceType: string ,
resourceName: string ,
}
,
]
,
id: string ,
resourceType: string ,
resourceName: string ,
}
,
]
,
template: object ,
templateLink:
{
uri: string ,
contentVersion: string ,
}
,
parameters: object ,
parametersLink:
{
uri: string ,
contentVersion: string ,
}
,
mode: enum ,
debugSetting:
{
detailLevel: string ,
}
,
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
,
}
Deployments_Cancel (new)
Description :  You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resource group partially deployed.
Reference :  Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel
{
resourceGroupName: string ,
deploymentName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (204)

{}
Deployments_Validate (new)
Description :  Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..
Reference :  Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate
{
resourceGroupName: string ,
deploymentName: string ,
parameters:
{
properties:
{
template: object ,
templateLink:
{
uri: string ,
contentVersion: string ,
}
,
parameters: object ,
parametersLink:
{
uri: string ,
contentVersion: string ,
}
,
mode: enum ,
debugSetting:
{
detailLevel: string ,
}
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
properties:
{
provisioningState: string ,
correlationId: string ,
timestamp: string ,
outputs: object ,
providers:
[
{
id: string ,
namespace: string ,
registrationState: string ,
resourceTypes:
[
{
resourceType: string ,
locations:
[
string ,
]
,
aliases:
[
{
name: string ,
paths:
[
{
path: string ,
apiVersions:
[
string ,
]
,
}
,
]
,
}
,
]
,
apiVersions:
[
string ,
]
,
zoneMappings:
[
{
location: string ,
zones:
[
string ,
]
,
}
,
]
,
properties: object ,
}
,
]
,
}
,
]
,
dependencies:
[
{
dependsOn:
[
{
id: string ,
resourceType: string ,
resourceName: string ,
}
,
]
,
id: string ,
resourceType: string ,
resourceName: string ,
}
,
]
,
template: object ,
templateLink:
{
uri: string ,
contentVersion: string ,
}
,
parameters: object ,
parametersLink:
{
uri: string ,
contentVersion: string ,
}
,
mode: enum ,
debugSetting:
{
detailLevel: string ,
}
,
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
,
}

⚐ Response (400)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
properties:
{
provisioningState: string ,
correlationId: string ,
timestamp: string ,
outputs: object ,
providers:
[
{
id: string ,
namespace: string ,
registrationState: string ,
resourceTypes:
[
{
resourceType: string ,
locations:
[
string ,
]
,
aliases:
[
{
name: string ,
paths:
[
{
path: string ,
apiVersions:
[
string ,
]
,
}
,
]
,
}
,
]
,
apiVersions:
[
string ,
]
,
zoneMappings:
[
{
location: string ,
zones:
[
string ,
]
,
}
,
]
,
properties: object ,
}
,
]
,
}
,
]
,
dependencies:
[
{
dependsOn:
[
{
id: string ,
resourceType: string ,
resourceName: string ,
}
,
]
,
id: string ,
resourceType: string ,
resourceName: string ,
}
,
]
,
template: object ,
templateLink:
{
uri: string ,
contentVersion: string ,
}
,
parameters: object ,
parametersLink:
{
uri: string ,
contentVersion: string ,
}
,
mode: enum ,
debugSetting:
{
detailLevel: string ,
}
,
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
,
}
Deployments_ExportTemplate (new)
Description :  Exports the template used for specified deployment.
Reference :  Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate
{
resourceGroupName: string ,
deploymentName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
template: object ,
}
Deployments_ListByResourceGroup (new)
Description :  Get all the deployments for a resource group.
Reference :  Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/
{
resourceGroupName: string ,
$filter: string ,
$top: integer ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
properties:
{
provisioningState: string ,
correlationId: string ,
timestamp: string ,
outputs: object ,
providers:
[
{
id: string ,
namespace: string ,
registrationState: string ,
resourceTypes:
[
{
resourceType: string ,
locations:
[
string ,
]
,
aliases:
[
{
name: string ,
paths:
[
{
path: string ,
apiVersions:
[
string ,
]
,
}
,
]
,
}
,
]
,
apiVersions:
[
string ,
]
,
zoneMappings:
[
{
location: string ,
zones:
[
string ,
]
,
}
,
]
,
properties: object ,
}
,
]
,
}
,
]
,
dependencies:
[
{
dependsOn:
[
{
id: string ,
resourceType: string ,
resourceName: string ,
}
,
]
,
id: string ,
resourceType: string ,
resourceName: string ,
}
,
]
,
template: object ,
templateLink:
{
uri: string ,
contentVersion: string ,
}
,
parameters: object ,
parametersLink:
{
uri: string ,
contentVersion: string ,
}
,
mode: enum ,
debugSetting:
{
detailLevel: string ,
}
,
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
,
}
,
]
,
nextLink: string ,
}
DeploymentOperations_Get (new)
Description :  Gets a deployments operation.
Reference :  Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}
{
resourceGroupName: string ,
deploymentName: string ,
operationId: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
id: string ,
operationId: string ,
properties:
{
provisioningState: string ,
timestamp: string ,
serviceRequestId: string ,
statusCode: string ,
statusMessage: string ,
targetResource:
{
id: string ,
resourceName: string ,
resourceType: string ,
}
,
request:
{
content: object ,
}
,
response:
{
content: object ,
}
,
}
,
}
DeploymentOperations_List (new)
Description :  Gets all deployments operations for a deployment.
Reference :  Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations
{
resourceGroupName: string ,
deploymentName: string ,
$top: integer ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
operationId: string ,
properties:
{
provisioningState: string ,
timestamp: string ,
serviceRequestId: string ,
statusCode: string ,
statusMessage: string ,
targetResource:
{
id: string ,
resourceName: string ,
resourceType: string ,
}
,
request:
{
content: object ,
}
,
response:
{
content: object ,
}
,
}
,
}
,
]
,
nextLink: string ,
}
Deployments_CalculateTemplateHash (new)
Description :  Calculate the hash of the given template.
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.Resources/calculateTemplateHash
{
api-version: string ,
template: object ,
}

⚐ Response (200)

{
minifiedTemplate: string ,
templateHash: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}