Description
Description
Latest version of Az modules (5.7.0 and 5.6.0) changed output of Get-AzResourceGroupDeploymentOperation and returned object no longer has "properties" as it was in 4.8 and prior.
That "properties" property of the returned object had the following properties/values inside:
$.properties.provisioningOperation
$.properties.timestamp
$.properties.provisioningState
$.properties.statusCode
$.properties.statusMessage
$.properties.statusMessage.error.message
$.properties.targetResource.resourceType
$.properties.duration
Those properties are very useful, we need the newer commandlets to return them as well.
Steps to reproduce
This works:
Import-Module -Name Az -RequiredVersion 4.8.0
(Get-AzResourceGroupDeployment -ResourceGroupName 123 -DeploymentName xyz| Get-AzResourceGroupDeploymentOperation).Properties
This fails:
Import-Module -Name Az -RequiredVersion 5.7.0
(Get-AzResourceGroupDeployment -ResourceGroupName 123 -DeploymentName xyz| Get-AzResourceGroupDeploymentOperation).Properties
Raising issue not to point out difference in return object type but to call out that its now impossible to get those valuable deployment properties with the newer Az PS modules.
Environment data
Module versions
Debug output
Error output