Get-AzManagementGroupDeploymentStackWhatIfResult
Gets a management group scoped deployment stack WhatIf result.
Syntax
List (Default)
Get-AzManagementGroupDeploymentStackWhatIfResult
-ManagementGroupId <String>
[-Pre]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
GetByName
Get-AzManagementGroupDeploymentStackWhatIfResult
-Name <String>
-ManagementGroupId <String>
[-IncludePropertyChange]
[-Pre]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
GetByResourceId
Get-AzManagementGroupDeploymentStackWhatIfResult
-ResourceId <String>
[-IncludePropertyChange]
[-Pre]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Gets one or more management group scoped deployment stack WhatIf result resources.
Examples
Example 1: List deployment stack WhatIf results in a management group
Get-AzManagementGroupDeploymentStackWhatIfResult -ManagementGroupId MyManagementGroup
Gets deployment stack WhatIf results in management group MyManagementGroup.
Example 2: Get a deployment stack WhatIf result by name
Get-AzManagementGroupDeploymentStackWhatIfResult -ManagementGroupId MyManagementGroup -Name MyWhatIfResult
Gets the deployment stack WhatIf result named MyWhatIfResult in management group MyManagementGroup.
Example 3: Get a deployment stack WhatIf result with property changes
Get-AzManagementGroupDeploymentStackWhatIfResult -ManagementGroupId MyManagementGroup -Name MyWhatIfResult -IncludePropertyChange
Gets the deployment stack WhatIf result named MyWhatIfResult with resource property changes populated.
Example 4: Get a deployment stack WhatIf result by resource ID
$whatIfResultId = "/providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Resources/deploymentStacksWhatIfResults/MyWhatIfResult"
Get-AzManagementGroupDeploymentStackWhatIfResult -ResourceId $whatIfResultId
Gets the deployment stack WhatIf result by its fully-qualified resource ID.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-IncludePropertyChange
If set, returns the WhatIf result with resource property changes (delta) populated.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
GetByName
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
GetByResourceId
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ManagementGroupId
The ID of the management group.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
GetByName
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-Name
The name of the WhatIf result to get.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
GetByName
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-Pre
When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceId
The fully-qualified resource ID of the WhatIf result to get.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: Id
Parameter sets
GetByResourceId
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs