Find the resource type's available versions, choose one documented for your operation, then check its lifecycle. The Azure Resource Manager request's api-version chooses a contract; it does not select your PowerShell module version. The REST API browser describes each operation and its request/response schema.
1. Check prerequisites
Use an authenticated Azure PowerShell session in the intended tenant/subscription. Check Get-Module Az.Resources -ListAvailable first; install only if missing and permitted by your workstation policy. Tested module version and execution validation: not recorded.
Install-Module -Name Az.Resources2. Find available API versions for a provider
Get-AzResourceProvider -ListAvailable | Select-Object ProviderNamespace -ExpandProperty ResourceTypes | Select-Object ProviderNamespace, RegistrationState, ResourceTypeName, ApiVersions | Format-TableIf I take the Compute provider, I can display its resource types with:
(Get-AzResourceProvider -ProviderNamespace Microsoft.Compute).ResourceTypesAnd list the available API versions for virtualMachines with:
((Get-AzResourceProvider -ProviderNamespace Microsoft.Compute).ResourceTypes | Where-Object ResourceTypeName -eq virtualMachines).ApiVersionsExpected output is an array of version strings such as YYYY-MM-DD and YYYY-MM-DD-preview, not a resource inventory. These are illustrative formats, not a claim that a particular version is currently supported.
3. Choose and verify the lifecycle
- Open the exact operation, for example Virtual Machines — List All .
- Prefer a documented non-preview version that supplies the fields you need. Preview features require an explicit acceptance of their limitations.
- Check the provider's retirement notices and release information; discovery in a provider list is not an unconditional support guarantee.
- Pin the selected version in your script and validate a read-only request and expected response schema in your own scope.
- Record the version and your actual test date in your project. No technical review date is recorded for this article.
