Unable to Deploy application in Azure OpenAI
Hi ! I have deployed a RAG application in azure, When I executed first it was completely deployed and I got a URL to chat with . But when I deployed again with another Resource group, I got this error mentioned below. I have also attached the code that I executed for creating OpenAI .
One more thing is, When I tried to deploy multiple times with new environment created , App services plan is getting Failed and App services is not created in that resource group.
"ERROR: error executing step command 'provision': deployment failed: error deploying infrastructure: deploying to subscription:
Deployment Error Details:
InvalidTemplateDeployment: The template deployment 'openai' is not valid according to the validation procedure. The tracking id is 'b65199e8-2814-4060-89ae-d697f65c235c'. See inner errors for details.
InsufficientQuota: This operation require 30 new capacity in quota Tokens Per Minute (thousands) - GPT-35-Turbo, which is bigger than the current available capacity 0. The current quota usage is 30 and the quota limit is 30 for quota Tokens Per Minute (thousands) - GPT-35-Turbo.
Conflict: No available instances to satisfy this request. App Service is attempting to increase capacity. Please retry your request later. If urgent, this can be mitigated by deploying this to a new resource group.
- No available instances to satisfy this request. App Service is attempting to increase capacity. Please retry your request later. If urgent, this can be mitigated by deploying this to a new resource group.
TraceID: f8d6a8cd9ed54d45cafad7b6de4a4f48"
metadata description = 'Creates an Azure Cognitive Services instance.'
param name string
param location string = resourceGroup().location
param tags object = {}
@description('The custom subdomain name used to access the API. Defaults to the value of the name parameter.')
param customSubDomainName string = name
param disableLocalAuth bool = false
param deployments array = []
param kind string = 'OpenAI'
@allowed([ 'Enabled', 'Disabled' ])
param publicNetworkAccess string = 'Enabled'
param sku object = {
name: 'S0'
capacity : 30 // added this capacity :30 which was not before
}
@allowed([ 'None', 'AzureServices' ])
param bypass string = 'None'
var networkAcls = {
defaultAction: 'Allow'
}
var networkAclsWithBypass = {
defaultAction: 'Allow'
bypass: bypass
}
resource account 'Microsoft.CognitiveServices/accounts@2023-10-01-preview' = {
name: name
location: location
tags: tags
kind: kind
properties: {
customSubDomainName: customSubDomainName
publicNetworkAccess: publicNetworkAccess
// Some services do not support bypass in network acls
networkAcls: (kind == 'FormRecognizer' || kind == 'ComputerVision' || kind == 'SpeechServices') ? networkAcls : networkAclsWithBypass
disableLocalAuth: disableLocalAuth
}
sku: sku
}
@batchSize(1)
resource deployment 'Microsoft.CognitiveServices/accounts/deployments@2023-05-01' = [for deployment in deployments: {
parent: account
name: deployment.name
properties: {
model: deployment.model
raiPolicyName: contains(deployment, 'raiPolicyName') ? deployment.raiPolicyName : null
}
sku: contains(deployment, 'sku') ? deployment.sku : {
name: 'Standard'
capacity: 30 // changed from 20 to 30
}
}]
output endpoint string = account.properties.endpoint
output id string = account.id
output name string = account.name
output location string = account.location