Skip to main content

deployment_stacks_what_if_results_at_management_group

Creates, updates, deletes, gets or lists a deployment_stacks_what_if_results_at_management_group resource.

Overview

Namedeployment_stacks_what_if_results_at_management_group
TypeResource
Idazure.resource.deployment_stacks_what_if_results_at_management_group

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
actionOnUnmanageobjectDefines the behavior of resources that are no longer managed after the Deployment stack is updated or deleted. Required.
changesobjectAll of the changes predicted by the deployment stack what-if operation.
correlationIdstringThe correlation id of the last Deployment stack upsert or delete operation. It is in GUID format and is used for tracing.
debugSettingobjectThe debug setting of the deployment.
denySettingsobjectDefines how resources deployed by the stack are locked. Required.
deploymentScopestringThe scope at which the initial deployment should be created. If a scope is not specified, it will default to the scope of the deployment stack. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroupId}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}').
deploymentStackLastModifiedstring (date-time)The timestamp for when the deployment stack was last modified. This can be used to determine if the what-if data is still current.
deploymentStackResourceIdstringThe deployment stack id to use as the basis for comparison. Required.
descriptionstringDeployment stack description. Max length of 4096 characters.
diagnosticsarrayList of resource diagnostics detected by What-If operation.
errorobjectThe error detail.
extensionConfigsobjectThe deployment extension configs. Keys of this object are extension aliases as defined in the deployment template.
externalInputDefinitionsobjectExternal input definitions, used by external tooling to define expected external input values.
externalInputsobjectExternal input values, used by external tooling for parameter evaluation.
locationstringThe geo-location where the resource lives. Required for subscription and management group scoped stacks. The location is inherited from the resource group for resource group scoped stacks.
parametersobjectName and value pairs that define the deployment parameters for the template. Use this element when providing the parameter values directly in the request, rather than linking to an existing parameter file. Use either the parametersLink property or the parameters property, but not both.
parametersLinkobjectThe URI of parameters file. Use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both.
provisioningStatestringState of the deployment stack. Known values are: "creating", "validating", "waiting", "deploying", "canceling", "updatingDenyAssignments", "deletingResources", "succeeded", "failed", "canceled", "deleting", "initializing", and "running". (creating, validating, waiting, deploying, canceling, updatingDenyAssignments, deletingResources, succeeded, failed, canceled, deleting, initializing, running)
retentionIntervalstringThe interval to persist the deployment stack what-if result in ISO 8601 format. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
templateobjectThe 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.
templateLinkobjectThe URI of the template. Use either the templateLink property or the template property, but not both.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
validationLevelstringThe validation level of the deployment stack. Known values are: "Template", "Provider", and "ProviderNoRbac". (Template, Provider, ProviderNoRbac)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectmanagement_group_id, deployment_stacks_what_if_result_nameGets the Deployment stack with the given name.
listselectmanagement_group_idLists Deployment stacks at the specified scope.
create_or_updateinsertmanagement_group_id, deployment_stacks_what_if_result_nameCreates or updates a Deployment stack at the specified scope.
create_or_updatereplacemanagement_group_id, deployment_stacks_what_if_result_nameCreates or updates a Deployment stack at the specified scope.
deletedeletemanagement_group_id, deployment_stacks_what_if_result_nameunmanageAction.Resources, unmanageAction.ResourceGroups, unmanageAction.ManagementGroups, unmanageAction.ResourcesWithoutDeleteSupport, bypassStackOutOfSyncErrorDeletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned without content.
what_ifexecmanagement_group_id, deployment_stacks_what_if_result_nameReturns property-level changes that will be made by the deployment if executed.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_stacks_what_if_result_namestringName of the deployment stack what-if result. Required.
management_group_idstringThe management group ID. Required.
bypassStackOutOfSyncErrorbooleanFlag to bypass service errors that indicate the stack resource list is not correctly synchronized. Default value is None.
unmanageAction.ManagementGroupsstringFlag to indicate delete rather than detach for unmanaged management groups. Known values are: "delete" and "detach". Default value is None.
unmanageAction.ResourceGroupsstringFlag to indicate delete rather than detach for unmanaged resource groups. Known values are: "delete" and "detach". Default value is None.
unmanageAction.ResourcesstringFlag to indicate delete rather than detach for unmanaged resources. Known values are: "delete" and "detach". Default value is None.
unmanageAction.ResourcesWithoutDeleteSupportstringSome resources do not support deletion. This flag will denote how the stack should handle those resources. Known values are: "detach" and "fail". Default value is None.

SELECT examples

Gets the Deployment stack with the given name.

SELECT
id,
name,
actionOnUnmanage,
changes,
correlationId,
debugSetting,
denySettings,
deploymentScope,
deploymentStackLastModified,
deploymentStackResourceId,
description,
diagnostics,
error,
extensionConfigs,
externalInputDefinitions,
externalInputs,
location,
parameters,
parametersLink,
provisioningState,
retentionInterval,
systemData,
tags,
template,
templateLink,
type,
validationLevel
FROM azure.resource.deployment_stacks_what_if_results_at_management_group
WHERE management_group_id = '{{ management_group_id }}' -- required
AND deployment_stacks_what_if_result_name = '{{ deployment_stacks_what_if_result_name }}' -- required
;

INSERT examples

Creates or updates a Deployment stack at the specified scope.

INSERT INTO azure.resource.deployment_stacks_what_if_results_at_management_group (
properties,
location,
tags,
management_group_id,
deployment_stacks_what_if_result_name
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ management_group_id }}',
'{{ deployment_stacks_what_if_result_name }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

REPLACE examples

Creates or updates a Deployment stack at the specified scope.

REPLACE azure.resource.deployment_stacks_what_if_results_at_management_group
SET
properties = '{{ properties }}',
location = '{{ location }}',
tags = '{{ tags }}'
WHERE
management_group_id = '{{ management_group_id }}' --required
AND deployment_stacks_what_if_result_name = '{{ deployment_stacks_what_if_result_name }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned without content.

DELETE FROM azure.resource.deployment_stacks_what_if_results_at_management_group
WHERE management_group_id = '{{ management_group_id }}' --required
AND deployment_stacks_what_if_result_name = '{{ deployment_stacks_what_if_result_name }}' --required
AND unmanageAction.Resources = '{{ unmanageAction.Resources }}'
AND unmanageAction.ResourceGroups = '{{ unmanageAction.ResourceGroups }}'
AND unmanageAction.ManagementGroups = '{{ unmanageAction.ManagementGroups }}'
AND unmanageAction.ResourcesWithoutDeleteSupport = '{{ unmanageAction.ResourcesWithoutDeleteSupport }}'
AND bypassStackOutOfSyncError = '{{ bypassStackOutOfSyncError }}'
;

Lifecycle Methods

Returns property-level changes that will be made by the deployment if executed.

EXEC azure.resource.deployment_stacks_what_if_results_at_management_group.what_if 
@management_group_id='{{ management_group_id }}' --required,
@deployment_stacks_what_if_result_name='{{ deployment_stacks_what_if_result_name }}' --required
;