@@ -24,12 +24,14 @@ A proximity placement group is a logical grouping used to make sure that Azure c
24
24
Create a proximity placement group using [ ` az ppg create ` ] ( /cli/azure/ppg#az-ppg-create ) .
25
25
26
26
``` azurecli-interactive
27
- az group create --name myPPGGroup --location westus
27
+ az group create --name myPPGGroup --location eastus
28
28
az ppg create \
29
29
-n myPPG \
30
30
-g myPPGGroup \
31
- -l westus \
31
+ -l eastus \
32
32
-t standard
33
+ --intent-vm-sizes Standard_E64s_v4 Standard_M416ms_v2 \
34
+ -z 1
33
35
```
34
36
35
37
## List proximity placement groups
@@ -39,6 +41,34 @@ You can list all of your proximity placement groups using [az ppg list](/cli/azu
39
41
``` azurecli-interactive
40
42
az ppg list -o table
41
43
```
44
+ ## Show proximity placement group
45
+
46
+ You can see the proximity placement group details and resources using [ az ppg show] ( /cli/azure/ppg#az-ppg-show )
47
+
48
+ ``` azurecli-interactive
49
+ az ppg show --name myPPG --resource-group myPPGGroup
50
+ { "availabilitySets": [],
51
+ "colocationStatus": null,
52
+ "id": "/subscriptions/[subscriptionId]/resourceGroups/myPPGGroup/providers/Microsoft.Compute/proximityPlacementGroups/MyPPG",
53
+ "intent": {
54
+ "vmSizes": [
55
+ "Standard_E64s_v4",
56
+ "Standard_M416ms_v2"
57
+ ]
58
+ },
59
+ "location": "eastus",
60
+ "name": "MyPPG",
61
+ "proximityPlacementGroupType": "Standard",
62
+ "resourceGroup": "myPPGGroup",
63
+ "tags": {},
64
+ "type": "Microsoft.Compute/proximityPlacementGroups",
65
+ "virtualMachineScaleSets": [],
66
+ "virtualMachines": [],
67
+ "zones": [
68
+ "1"
69
+ ]
70
+ }
71
+ ```
42
72
43
73
## Create a VM
44
74
@@ -51,8 +81,8 @@ az vm create \
51
81
--image UbuntuLTS \
52
82
--ppg myPPG \
53
83
--generate-ssh-keys \
54
- --size Standard_D1_v2 \
55
- -l westus
84
+ --size Standard_E64s_v4 \
85
+ -l eastus
56
86
```
57
87
58
88
You can see the VM in the proximity placement group using [ az ppg show] ( /cli/azure/ppg#az-ppg-show ) .
@@ -70,4 +100,4 @@ You can also create a scale set in your proximity placement group. Use the same
70
100
71
101
## Next steps
72
102
73
- Learn more about the [ Azure CLI] ( /cli/azure/ppg ) commands for proximity placement groups.
103
+ Learn more about the [ Azure CLI] ( /cli/azure/ppg ) commands for proximity placement groups.
0 commit comments