Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM template function list is not supported. #982

Closed
dgard1981 opened this issue Nov 23, 2020 · 3 comments · Fixed by #1065
Closed

ARM template function list is not supported. #982

dgard1981 opened this issue Nov 23, 2020 · 3 comments · Fixed by #1065
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dgard1981
Copy link

Bicep version
Bicep CLI version 0.2.14 (0a0f974)

Describe the bug
When using the ARM template function list() an error occurs.

Error BCP082: The name "list" does not exist in the current context. Did you mean "last"?

To Reproduce

param functionApp object
param serverFarmId string

output config object = list(format('{0}/config/appsettings', functionAppResource.id), functionAppResource.apiVersion)

resource functionAppResource 'Microsoft.Web/sites@2020-06-01' = {
  name: functionApp.name
  location: resourceGroup().location
  kind: 'functionApp'
  properties: {
    httpsOnly: true
    serverFarmId: serverFarmId
  }
}

Additional context

The list() function works in an ARM template.

"appSettings": {
  "type": "object",
  "value": "[list(format('{0}/config/appsettings', resourceId('Microsoft.Web/sites', parameters('functionApp').name)), '2020-06-01')]"
}
@majastrz
Copy link
Member

It looks like this issue refers to the following API: https://docs.microsoft.com/en-us/rest/api/appservice/webapps/listapplicationsettings

@majastrz majastrz added bug Something isn't working and removed Needs: Triage 🔍 labels Nov 23, 2020
@alex-frankel
Copy link
Collaborator

Good find - I didn't know that there was just a plain list() function with no suffix..

@majastrz
Copy link
Member

Same here.

@alex-frankel alex-frankel added this to the v0.3 milestone Dec 3, 2020
@ghost ghost locked as resolved and limited conversation to collaborators May 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants