Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Deploy, evaluate, and manage AI agents end-to-end on Microsoft Azure AI Foundry
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
resource/create/references/troubleshooting.md
1# Troubleshooting: Create Foundry Resource23## Resource Creation Failures45### ResourceProviderNotRegistered67**Solution:**81. If you have Owner/Contributor role, register the provider:9```bash10az provider register --namespace Microsoft.CognitiveServices11```122. If you lack permissions, ask a subscription Owner or Contributor to register it133. Alternatively, ask them to grant you the `/register/action` privilege1415### InsufficientPermissions1617**Solution:**18```bash19# Check your role assignments20az role assignment list --assignee <your-user-id> --subscription <subscription-id>2122# You need: Contributor, Owner, or custom role with Microsoft.CognitiveServices/accounts/write23```2425Use `microsoft-foundry:rbac` skill to manage permissions.2627### LocationNotAvailableForResourceType2829**Solution:**30```bash31# List available regions for Cognitive Services32az provider show --namespace Microsoft.CognitiveServices \33--query "resourceTypes[?resourceType=='accounts'].locations" --out table3435# Choose different region from the list36```3738### ResourceNameNotAvailable3940Resource name must be globally unique. Try adding a unique suffix:4142```bash43UNIQUE_SUFFIX=$(date +%s)44az cognitiveservices account create \45--name "foundry-${UNIQUE_SUFFIX}" \46--resource-group <rg> \47--kind AIServices \48--sku S0 \49--location <location> \50--yes51```5253## Resource Shows as Failed5455**Check provisioning state:**56```bash57az cognitiveservices account show \58--name <resource-name> \59--resource-group <rg> \60--query "properties.provisioningState"61```6263If `Failed`, delete and recreate:64```bash65# Delete failed resource66az cognitiveservices account delete \67--name <resource-name> \68--resource-group <rg>6970# Recreate71az cognitiveservices account create \72--name <resource-name> \73--resource-group <rg> \74--kind AIServices \75--sku S0 \76--location <location> \77--yes78```7980## Cannot Access Keys8182**Error:** `AuthorizationFailed` when listing keys8384**Solution:** You need `Cognitive Services User` or higher role on the resource.8586Use `microsoft-foundry:rbac` skill to grant appropriate permissions.8788## External Resources8990- [Create multi-service resource](https://learn.microsoft.com/en-us/azure/ai-services/multi-service-resource?pivots=azcli)91- [Azure AI Services documentation](https://learn.microsoft.com/en-us/azure/ai-services/)92- [Azure regions with AI Services](https://azure.microsoft.com/global-infrastructure/services/?products=cognitive-services)93