Azure / Azure/bicep-types-az

[Microsoft.CognitiveServices/accounts/deployments]: "dynamicThrottlingEnabled" is not read-only

Open
#2,121 1 comment 0 reactions 0 assignees View on GitHub
Cognitive - Mgmt Service Attention
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

### Resource Type

Microsoft.CognitiveServices/accounts/deployments

### Api Version

2023-10-01-preview

### Issue Type

Property(s) inaccurately marked read-only/write-only

### Other Notes

The `dynamicThrottlingEnabled` property on `Microsoft.CognitiveServices/accounts/deployments@2023-10-01-preview` is incorrectly being flagged as readonly. This property can be set to enable the dynamic quota feature on Azure OpenAI. See [here](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/dynamic-quota) for docs that show the parameter being set.

Thanks!

### Bicep Repro

```bicep
resource account 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
name: 'dopenai1234'
location: 'swedencentral'
kind: 'OpenAI'
properties: {
customSubDomainName: 'dopenai1234'
publicNetworkAccess: 'Enabled'
}
sku: {
name: 'S0'
}
}

resource deployment 'Microsoft.CognitiveServices/accounts/deployments@2023-10-01-preview' = {
parent: account
name: 'gpt4'
properties: {
model: {
format: 'OpenAI'
name: 'gpt-4-32k'
version: '0613'
}
raiPolicyName: null
dynamicThrottlingEnabled: true // this line generates the error
}
sku: {
name: 'Standard'
capacity: 20
}
}
```

### Confirm

- [X] I have read the troubleshooting guide and looked for duplicates.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the type definition for Microsoft.CognitiveServices/accounts/deployments@2023-10-01-preview and inspect how dynamicThrottlingEnabled is marked. Use the Bicep repro as the starting check; done means assigning dynamicThrottlingEnabled no longer produces a read-only error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript
Domain
cloud, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.