File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
articles/cognitive-services Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ author: aahill
7
7
manager : nitinme
8
8
ms.service : cognitive-services
9
9
ms.topic : how-to
10
- ms.date : 10/28/2021
10
+ ms.date : 07/19/2022
11
11
ms.author : aahi
12
12
---
13
13
@@ -137,17 +137,17 @@ You can manage default network access rules for Cognitive Services resources thr
137
137
1. Set the default rule to deny network access by default.
138
138
139
139
```azurecli-interactive
140
- az cognitiveservices account update \
141
- -g "myresourcegroup" -n "myaccount" \
142
- --default-action Deny
140
+ az resource update \
141
+ --ids {resourceId} \
142
+ --set properties.networkAcls="{'defaultAction':' Deny'}"
143
143
```
144
144
145
145
1. Set the default rule to allow network access by default.
146
146
147
147
```azurecli-interactive
148
- az cognitiveservices account update \
149
- -g "myresourcegroup" -n "myaccount" \
150
- --default-action Allow
148
+ az resource update \
149
+ --ids {resourceId} \
150
+ --set properties.networkAcls="{'defaultAction':' Allow'}"
151
151
```
152
152
153
153
***
You can’t perform that action at this time.
0 commit comments