Skip to content

Retrieving existing app center key #5413

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

You must be logged in to vote

Here are the docs for this:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-resource#implementations

You can see the following:

I would recommend to establish the existing resource reference first, then you can use that to call the list() function.

  • Two options below, depending on your preference in style.
  • Also output a few different alternative formats/property values for different scenario examples

e.g.

verbose and descriptive

param siteName string = 'ACU1-BRW-AOA-T5-fnDIS01'
param slotName string = 'dev'

resource webSite 'Microsoft.Web/sites@2021-02-01' existing = {
  name: siteName
}

resource webSlot 'Microsoft.Web/sites/slots@2021-02-01' existing

Replies: 1 comment 4 replies

Comment options

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

@brwilkinson
Comment options

@brwilkinson
Comment options

@brwilkinson
Comment options

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