Virtual Geek

Tales from real IT system administrators world and non-production environment

Get the list Azure Reservation Catalog with PowerShell and AzureCLI

I wanted to design Azure Reservations solution, before desinging the solution I wanted to fetch Reservations catalog list (SKUs) available in the specified subscription for a location, so I can create a presentation and pitch to client which available reserved virtual machine we can use. This below PowerShell command can help to gather the information. 

Note: To run this command you need to use az.reservations module on the Powershell. In the ReservedResourceType you can create CosmosDb, RedHat, RedHatOsa, SqlDataWarehouse, SqlDatabases, SuseLinux, VMwareCloudSimple, VirtualMachines as reserved resources.

Get-AzReservationCatalog -ReservedResourceType VirtualMachines -Location eastus

If you are want to use AzureCLI command to get the regions and skus that are available for Reserved Instance purchase for the specified Azure subscription, use below az command.

az reservations catalog show --reserved-resource-type virtualmachines --location eastus --subscription-id xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx

Microsoft Azure Reservation get-azreservationCatalog -reservedResourceType -location Microsoft PowerShell az.reservations az module azurecli az login catalog subscription id.png

Useful Articles
PowerShell List All Azure Resverations
Powershell get the list of Azure Reservations Virtual Machines instances
Create an Azure App registrations in Azure Active Directory using PowerShell & AzureCLI
Connect-AzureAD: One or more errors occurred. Could not load type 'System.Security.Cryptography.SHA256Cng'
Use Key Vault secret identifier url to get the secret value using Powershell
Working With Azure Key Vault Using Azure PowerShell and AzureCLI
Create key vault and secrets with access policies in Microsoft Azure
Creating a new user in Azure AD using oneliner PowerShell and Azure CLI
How to switch to other Azure AD tenant using PowerShell and Azure CLI

Go Back


Blog Search

Page Views


Follow me on Blogarama