Azure-docs: Should be (Get-AzResourceProvider -ProviderNamespace Microsoft.Batch).ResourceType instead of (Get-AzResourceProvider -ProviderNamespace Microsoft.Batch).ResourceTypes

Created on 15 Dec 2020  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-docs

[Enter feedback here]


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

azure-resource-managesvc cxp doc-bug managemensubsvc triaged

All 7 comments

Hi @dolauli, Thanks for the Comment. We are actively investigating and will get back to you soon.

@dolauli - I double-checked the command and the correct syntax is still ".ResourceTypes". Where are you seeing ".ResourceType" as the correct syntax?

Following is the command I run.

`PS C:Usersxidisrcautorest.powershell> (Get-AzResourceProvider -ProviderNamespace Microsoft.DesktopVirtualization).ResourceType

ResourceType Location ApiVersion
------------ -------- ----------
workspaces {East US, East US 2, West US, West US 2…} {2020-10-19-preview, 2020-09-21-preview, 2019-12-10-preview, 2019-09-24-preview…}
applicationgroups {East US, East US 2, West US, West US 2…} {2020-10-19-preview, 2020-09-21-preview, 2019-12-10-preview, 2019-09-24-preview…}
applicationgroups/applications {East US, East US 2, West US, West US 2…} {2020-10-19-preview, 2020-09-21-preview, 2019-12-10-preview, 2019-09-24-preview…}
applicationgroups/desktops {East US, East US 2, West US, West US 2…} {2020-10-19-preview, 2020-09-21-preview, 2019-12-10-preview, 2019-09-24-preview…}
applicationgroups/startmenuitems {East US, East US 2, West US, West US 2…} {2020-10-19-preview, 2020-09-21-preview, 2019-12-10-preview, 2019-09-24-preview…}
hostpools {East US, East US 2, West US, West US 2…} {2020-10-19-preview, 2020-09-21-preview, 2019-12-10-preview, 2019-09-24-preview…}
hostpools/msixpackages {East US, East US 2, West US, West US 2…} {2020-10-19-preview, 2020-09-21-preview, 2019-12-10-preview, 2019-09-24-preview…}
hostpools/sessionhosts {East US, East US 2, West US, West US 2…} {2020-10-19-preview, 2020-09-21-preview, 2019-12-10-preview, 2019-09-24-preview…}
hostpools/sessionhosts/usersessions {East US, East US 2, West US, West US 2…} {2020-10-19-preview, 2020-09-21-preview, 2019-12-10-preview, 2019-09-24-preview…}
hostpools/usersessions {East US, East US 2, West US, West US 2…} {2020-10-19-preview, 2020-09-21-preview, 2019-12-10-preview, 2019-09-24-preview…}
scalingPlans {East US, East US 2, West US, West US 2…} {2020-10-19-preview, 2020-09-21-preview, 2019-12-10-preview, 2019-09-24-preview…}
operations {} {2019-12-10-preview, 2019-09-24-preview, 2019-01-23-preview}`

Not sure what is going on. I see the opposite results. If I use .ResourceType, I get no results but if I use .ResourceTypes I get the full results.

To check if it is a version issue, can you run:
Get-InstalledModule -Name Az -AllVersions | Select-Object -Property Name, Version

And:
$PSVersionTable.PSVersion

PS C:Usersxidisrcautorest.powershell> Get-InstalledModule -Name Az -AllVersions | Select-Object -Property Name, Version

Name Version


Az 3.8.0

PS C:Usersxidisrcautorest.powershell> $PSVersionTable.PSVersion

Major Minor Patch PreReleaseLabel BuildLabel


6 2 4

@dolauli - I am guessing this is an issue with the version. The current version of the Az module is 5.2.

Closing this as a version mismatch. Seems no update is required to the doc.
@dolauli - Please don't hesitate to ping with any follow-up questions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

clangnerakq picture clangnerakq  Â·  46Comments

danielstocker picture danielstocker  Â·  70Comments

DanijelMalik picture DanijelMalik  Â·  82Comments

ManuelMos picture ManuelMos  Â·  46Comments

xkobal picture xkobal  Â·  42Comments