Skip to content

Get-AzResourceGroupDeploymentOperation releases after 4.8 are missing "properties" #14706

Open
@sergekozh

Description

@sergekozh

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


Metadata

Metadata

Assignees

Labels

ARM - TemplatesInvestigate 🔍Service AttentionThis issue is responsible by Azure service team.customer-reportedquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions