Is there an existing issue for this?
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
The ARM API for Microsoft.CognitiveServices/accounts/deployments (2025-06-01) requires a
modelProviderData field when creating deployments for third-party model providers (Anthropic). The azurerm_cognitive_deployment resource has no corresponding argument, causing
all Anthropic model deployments to fail with a 400 on create.
azurerm_cognitive_deployment
Terraform Version
v1.14.1
AzureRM Provider Version
4.54
Affected Resource(s)/Data Source(s)
azurerm_cognitive_deployment
Terraform Configuration Files
resource "azurerm_cognitive_deployment" "claude-sonnet-4-6" {
name = "claude-sonnet-4-6"
cognitive_account_id = azurerm_cognitive_account.foundry.id
rai_policy_name = "Microsoft.DefaultV2"
model {
format = "Anthropic"
name = "claude-sonnet-4-6"
version = "1"
}
sku {
name = "GlobalStandard"
capacity = 1
}
}
Debug Output/Panic Output
InvalidModelProviderData: ModelProviderData is required for Anthropic model deployments but
was not provided. Please provide all required fields: industry, organizationName, and countryCode.
Expected Behaviour
A model_provider_data block should be available, e.g.:
model_provider_data {
organization_name = ""
industry = "Other"
country_code = "US"
}
Actual Behaviour
The resource cannot be created via Terraform at all. The only workaround is to create
the deployment manually in the Azure AI Foundry portal and then import it into state.
Steps to Reproduce
terraform apply
Important Factoids
No response
References
Workaround
Create the deployment manually in AI Foundry portal, then:
terraform import azurerm_cognitive_deployment. <resource_id>
Additional Context
- ARM API version used by azurerm 4.54.0: 2025-06-01
- modelProviderData is required on PUT but not returned on GET, making import viable
but initial creation impossible through Terraform
- Affects all third-party model providers, not just Anthropic
Is there an existing issue for this?
Community Note
The ARM API for Microsoft.CognitiveServices/accounts/deployments (2025-06-01) requires a
modelProviderDatafield when creating deployments for third-party model providers (Anthropic). Theazurerm_cognitive_deploymentresource has no corresponding argument, causingall Anthropic model deployments to fail with a 400 on create.
azurerm_cognitive_deploymentTerraform Version
v1.14.1
AzureRM Provider Version
4.54
Affected Resource(s)/Data Source(s)
azurerm_cognitive_deployment
Terraform Configuration Files
Debug Output/Panic Output
InvalidModelProviderData: ModelProviderData is required for Anthropic model deployments but was not provided. Please provide all required fields: industry, organizationName, and countryCode.Expected Behaviour
A
model_provider_datablock should be available, e.g.:model_provider_data {
organization_name = ""
industry = "Other"
country_code = "US"
}
Actual Behaviour
The resource cannot be created via Terraform at all. The only workaround is to create
the deployment manually in the Azure AI Foundry portal and then import it into state.
Steps to Reproduce
terraform apply
Important Factoids
No response
References
Workaround
Create the deployment manually in AI Foundry portal, then:
terraform import azurerm_cognitive_deployment. <resource_id>
Additional Context
but initial creation impossible through Terraform