Terraform部署Azure Cognitive Account OpenAI时出现“该订阅没有QuotaId”的错误。

huangapple go评论86阅读模式
英文:

Terraform deploy Azure Cognitive Account OpenAi 'The subscription does not have QuotaId'

问题

我正在使用Terraform部署azurerm_cognitive_account资源,以OpenAI模式运行。

我已设置最小的机器规格'SKU'(F0、F1、S0和S1),但它们都给我配额错误。

cognitiveservicesaccounts.CognitiveServicesAccountsClient#AccountsCreate: Failure sending request: StatusCode=0 -- Original Error: Code="SpecialFeatureOrQuotaIdRequired" Message="The subscription does not have QuotaId/Feature required by SKU 'S0' from kind 'OpenAI'

SPN在RG中具有Contributor权限,并部署了许多其他资源。

我还尝试从Azure门户部署OpenAI,它没有给我错误,可以使用任何SKU。

Terraform版本是最新的。

英文:

I am deploying from terraform the azurerm_cognitive_account resource in OpenAI mode.

I have set the smallest machine size 'SKU' (F0, F1, S0 and S1) and they all give me the quota error.

cognitiveservicesaccounts.CognitiveServicesAccountsClient#AccountsCreate: Failure sending request: StatusCode=0 -- Original Error: Code="SpecialFeatureOrQuotaIdRequired" Message="The subscription does not have QuotaId/Feature required by SKU 'S0' from kind 'OpenAI'

The SPN has permissions in Contributor throughout the RG and deploys many other resources.

I have also tried to deploy from the azure portal the OpenAI and it does not give me error, it lets me with any SKU.

The terraform version is the latest one.

答案1

得分: 2

The subscription exceeds the required quota for the SKU like 'S0' from the type OpenAI. You can request an increase in quota for the required feature or quota ID.

前述订阅超出了 'S0' 类型的 OpenAI 所需的配额。您可以请求增加所需功能或配额 ID 的配额。

Go to the Azure portal -> OpenAI service resource for which you want to increase the request limit, and submit a quota increase support request. I would recommend you try with an alternative SKU that does not require the same limit or feature ID.

前往您想要增加请求限制的 Azure 门户 -> OpenAI 服务 资源,并提交一个配额增加的支持请求。我建议您尝试使用不需要相同限制或功能 ID 的替代 SKU。

But,

但是,

> At this time, due to overwhelming demand we cannot accept any new resource or quota increase requests as detailed in MSDoc.

> 目前,由于需求过于庞大,我们无法接受任何新的资源或配额增加请求,详见MSDoc

As mentioned in the above MS Doc, you can create only 3 resources per region in OpenAI.

如上述 MS 文档中所提到的,您在 OpenAI 中每个区域只能创建 3 个资源。

I already have three resources in my environment for the East Us region. That is why it displays the prompt shown below.

我已经在 East US 区域中有三个资源,这就是为什么它显示下面显示的提示。

Terraform部署Azure Cognitive Account OpenAI时出现“该订阅没有QuotaId”的错误。

Then I changed the region from EastUS to Southcentral US, and it started working and the prompt vanished.

然后我将区域从 East US 更改为 Southcentral US,它开始工作并且提示消失了。

Terraform部署Azure Cognitive Account OpenAI时出现“该订阅没有QuotaId”的错误。

So, try shifting to a different region.

因此,请尝试切换到不同的区域。

Note: You can even create another open AI service in a different location and separate the workload before deployments.

注意: 您甚至可以在不同的位置创建另一个 Open AI 服务,并在部署之前分开工作负载。

After these changes, I tried to deploy the same in my environment by taking a reference template from terraform registry and was able to complete it successfully in another region with the same SKU.

在这些更改之后,我尝试在我的环境中部署相同的内容,通过使用 terraform registry 中的参考模板,成功在另一个具有相同 SKU区域 完成了部署。

data "azurerm_resource_group" "main" {
  name     = "Jahnavi"
  location = "SouthCentral US"
}

resource "azurerm_cognitive_account" "example" {
  name                = "xxxx"
  location            = data.azurerm_resource_group.main.location
  resource_group_name = data.azurerm_resource_group.main.name
  kind                = "Face"
  sku_name = "S0"
}

Output:

Terraform部署Azure Cognitive Account OpenAI时出现“该订阅没有QuotaId”的错误。

Deployment succeeded:

Terraform部署Azure Cognitive Account OpenAI时出现“该订阅没有QuotaId”的错误。

英文:

The subscription exceeds the required quota for the SKU like 'S0' from the type OpenAI. You can request an increase in quota for the required feature or quota ID.

Go to the Azure portal -> OpenAI service resource for which you want to increase the request limit, and submit a quota increase support request. I would recommend you try with an alternative SKU that does not require the same limit or feature ID.

But,

> At this time, due to overwhelming demand we cannot accept any new resource or quota increase requests as detailed in MSDoc.

As mentioned in the above MS Doc, you can create only 3 resources per region in OpenAI.

I already have three resources in my environment for the East Us region. That is why it displays the prompt shown below.

Terraform部署Azure Cognitive Account OpenAI时出现“该订阅没有QuotaId”的错误。

Then I changed the region from EastUS to Southcentral US, and it started working and the prompt vanished.

Terraform部署Azure Cognitive Account OpenAI时出现“该订阅没有QuotaId”的错误。

So, try shifting to a different region.

Note: You can even create another open AI service in a different location and separate the workload before deployments.

After these changes, I tried to deploy the same in my environment by taking a reference template from terraform registry and was able to complete it successfully in another region with the same SKU.

data "azurerm_resource_group" "main" {
  name     = "Jahnavi"
  location = "SouthCentral US"
}

resource "azurerm_cognitive_account" "example" {
  name                = "xxxx"
  location            = data.azurerm_resource_group.main.location
  resource_group_name = data.azurerm_resource_group.main.name
  kind                = "Face"
  sku_name = "S0"
}

Output:

Terraform部署Azure Cognitive Account OpenAI时出现“该订阅没有QuotaId”的错误。

Deployment succeeded:

Terraform部署Azure Cognitive Account OpenAI时出现“该订阅没有QuotaId”的错误。

huangapple
  • 本文由 发表于 2023年5月17日 17:12:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/76270414.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定