Skip to content

Commit 20ab456

Browse files
authored
Update configure-storage-policy.md
Changed the name of the cmdlets and added a new one.
1 parent b04506e commit 20ab456

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

articles/azure-vmware/configure-storage-policy.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ You'll run the `Get-StoragePolicy` cmdlet to list the vSAN based storage policie
7272

7373
## Set storage policy on VM
7474

75-
You'll run the `Set-AvsVMStoragePolicy` cmdlet to Modify vSAN based storage policies on an individual VM.
75+
You'll run the `Set-VMStoragePolicy` cmdlet to Modify vSAN based storage policies on an individual VM or on a group of VMs sharing a similar VM name. For example, if you have 3 VMs named "MyVM1", "MyVM2", "MyVM3", supplying "MyVM*" to the VMName parameter would change the StoragePolicy on all three VMs.
7676

7777
>[!NOTE]
7878
>You cannot use the vSphere Client to change the default storage policy or any existing storage policies for a VM.
7979
80-
1. Select **Run command** > **Packages** > **Set-AvsVMStoragePolicy**.
80+
1. Select **Run command** > **Packages** > **Set-VMStoragePolicy**.
8181

8282
1. Provide the required values or change the default values, and then select **Run**.
8383

@@ -91,6 +91,28 @@ You'll run the `Set-AvsVMStoragePolicy` cmdlet to Modify vSAN based storage poli
9191

9292
1. Check **Notifications** to see the progress.
9393

94+
## Set storage policy on all VMs in a location
95+
96+
You'll run the `Set-LocationStoragePolicy` cmdlet to Modify vSAN based storage policies on all VMs in a location where a location is the name of a cluster, resource pool, or folder. For example, if you have 3 VMs in Cluster-3, supplying "Cluster-3" would change the storage policy on all 3 VMs.
97+
98+
>[!NOTE]
99+
>You cannot use the vSphere Client to change the default storage policy or any existing storage policies for a VM.
100+
101+
1. Select **Run command** > **Packages** > **Set-LocationStoragePolicy**.
102+
103+
1. Provide the required values or change the default values, and then select **Run**.
104+
105+
| **Field** | **Value** |
106+
| --- | --- |
107+
| **Location** | Name of the target VM. |
108+
| **StoragePolicyName** | Name of the storage policy to set. For example, **RAID-FTT-1**. |
109+
| **Retain up to** | Retention period of the cmdlet output. The default value is 60. |
110+
| **Specify name for execution** | Alphanumeric name, for example, **changeVMStoragePolicy**. |
111+
| **Timeout** | The period after which a cmdlet exits if taking too long to finish. |
112+
113+
1. Check **Notifications** to see the progress.
114+
115+
94116

95117
## Specify storage policy for a cluster
96118

0 commit comments

Comments
 (0)