I'm trying to deploy OpenAI service using a bicep file like this:
resource open_ai 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
name: 'xxx'
location: 'westeurope'
kind: 'OpenAI'
sku: {
name: 'S0'
}
identity: {
type: 'SystemAssigned'
}
properties: {
publicNetworkAccess: 'Disabled'
}
}
However, I'm getting this error for hours now:
{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Resources/deployments/infra","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"ResourceDeploymentFailure","target":"/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.CognitiveServices/accounts/xxx","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[{"code":"OperationError","message":"Failed to Create the resource. Provisioning state: Failed","details":[{"code":"8","message":"GSO service has internal server error."}]}]}]}}
Interestingly, the resource is being created successfully and functions without any issues. However, the error is causing the CI pipeline to fail.