- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to get the Azure VM storage account type using PowerShell?
To get the Azure VM storage account type using PowerShell, we need to get the Azure VM storage profile setting from the Get-AzVM command.
PS C:\> $vm = Get-AzVM -Name TestVM PS C:\> $vm.StorageProfile.OsDisk.ManagedDisk.StorageAccountType
Output
To get the storage account type on the multiple VMs from the specific subscription, use the below command.
Get-AzVM | Select Name,ResourceGroupName, @{N='StorageType';E={$_.StorageProfile.OsDisk.ManagedDisk.StorageAccountType}}
- Related Articles
- How to get the Azure VM Size using Azure CLI in PowerShell?
- How to get the Azure VM username using Azure CLI in PowerShell?
- How to get Azure VM activity logs using PowerShell?
- How to get the Azure VM DNS name using PowerShell?
- How to get the Azure VM available sizes using PowerShell?
- How to get the installed Azure VM extension using PowerShell?
- How to get the available azure VM size using Azure CLI in PowerShell?
- How to get the location of the Azure VM using Azure CLI in PowerShell?
- How to get the Azure VM disk encryption settings using PowerShell?
- How to get the Azure VM disk caching settings using PowerShell?
- How to get all the available azure VM images using Azure CLI in PowerShell?
- How to get the Power state of the Azure VM using PowerShell?
- How to get the Accelerated networking status of Azure VM using PowerShell?
- How to get the Azure storage container blobs (Files) using PowerShell?
- How to connect Azure Account using PowerShell?

Advertisements