Incorrect/Confusing response for Get-AzureRmResourceProvider #4887
Labels
ARM - Core Triaged
ARM - Core
ARM
feature-request
This issue requires a new behavior in the product in order be resolved.
Service Attention
This issue is responsible by Azure service team.
Cmdlet(s)
Get-AzureRmResourceProvider
PowerShell Version
Instructions: to get PowerShell version, type
$PSVersionTable
and look for the value associated withPSVersion
5.1.14393.1794
Module Version
OS Version
Instructions: to get OS version, type
$PSversionTable
and look for value associated withBuildVersion
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
The text was updated successfully, but these errors were encountered: