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
Examples
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
--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.