Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
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}} Advertisements
