azure-rest-api-specs icon indicating copy to clipboard operation
azure-rest-api-specs copied to clipboard

[FEATURE REQ] Add Microsoft.Web/sites/extensions and Microsoft.Web/sites/slots/extensions 'ZipDeploy' to the spec.

Open MitchBodmer opened this issue 4 months ago • 1 comments

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json

API Spec version

2024-04-01

Please describe the feature.

Right now it's not possible to create a ZipDeploy resource in a Bicep template because the Bicep types don't include the ZipDeploy extension, and that's because the API spec also doesn't include it.

resource functionApp 'Microsoft.Web/sites@2022-09-01' = {
  name: functionAppName
  location: location
  kind: 'functionapp'
  identity: functionAppIdentity
  properties: siteProperties

  resource stagingSlot 'slots' = {
    name: 'staging'
    location: location
    kind: 'functionapp'
    identity: functionAppIdentity
    properties: union(siteProperties, { siteConfig: { autoSwapSlotName: 'production' } })

    resource stagingAuthSettingsConfig 'config' = {
      name: 'authsettingsV2'
      properties: authSettingsConfigProperties
    }

    resource zipDeploy 'extensions' = {
      name: 'ZipDeploy' // This line fails.
      properties: {
        packageUri: packageUri
      }
    }
  }

  resource authSettingsConfig 'config' = {
    name: 'authsettingsV2'
    properties: authSettingsConfigProperties
  }
}

I'd like it to be added so that we can update the Bicep types and then use it in templates.

MitchBodmer avatar Oct 12 '24 00:10 MitchBodmer