@@ -42,14 +42,14 @@ There are two parts to enable data loss prevention. First, the resource property
42
42
43
43
```azurecli-interactive
44
44
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 \
46
46
```
47
47
48
48
1. Configure the restrictOutboundNetworkAccess property and update the allowed FqdnList with the approved URLs
49
49
50
50
```azurecli-interactive
51
51
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 \
53
53
-b '{"properties": { "restrictOutboundNetworkAccess": true, "allowedFqdnList": [ "microsoft.com" ] }}'
54
54
```
55
55
@@ -65,7 +65,7 @@ There are two parts to enable data loss prevention. First, the resource property
65
65
ResourceProviderName = 'Microsoft.CognitiveServices'
66
66
ResourceType = 'accounts'
67
67
Name = 'myaccount'
68
- ApiVersion = '2021-04-30 '
68
+ ApiVersion = '2024-10-01 '
69
69
Method = 'GET'
70
70
}
71
71
Invoke-AzRestMethod @getParams
@@ -79,7 +79,7 @@ There are two parts to enable data loss prevention. First, the resource property
79
79
ResourceProviderName = 'Microsoft.CognitiveServices'
80
80
ResourceType = 'accounts'
81
81
Name = 'myaccount'
82
- ApiVersion = '2021-04-30 '
82
+ ApiVersion = '2024-10-01 '
83
83
Payload = '{"properties": { "restrictOutboundNetworkAccess": true, "allowedFqdnList": [ "microsoft.com" ] }}'
84
84
Method = 'PATCH'
85
85
}
0 commit comments