Microsoft.Resources (stable:2024-11-01)

2025/02/18 • 4 updated methods

Deployments_WhatIfAtTenantScope (updated)
Description Returns changes that will be made by the deployment if executed at the scope of the tenant group.
Reference Link ¶

⚶ Changes

{
  "#id": "Deployments_WhatIfAtTenantScope",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "changes": {
              "$properties": [
                {
                  "#name": "resourceId",
                  "Required": {
                    "new": false,
                    "old": true
                  }
                }
              ]
            }
          },
          {
            "potentialChanges": {
              "$properties": [
                {
                  "#name": "resourceId",
                  "Required": {
                    "new": false,
                    "old": true
                  }
                }
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /providers/Microsoft.Resources/deployments/{deploymentName}/whatIf
{
deploymentName: string ,
parameters:
{
location: string ,
properties:
{
whatIfSettings:
{
resultFormat: enum ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
status: string ,
properties:
{
changes:
[
{
resourceId: string ,
deploymentId: string ,
symbolicName: string ,
identifiers: object ,
changeType: enum ,
unsupportedReason: string ,
before: object ,
after: object ,
delta:
[
{
path: string ,
propertyChangeType: enum ,
before: object ,
after: object ,
children:
[
string ,
]
,
}
,
]
,
}
,
]
,
potentialChanges:
[
{
resourceId: string ,
deploymentId: string ,
symbolicName: string ,
identifiers: object ,
changeType: enum ,
unsupportedReason: string ,
before: object ,
after: object ,
delta:
[
{
path: string ,
propertyChangeType: enum ,
before: object ,
after: object ,
children:
[
string ,
]
,
}
,
]
,
}
,
]
,
diagnostics:
[
{
level: enum ,
code: string ,
message: string ,
target: string ,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
}
,
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 (202)

{
location: string ,
retry-after: 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 ,
}
,
]
,
}
,
}
Deployments_WhatIfAtManagementGroupScope (updated)
Description Returns changes that will be made by the deployment if executed at the scope of the management group.
Reference Link ¶

⚶ Changes

{
  "#id": "Deployments_WhatIfAtManagementGroupScope",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "changes": {
              "$properties": [
                {
                  "#name": "resourceId",
                  "Required": {
                    "new": false,
                    "old": true
                  }
                }
              ]
            }
          },
          {
            "potentialChanges": {
              "$properties": [
                {
                  "#name": "resourceId",
                  "Required": {
                    "new": false,
                    "old": true
                  }
                }
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf
{
groupId: string ,
deploymentName: string ,
parameters:
{
location: string ,
properties:
{
whatIfSettings:
{
resultFormat: enum ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
status: string ,
properties:
{
changes:
[
{
resourceId: string ,
deploymentId: string ,
symbolicName: string ,
identifiers: object ,
changeType: enum ,
unsupportedReason: string ,
before: object ,
after: object ,
delta:
[
{
path: string ,
propertyChangeType: enum ,
before: object ,
after: object ,
children:
[
string ,
]
,
}
,
]
,
}
,
]
,
potentialChanges:
[
{
resourceId: string ,
deploymentId: string ,
symbolicName: string ,
identifiers: object ,
changeType: enum ,
unsupportedReason: string ,
before: object ,
after: object ,
delta:
[
{
path: string ,
propertyChangeType: enum ,
before: object ,
after: object ,
children:
[
string ,
]
,
}
,
]
,
}
,
]
,
diagnostics:
[
{
level: enum ,
code: string ,
message: string ,
target: string ,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
}
,
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 (202)

{
location: string ,
retry-after: 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 ,
}
,
]
,
}
,
}
Deployments_WhatIfAtSubscriptionScope (updated)
Description Returns changes that will be made by the deployment if executed at the scope of the subscription.
Reference Link ¶

⚶ Changes

{
  "#id": "Deployments_WhatIfAtSubscriptionScope",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "changes": {
              "$properties": [
                {
                  "#name": "resourceId",
                  "Required": {
                    "new": false,
                    "old": true
                  }
                }
              ]
            }
          },
          {
            "potentialChanges": {
              "$properties": [
                {
                  "#name": "resourceId",
                  "Required": {
                    "new": false,
                    "old": true
                  }
                }
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf
{
deploymentName: string ,
parameters:
{
location: string ,
properties:
{
whatIfSettings:
{
resultFormat: enum ,
}
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
status: string ,
properties:
{
changes:
[
{
resourceId: string ,
deploymentId: string ,
symbolicName: string ,
identifiers: object ,
changeType: enum ,
unsupportedReason: string ,
before: object ,
after: object ,
delta:
[
{
path: string ,
propertyChangeType: enum ,
before: object ,
after: object ,
children:
[
string ,
]
,
}
,
]
,
}
,
]
,
potentialChanges:
[
{
resourceId: string ,
deploymentId: string ,
symbolicName: string ,
identifiers: object ,
changeType: enum ,
unsupportedReason: string ,
before: object ,
after: object ,
delta:
[
{
path: string ,
propertyChangeType: enum ,
before: object ,
after: object ,
children:
[
string ,
]
,
}
,
]
,
}
,
]
,
diagnostics:
[
{
level: enum ,
code: string ,
message: string ,
target: string ,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
}
,
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 (202)

{
location: string ,
retry-after: 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 ,
}
,
]
,
}
,
}
Deployments_WhatIf (updated)
Description Returns changes that will be made by the deployment if executed at the scope of the resource group.
Reference Link ¶

⚶ Changes

{
  "#id": "Deployments_WhatIf",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "changes": {
              "$properties": [
                {
                  "#name": "resourceId",
                  "Required": {
                    "new": false,
                    "old": true
                  }
                }
              ]
            }
          },
          {
            "potentialChanges": {
              "$properties": [
                {
                  "#name": "resourceId",
                  "Required": {
                    "new": false,
                    "old": true
                  }
                }
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf
{
resourceGroupName: string ,
deploymentName: string ,
parameters:
{
location: string ,
properties:
{
whatIfSettings:
{
resultFormat: enum ,
}
,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
status: string ,
properties:
{
changes:
[
{
resourceId: string ,
deploymentId: string ,
symbolicName: string ,
identifiers: object ,
changeType: enum ,
unsupportedReason: string ,
before: object ,
after: object ,
delta:
[
{
path: string ,
propertyChangeType: enum ,
before: object ,
after: object ,
children:
[
string ,
]
,
}
,
]
,
}
,
]
,
potentialChanges:
[
{
resourceId: string ,
deploymentId: string ,
symbolicName: string ,
identifiers: object ,
changeType: enum ,
unsupportedReason: string ,
before: object ,
after: object ,
delta:
[
{
path: string ,
propertyChangeType: enum ,
before: object ,
after: object ,
children:
[
string ,
]
,
}
,
]
,
}
,
]
,
diagnostics:
[
{
level: enum ,
code: string ,
message: string ,
target: string ,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
}
,
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 (202)

{
location: string ,
retry-after: 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 ,
}
,
]
,
}
,
}