Azure-Samples / Azure-Samples/azure-devops-copilot-extension

error saying SpecialFeatureOrQuotaIdRequired

Open
#19 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
75
Forks
25
PR merge metrics
No merged PRs in 30d

Description

> Please provide us with the following information:
> ---------------------------------------------------------------

### This issue is for a: (mark with an `x`)
```
- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```

### Minimal steps to reproduce
> After the latest fixing of issue #10, when I tried to deploy it from the portal, and got a new error:

![image](https://github.com/Azure-Samples/azure-devops-copilot-extension/assets/9260645/71594249-bc6b-4ad1-b393-89b4c0aa98da)

error text
```
{"code":"InvalidTemplateDeployment","details":[{"code":"SpecialFeatureOrQuotaIdRequired","message":"The subscription does not have QuotaId/Feature required by SKU 'S0' from kind 'OpenAI' or contains blocked QuotaId/Feature."}],"message":"The template deployment 'Microsoft.Template-20240326231843' is not valid according to the validation procedure. The tracking id is '5bcc38e8-2a11-43b7-87e4-40075ed15497'. See inner errors for details."}
```

The same issue is from Azure CLI, this happened when I chose a location West Europe

`az deployment sub create --location westeurope --template-file main.bicep`

error
```
{"code": "InvalidTemplateDeployment", "message": "The template deployment 'main' is not valid according to the validation procedure. The tracking id is 'ee1b972a-1e2f-476a-b24a-0436698c9445'. See inner errors for details."}

Inner Errors:
{"code": "SpecialFeatureOrQuotaIdRequired", "message": "The subscription does not have QuotaId/Feature required by SKU 'S0' from kind 'OpenAI' or contains blocked QuotaId/Feature."}
```

When I the other hand chose the default eastus or Sweden Central, it gives another error

`az deployment sub create --location eastus --template-file main.bicep`

error
```
{"code": "InvalidDeploymentLocation", "message": "Invalid deployment location 'swedencentral'. The deployment 'MAIN' already exists in location 'westeurope'."}
```

## Updates

After trying, I clicked on the yellow marked area.
![image](https://github.com/Azure-Samples/azure-devops-copilot-extension/assets/9260645/2fae85a7-37bb-457c-a39d-f7011ed4ea5c)

I got a new template that has Deployment Stack details marked in yellow and was able to give it a name and creating it

![image](https://github.com/Azure-Samples/azure-devops-copilot-extension/assets/9260645/968a3967-ac64-482e-b21f-ffb344535eb0)

but when it was deploying it, it come up with new error
![image](https://github.com/Azure-Samples/azure-devops-copilot-extension/assets/9260645/4392451b-5e0f-4303-bb71-e3a3ebd708fc)

![image](https://github.com/Azure-Samples/azure-devops-copilot-extension/assets/9260645/483b5bcc-4fa0-4a71-a2ba-4151094dabd0)

Error text details
```

{
"code": "DeploymentFailed",
"target": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/devops-copilot/providers/Microsoft.Resources/deployments/devops-copilot-openai-20240326104012",
"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": "InvalidTemplateDeployment",
"message": "The template deployment 'openaiservice-20240326104012' is not valid according to the validation procedure. The tracking id is 'a16b4f25-c78f-4a90-95d3-7d98c02148c7'. See inner errors for details.",
"details": [
{
"code": "SpecialFeatureOrQuotaIdRequired",
"message": "The subscription does not have QuotaId/Feature required by SKU 'S0' from kind 'OpenAI' or contains blocked QuotaId/Feature."
}
]
}
]
}

```

### Any log messages given by the failure

>

### Expected/desired behavior
>

### OS and Version?
> Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

### Versions
>

### Mention any other details that might be useful

> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the deployment with main.bicep using az deployment sub create and compare the reported errors for West Europe, East US, and Sweden Central. Inspect the template's Azure OpenAI resource and deployment settings, then determine whether the failure is caused by the template or subscription quota and document a verified deployment outcome or limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.