Azure / bicep-types-az

Bicep type definitions for ARM resources
MIT License
81 stars 26 forks source link

Cannot write keyVaules into Microsoft.AppConfiguration/configurationStores with public network access disabled #1729

Open miqm opened 1 year ago

miqm commented 1 year ago

Bicep version 0.18.4

Describe the bug When using Microsoft.AppConfiguration/configurationStores/keyVaules, the public network needs to be enabled for ARM deployment to pass. I'd expect that ARM, as a trusted service has ability to create entries without necessity for using public endpoint.

To Reproduce create app configuration with public network disabled and try to put a keyVaule inside:

resource appConfiguration 'Microsoft.AppConfiguration/configurationStores@2022-05-01' = {
  name: name
  location: location
  sku: {
    name: 'standard'
  }
  properties: {
    publicNetworkAccess: 'Disabled'
    enablePurgeProtection: false
    softDeleteRetentionInDays: 7
  }

  resource value 'keyValues' = {
    name: 'value'
    properties: {
      value: 'testValue'
      tags: {}
      contentType: ''
    }
  }
}

Additional context Add any other context about the problem here.

martin-kirilov commented 9 months ago

@miqm did you resolve this?

miqm commented 9 months ago

I needed to open app cfg to public Internet :(

DanoThom commented 9 months ago

Experiencing the same thing!