@@ -73,8 +73,7 @@ Create your own network security perimeter resource using [Azure portal](../priv
73
73
1 . Create a new profile for your network security perimeter
74
74
75
75
``` azurepowershell-interactive
76
- # Create a new profile
77
-
76
+ # Create a new profile
78
77
$nspProfile = @{
79
78
Name = 'nsp-profile'
80
79
ResourceGroupName = $rgParams.name
@@ -88,13 +87,12 @@ Create your own network security perimeter resource using [Azure portal](../priv
88
87
89
88
```azurepowershell-interactive
90
89
# Associate the PaaS resource with the above created profile
91
-
92
90
$nspAssociation = @{
93
91
AssociationName = 'nsp-association'
94
92
ResourceGroupName = $rgParams.name
95
93
SecurityPerimeterName = $nsp.name
96
94
AccessMode = 'Learning'
97
- ProfileId = $Profile .Id
95
+ ProfileId = $nspProfile .Id
98
96
PrivateLinkResourceId = $batchAccount.ResourceID
99
97
}
100
98
@@ -116,22 +114,15 @@ Create your own network security perimeter resource using [Azure portal](../priv
116
114
117
115
2. Associate the Batch account (PaaS resource) with the network security perimeter profile with the following commands.
118
116
119
- ```azurecli-interactive
120
-
121
- # Get key vault id
122
- az keyvault show \
123
- --name $key_vault_name \
124
- --resource-group resource-group \
125
- --query 'id'
126
-
117
+ ```azurecli-interactive
127
118
# Get the profile id
128
119
az network perimeter profile show \
129
120
--name network-perimeter-profile \
130
121
--resource-group resource-group \
131
122
--perimeter-name network-security-perimeter
132
123
133
- # Associate the Azure Key Vault with the network security perimeter profile
134
- # Replace <PaaSArmId> and <networkSecurityPerimeterProfileId> with the ID values for your Batch account and profile
124
+ # Associate the Batch account with the network security perimeter profile
125
+ # Replace <PaaSArmId> and <networkSecurityPerimeterProfileId> with the values for your Batch account name and profile
135
126
az network perimeter association create \
136
127
--name network-perimeter-association \
137
128
--perimeter-name network-security-perimeter \
0 commit comments