I would like to figure out if my Azure VM (Windows + Linux) is Gen1 or Gen2. Ideally I want to get this to work via az cli or from the actual server itself. I have tried az vm list -g RG-Name -d but it does not really display this information. Does anyone know how to obtain this ?
How to tell if my VM is Gen1 or Gen2 in Azure?
4.3k views Asked by souser At
1
There are 1 answers
Related Questions in AZURE
- How to update to the latest external Git in Azure Web App?
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Inject AsyncCollector into a service
- mutual tls authentication between app service and function app
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Application settings for production deployment slot in Azure App Services
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Implementing Incremental consent when using both application and delegated permissions
- Invalid format for email address in WordPress on Azure app service
- Producer Batching Service Bus Vs Kafka
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Azure Batch for Excel VBA
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Azure Scale Sets and Parallel Jobs
Related Questions in AZURE-VIRTUAL-MACHINE
- Cost saving recommendations and best practices for Azure
- How can i create an Azure alert when user logs into a VM?
- Azure SQL Managed Instance Connection with .net 4.8 api/svc host
- Access AWS secret manager from Azure VM
- How to create an Azure VM from an existing managed disk with PowerShell?
- How to use New-AzConfigurationAssignment Powershell cmdlet for Dynamic Scope for different subscriptions -Azure update manager
- How to Connect to Mosquitto MQTT server in VM using Typescript
- Issues creating Windows Server VM (for Azure Data Factory self-hosted IR) from custom image built using Packer
- Azure Virtual Machines cannot connect to Internet even after NSG exception rule
- Intermittent Redis timeout issues when a Function attempts to connect to the server
- What is the most cost-effective way to automatically start an Azure VM?
- Why fails my internet request to Azure VM?
- DNS lookup events stopped propagating to log analytics
- How to host .net tcpclient listner in azure virtual machine
- Azure App Service Certificate for Azure VM
Related Questions in AZURE-CLI
- Kubernetes : How to connect production and non-production Azure CLI simultaneously through windows system?
- Azure Developer CLI does not recognize environment
- Is there any way to get a new Azure CLI token without logging out?
- Azure Service Principals are not deleting from the Azure CLI
- az functionapp config is truncating trailing bracket
- How to install azure devops extension from powershell script
- Troubleshooting GitHub Secrets: "Invalid Subscription or Tenant Level Error"
- "Directory is expected, not a file." error when using Azure CLI to download from blob storage
- Azure error writing parquet to ADLS Gen 2
- Azure container registry az acr build command times out with 404 BlobNotFound
- Error Exporting disk to a Storage account -Both configured with private endpoints in the same Vnet
- How to create Azure devops service connection via code?
- What Azure account to use to run a python script on multiple azure tenants resources?
- How to add all iterations of a project to all teams in that project?
- Is it possible to show if OAuth is being used for Azure Function App?
Related Questions in AZURE-CLI2
- Service Principals I create are not being created as mine
- How to install azure devops extension from powershell script
- az containerapp exec is throwing exception in azure cli task of azure devops pipeline
- Azure cli or rest api end to upload custom policy
- Insufficient privileges using Azure CLI over Pipeline
- Why is running an Azure CLI command in a pipeline super slow?
- How to Set Azure App scope after creating the new App using Azure CLI
- Azure DevOps Pipeline Az CLI task: ERROR: 'NoneType' object is not iterable
- How to pass a script argument with spaces to Azure CLI task
- How to pass more than 5000 characters as command to Azure CLI task?
- Azure CLI Task Yaml
- az account not prompting for login but still granting access
- How to pass AzureCLI credential to docker run (to be used by DefaultAzureCredential inside the container)?
- az keyvault key rotation-policy update - CLI supported version
- Azure : ResourceNotFound from az cli but resource exist in Portal
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Good question. The hyperVgeneration property in the VM's instance view information exposes this detail about the VM, wherein V1 indicates Generation 1 VMs and V2 indicates Generation 2 VMs.
Using the az vm get-instance-view, you could try:
and look for the
hyperVgenerationproperty in the response:Going one step ahead, if you want to query your Subscription for Gen1/Gen2 VMs, you can execute the following Azure CLI command:
The response would be similar to:
Although the Gen2 VMs' SKU names also hint towards the Gen1 vs Gen2 distinction,
hyperVgenerationshould be the exact property to look for.