Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
A failed Foundry AIServices resource is not documented as repairable in place from the provided guidance. The supported validation step is to confirm whether the resource actually exists and whether provisioning completed successfully.
Use Azure PowerShell:
- Sign in:
Connect-AzAccount - Select the subscription that contains the resource:
Set-AzContext -Subscription "Azure subscription 1" - Check the resource:
Get-AzCognitiveServicesAccount -Name jeff-5442-resource -ResourceGroupName forgewarden-dev | Select-Object AccountName, Kind, @{Name="ProvisioningState"; Expression={$_.Properties.ProvisioningState}}, Endpoint
Interpret the result as follows:
- If
KindisAIServicesandProvisioningStateisSucceeded, the resource is usable. - If the resource is missing, or
ProvisioningStateis notSucceeded, the provided documentation does not describe an in-place repair path.
Based on the available troubleshooting guidance for Foundry provisioning failures, the practical recovery path is to recreate the resource. If recreation is chosen, use a new globally unique account name if the original name is still reserved or if creation reports a name conflict. For cleanup, deleting the resource group is destructive and removes all resources in that group.
If deployment tooling is involved, also check these known provisioning blockers before recreating:
-
AccountNameInvalid: the Foundry resource name must be globally unique, 2–64 characters, and use only lowercase letters, numbers, and hyphens. - Region mismatch: explicitly pass the intended location if deployment defaults to another region.
- CLI bug in Azure CLI 2.74–2.75: rerun with
--debugand inspectException Details:if the visible error is masking the real cause.
If the failed resource must be removed first, the documented cleanup commands are:
Remove-AzResourceGroup -Name exampleRG
or
az group delete --name exampleRG
Warning: both commands are destructive for the entire resource group.