Skip to content

Cant publish to Function App with app settings as Key Vault references #2161

@mlassbo

Description

@mlassbo

Does this occur consistently? Yes
Repro steps:

  1. Create a function app (Linux consumption plan in my case) with the AzureWebJobsStorage setting as a Key Vault reference
  2. Publish a function to the function app using the command line, e.g. func azure functionapp publish myfuncapp

Action: azureFunctions.deploy
Error type: SyntaxError
Error Message: Connection string contains unrecognized key: "@Microsoft.KeyVault(SecretUri"

Version: 0.22.1
OS: win32
OS Release: 10.0.17763
Product: Visual Studio Code
Product Version: 1.45.1
Language: en

Call Stack
Object.n.parseAndValidateKeys extension.bundle.js:164:194630
Function.StorageServiceSettings.createFromConnectionString extension.bundle.js:281:136192
Function.StorageServiceClient.getStorageSettings extension.bundle.js:281:88497
new BlobService extension.bundle.js:281:168385
Object.n.createBlobService extension.bundle.js:164:174251
extension.bundle.js:281:29965extension.bundle.js:281:29965
fulfilled extension.bundle.js:281:29201
processTicksAndRejections task_queues.js:85:5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions