skip to content
Alvin Lucillo

Creating Microsoft Foundry account

/ 1 min read

To create a Microsoft Foundry account, use the command below, providing a unique name for the account and a globally unique custom domain, which will be used as subdomain. AIServices serves as the kind of this Microsoft Foundry resource.

az cognitiveservices account create \
  --name "foundry-demo-a1b2c3" \
  --resource-group "rg-foundry-demo" \
  --location "centralindia" \
  --custom-domain "foundry-demo-a1b2c3" \
  --kind "AIServices" \
  --sku "S0" \
  --yes

A successful response includes the resource ID, managed identity, endpoint, provisioning state, and SKU. The values below are fictional and safe to use as an example. Note that the values below are fictitious.

{
  "id": "/subscriptions/004e06ae-eea2-4072-817b-72af1e3ba2d3/resourceGroups/rg-foundry-demo/providers/Microsoft.CognitiveServices/accounts/foundry-demo-a1b2c3",
  "identity": {
    "principalId": "d0dfb44b-71ba-437a-b1a7-c69a6229d239",
    "tenantId": "697151f9-f668-43c1-a919-a90f7b9e5380",
    "type": "SystemAssigned"
  },
  "kind": "AIServices",
  "location": "centralindia",
  "name": "foundry-demo-a1b2c3",
  "properties": {
    "customSubDomainName": "foundry-demo-a1b2c3",
    "endpoint": "https://foundry-demo-a1b2c3.cognitiveservices.azure.com/",
    "provisioningState": "Succeeded",
    "publicNetworkAccess": "Enabled"
  },
  "resourceGroup": "rg-foundry-demo",
  "sku": {
    "name": "S0"
  },
  "type": "Microsoft.CognitiveServices/accounts"
}