Azure / bicep-types-az

Bicep type definitions for ARM resources
MIT License
86 stars 27 forks source link

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

Open danielphil opened 7 months ago

danielphil commented 7 months ago

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 for docs that show the parameter being set.

Thanks!

Bicep Repro

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

microsoft-github-policy-service[bot] commented 6 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @yangyuan. Please see https://aka.ms/biceptypesinfo for troubleshooting help.