Skip to content

Commit 2c530e6

Browse files
authored
Merge pull request #205241 from aahill/cli-fix
updating network rules
2 parents 3e5789a + f443195 commit 2c530e6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/cognitive-services/cognitive-services-virtual-networks.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: aahill
77
manager: nitinme
88
ms.service: cognitive-services
99
ms.topic: how-to
10-
ms.date: 10/28/2021
10+
ms.date: 07/19/2022
1111
ms.author: aahi
1212
---
1313

@@ -137,17 +137,17 @@ You can manage default network access rules for Cognitive Services resources thr
137137
1. Set the default rule to deny network access by default.
138138
139139
```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'}"
143143
```
144144
145145
1. Set the default rule to allow network access by default.
146146
147147
```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'}"
151151
```
152152
153153
***

0 commit comments

Comments
 (0)