File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
articles/virtual-machines/windows Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -28,20 +28,37 @@ Create a proximity placement group using the [New-AzProximityPlacementGroup](/po
28
28
$resourceGroup = "myPPGResourceGroup"
29
29
$location = "East US"
30
30
$ppgName = "myPPG"
31
+ $zone = "1"
32
+ $vmSize1 = "Standard_E64s_v4"
33
+ $vmSize2 = "Standard_M416ms_v2"
31
34
New-AzResourceGroup -Name $resourceGroup -Location $location
32
35
$ppg = New-AzProximityPlacementGroup `
33
36
-Location $location `
34
37
-Name $ppgName `
35
38
-ResourceGroupName $resourceGroup `
36
39
-ProximityPlacementGroupType Standard
40
+ -Zone $zone
41
+ -IntentVMSizeList $vmSize1, $vmSize2
37
42
```
38
43
39
44
## List proximity placement groups
40
45
41
46
You can list all of the proximity placement groups using the [ Get-AzProximityPlacementGroup] ( /powershell/module/az.compute/get-azproximityplacementgroup ) cmdlet.
42
47
43
48
``` azurepowershell-interactive
44
- Get-AzProximityPlacementGroup
49
+ Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroup -Name $ppgName
50
+
51
+ ResourceGroupName : myPPGResourceGroup
52
+ ProximityPlacementGroupType : Standard
53
+ Id : /subscriptions/[subscriptionId]/resourceGroups/myPPGResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myPPG
54
+ Name : myPPG
55
+ Type : Microsoft.Compute/proximityPlacementGroups
56
+ Location : eastus
57
+ Tags : {}
58
+ Intent :
59
+ VmSizes[0] : Standard_E64s_v4
60
+ VmSizes[1] : Standard_M416ms_v2
61
+ Zones[0] : 1
45
62
```
46
63
47
64
You can’t perform that action at this time.
0 commit comments