CmdID

CmdID / az / az cognitiveservices / az cognitiveservices account / az cognitiveservices account managed-network / az cognitiveservices account managed-network outbound-rule

az cognitiveservices account managed-network outbound-rule set

Create or update a single outbound rule for the managed network. Azure CLI reference

3 examples 4 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Create an FQDN outbound rule.

az cognitiveservices account managed-network outbound-rule set --name my-account --resource-group my-resource-group --rule my-fqdn-rule --type fqdn --destination "*.example.com"Identify
--namecognitive service account name
--resource-groupName of resource group.
--ruleName of the outbound rule.
--typeType of the outbound rule.
--destinationDestination for the outbound rule.

Create a ServiceTag outbound rule.

az cognitiveservices account managed-network outbound-rule set --name my-account --resource-group my-resource-group --rule my-servicetag-rule --type servicetag --category UserDefined --destination '{"serviceTag": "Storage", "protocol": "TCP", "portRanges": "443"}'Identify
--namecognitive service account name
--resource-groupName of resource group.
--ruleName of the outbound rule.
--typeType of the outbound rule.
--categoryCategory of the outbound rule.
--destinationDestination for the outbound rule.

Create a PrivateEndpoint outbound rule.

az cognitiveservices account managed-network outbound-rule set --name my-account --resource-group my-resource-group --rule my-pe-rule --type privateendpoint --destination /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg/providers/Microsoft.Storage/storageAccounts/mystorageaccount --subresource-target blobIdentify
--namecognitive service account name
--resource-groupName of resource group.
--ruleName of the outbound rule.
--typeType of the outbound rule.
--destinationDestination for the outbound rule.
--subresource-targetSubresource target for PrivateEndpoint outbound rules (e.g. blob, table, queue, file, web, dfs).

Options

4 in the Azure CLI reference
--categoryCategory of the outbound rule.
--destinationDestination for the outbound rule.
--subresource-targetSubresource target for PrivateEndpoint outbound rules (e.g. blob, table, queue, file, web, dfs).
--typeType of the outbound rule.