Yousef Imran
Yousef Imran

Reputation: 1167

Where are Azure Web App Configuration Metadata Properties Documented

Background

I've been working on updates to Azure Web App settings (of various categories) such as the runtime version, the stack, etc.

I've been doing this work in Bicep.

These settings seem to be generally distributed across different resource types/levels such as:

Issue

I am struggling to find a list of the properties available in the metadata for the web application resource. See the "properties" object in the sample Bicep below:

resource symbolicname 'Microsoft.Web/sites/config@2022-09-01' = {
  name: 'metadata'
  kind: 'string'
  parent: resourceSymbolicName
  properties: {}
}

If you go to the documentation site: https://learn.microsoft.com/en-us/azure/templates/microsoft.web/sites/config-metadata?pivots=deployment-language-bicep

There are no indications what those properties might be. I researched for possible JSON schema for the type among other things, and no luck.

I know one metadata property I needed and used was the CURRENT_STACK.

Another usage example for this metadata is as the following:

resource appServiceApp 'Microsoft.Web/sites@2022-09-01' = {
  name: 'appServiceApp'
  location: 'region'
  properties: {
    httpsOnly: true
    serverFarmId: resourceId('Microsoft.Web/serverfarms', 'appServiceName')
    siteConfig: {
      minTlsVersion: '1.2'
      netFrameworkVersion: 'v8.0'
      metadata: [
        {
          name: 'CURRENT_STACK'
          value: 'dotnet'
        }
      ]
    }
  }
}

Where this metadata properties are documented?

Upvotes: 0

Views: 399

Answers (2)

Rohit Tatiya
Rohit Tatiya

Reputation: 471

I think what you want is REST API responsible for each operation. Please note that CRUD operations has different REST APIs. In the given code snippet for metadata which is for site config and you can very well refer here:

Create or update properties

web app metadata

Upvotes: 0

Architect Jamie
Architect Jamie

Reputation: 2589

You should be able to get quite a comprehensive list here:

Microsoft Learn - App Service Settings

Upvotes: 0

Related Questions