How to get instance views for all VMs in Azure

0 votes

Hi Team,

I have some VMs in Azure. I want to get instance views for all VMs. So I can use it in the automation script. Can anyone tell me how can I create a customized command for this task?

Nov 11, 2020 in Azure by akhtar
• 38,180 points
81 views

1 answer to this question.

0 votes

Hi@akhtar,

You can get instance views for all VMs in a resource group in some way. You can use --query argument in your command, as shown below.

$ az vm get-instance-view --ids $(az vm list -g MyResourceGroup --query "[].id" -o tsv)
answered Nov 11, 2020 by MD
• 95,240 points

Related Questions In Azure

0 votes
1 answer

How to get the list of names of Azure blob files in a container?

We can get some additional info like Size, ...READ MORE

answered Jun 27, 2018 in Azure by club_seesharp
• 3,450 points
11,506 views
0 votes
1 answer

How to get blob-URL after file upload in azure?

Assuming you're uploading the blobs into blob ...READ MORE

answered Sep 27, 2018 in Azure by null_void
• 3,220 points
10,224 views
0 votes
1 answer

How to export the template used for a deployment in Azure?

Hi@akhtar, You can export the deployment available in ...READ MORE

answered Nov 15, 2020 in Azure by MD
• 95,240 points
78 views
0 votes
1 answer

How can I remove/hide/disable excessive HTTP response headers in Azure/IIS7 without having to use UrlScan?

MSDN published an article on how to ...READ MORE

answered May 21, 2018 in Azure by club_seesharp
• 3,450 points
2,397 views
0 votes
1 answer

What is Azure Cloud Service?

Azure Cloud Services is an example of ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 59,090 points
273 views
0 votes
2 answers

Azure DevOps and its need?

Azure DevOps is a hosted service providing ...READ MORE

answered Aug 28, 2020 in Azure by nbavis
• 380 points
391 views
0 votes
1 answer

What is Azure stack?

Azure Stack is a hybrid cloud computing software solution ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 59,090 points
246 views
0 votes
1 answer

How is Azure Cosmos db different from an Azure SQL db?

Azure Cosmos DB is Microsoft’s globally distributed database ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 59,090 points
1,155 views
0 votes
1 answer

How to get access credentials for a managed Kubernetes cluster in Azure?

Hi@akhtar, After creating the Kubernetes Cluster, you need ...READ MORE

answered Nov 16, 2020 in Azure by MD
• 95,240 points
72 views
0 votes
1 answer

How to get available ips in the VNet in Azure?

Hi@akhtar, The available ips depend on the network ...READ MORE

answered Nov 12, 2020 in Azure by MD
• 95,240 points
158 views