Skip to content

Web/sites/config Connection strings issue #6946

Answered by brwilkinson
MaciekSondej asked this question in Q&A
Discussion options

You must be logged in to vote

You can try below

resource webSite 'Microsoft.Web/sites@2021-03-01' existing = {
  name: 'acu1-brw-aoa-t5-be'
}

resource connectionstrings 'Microsoft.Web/sites/config@2021-03-01' = {
  name: 'connectionstrings'
  parent: webSite
  properties: {
    SQL01: {
      value: 'teststringconnetionvalue2'
      type: 'SQLServer'
    }
  }
}

The specification is here: https://docs.microsoft.com/en-us/azure/templates/microsoft.web/sites/config-connectionstrings?tabs=bicep

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@brwilkinson
Comment options

@Lampei
Comment options

@brwilkinson
Comment options

@brwilkinson
Comment options

Answer selected by brwilkinson
Comment options

You must be logged in to vote
1 reply
@ahelland
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants