Skip to content

Incorrect/Confusing response for Get-AzureRmResourceProvider #4887

Open
@darshdeeph

Description

@darshdeeph

Cmdlet(s)

Get-AzureRmResourceProvider

PowerShell Version

Instructions: to get PowerShell version, type $PSVersionTable and look for the value associated with PSVersion
5.1.14393.1794

Module Version

OS Version

Instructions: to get OS version, type $PSversionTable and look for value associated with BuildVersion
10.0.14393.1794

Description

Get-AzureRmResourceProvider with -ProviderNamespace value gives an array of responses for different ResourceTypes. In this response, every ResourceType has it's own RegistrationState property, which is misleading because RegistrationState is a property of the ProviderNamespace, not the ResourceType.

Expected output is one single object that describes the properties of the ProviderNamespace passed in the -ProviderNamespace flag.

Note: When you run Get-AzureRmResourceProvider without providing a -ProviderNamespace, the response is good. It bundles up the different ResourceTypes into their ProviderNamespace.

Script/Steps for Reproduction

Get-AzureRmResourceProvider -ProviderNamespace Microsoft.Subscriptions

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions