Skip to content

Commit 04d3209

Browse files
authored
Merge pull request #247 from jkrilov/patch-1
Fix: example api version
2 parents 8aa1176 + 00d7c9a commit 04d3209

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/ai-services/cognitive-services-data-loss-prevention.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ There are two parts to enable data loss prevention. First, the resource property
4242
4343
```azurecli-interactive
4444
az rest -m get \
45-
-u /subscriptions/{subscription ID}/resourceGroups/{resource group}/providers/Microsoft.CognitiveServices/accounts/{account name}?api-version=2021-04-30 \
45+
-u /subscriptions/{subscription ID}/resourceGroups/{resource group}/providers/Microsoft.CognitiveServices/accounts/{account name}?api-version=2024-10-01 \
4646
```
4747
4848
1. Configure the restrictOutboundNetworkAccess property and update the allowed FqdnList with the approved URLs
4949
5050
```azurecli-interactive
5151
az rest -m patch \
52-
-u /subscriptions/{subscription ID}/resourceGroups/{resource group}/providers/Microsoft.CognitiveServices/accounts/{account name}?api-version=2021-04-30 \
52+
-u /subscriptions/{subscription ID}/resourceGroups/{resource group}/providers/Microsoft.CognitiveServices/accounts/{account name}?api-version=2024-10-01 \
5353
-b '{"properties": { "restrictOutboundNetworkAccess": true, "allowedFqdnList": [ "microsoft.com" ] }}'
5454
```
5555
@@ -65,7 +65,7 @@ There are two parts to enable data loss prevention. First, the resource property
6565
ResourceProviderName = 'Microsoft.CognitiveServices'
6666
ResourceType = 'accounts'
6767
Name = 'myaccount'
68-
ApiVersion = '2021-04-30'
68+
ApiVersion = '2024-10-01'
6969
Method = 'GET'
7070
}
7171
Invoke-AzRestMethod @getParams
@@ -79,7 +79,7 @@ There are two parts to enable data loss prevention. First, the resource property
7979
ResourceProviderName = 'Microsoft.CognitiveServices'
8080
ResourceType = 'accounts'
8181
Name = 'myaccount'
82-
ApiVersion = '2021-04-30'
82+
ApiVersion = '2024-10-01'
8383
Payload = '{"properties": { "restrictOutboundNetworkAccess": true, "allowedFqdnList": [ "microsoft.com" ] }}'
8484
Method = 'PATCH'
8585
}

0 commit comments

Comments
 (0)