@@ -74,10 +74,10 @@ Create your own network security perimeter resource using [Azure portal](../priv
74
74
75
75
``` azurepowershell-interactive
76
76
# Create a new profile
77
- $nspProfile = @{
78
- Name = 'nsp-profile '
79
- ResourceGroupName = $rgParams.name
80
- SecurityPerimeterName = $nsp.name
77
+ $nspProfile = @{
78
+ Name = '<ProfileName> '
79
+ ResourceGroupName = '<ResourceGroupName>'
80
+ SecurityPerimeterName = '<NetworkSecurityPerimeterName>'
81
81
}
82
82
83
83
$profile = New-AzNetworkSecurityPerimeterProfile @nspProfile
@@ -87,13 +87,13 @@ Create your own network security perimeter resource using [Azure portal](../priv
87
87
88
88
```azurepowershell-interactive
89
89
# Associate the PaaS resource with the above created profile
90
- $nspAssociation = @{
91
- AssociationName = 'nsp-association'
92
- ResourceGroupName = $rgParams.name
93
- SecurityPerimeterName = $nsp.name
94
- AccessMode = 'Learning'
95
- ProfileId = $nspProfile.Id
96
- PrivateLinkResourceId = $batchAccount.ResourceID
90
+ $nspAssociation = @{
91
+ AssociationName = '<AssociationName>'
92
+ ResourceGroupName = '<ResourceGroupName>'
93
+ SecurityPerimeterName = '<NetworkSecurityPerimeterName>'
94
+ AccessMode = 'Learning'
95
+ ProfileId = '<NetworkSecurityPerimeterProfileId>'
96
+ PrivateLinkResourceId = '<BatchAccountResourceId>'
97
97
}
98
98
99
99
New-AzNetworkSecurityPerimeterAssociation @nspAssociation | format-list
@@ -106,9 +106,9 @@ Create your own network security perimeter resource using [Azure portal](../priv
106
106
```azurecli-interactive
107
107
# Create a new profile
108
108
az network perimeter profile create \
109
- --name network-perimeter-profile \
110
- --resource-group resource-group \
111
- --perimeter-name network-security-perimeter
109
+ --name <ProfileName> \
110
+ --resource-group <ResourceGroupName> \
111
+ --perimeter-name <NetworkSecurityPerimeterName>
112
112
113
113
```
114
114
@@ -117,19 +117,19 @@ Create your own network security perimeter resource using [Azure portal](../priv
117
117
```azurecli-interactive
118
118
# Get the profile id
119
119
az network perimeter profile show \
120
- --name network-perimeter-profile \
121
- --resource-group resource-group \
122
- --perimeter-name network-security-perimeter
120
+ --name <ProfileName> \
121
+ --resource-group <ResourceGroupName> \
122
+ --perimeter-name <NetworkSecurityPerimeterName>
123
123
124
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
125
+ # Replace <PaaSArmId> and <NetworkSecurityPerimeterProfileId > with the values for your Batch account resource id and profile
126
126
az network perimeter association create \
127
- --name network-perimeter-association \
128
- --perimeter-name network-security-perimeter \
129
- --resource-group resource-group \
127
+ --name <NetworkSecurityPerimeterAssociationName> \
128
+ --perimeter-name <NetworkSecurityPerimeterName> \
129
+ --resource-group <ResourceGroupName> \
130
130
--access-mode Learning \
131
131
--private-link-resource "{id:<PaaSArmId>}" \
132
- --profile "{id:<networkSecurityPerimeterProfileId >}"
132
+ --profile "{id:<NetworkSecurityPerimeterProfileId >}"
133
133
134
134
```
135
135
0 commit comments