Skip to content

listKeys not supported in variable #1503

Open
@gregjhogan

Description

@gregjhogan

If I use listKeys() in a variable, I get the error:

The template function 'listKeys' is not expected at this location

for example:

{
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "variables": {
        "storageAccountKey": "[listKeys(resourceId('Microsoft.Storage/storageAccounts/mystorageaccount)),'2015-06-15').key1]"
    }
}

Can support for listKeys inside a variable be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions