
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Get 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}}
Advertisements