Skip to content

Issue since last week with managed api connections in vscode #6717

Closed
@sahinozd

Description

@sahinozd

VSCode Dump

In followup of issue Azure/logicapps#664 we currently face an issue with the log analytics managed api connection (and likely other managed api connections) in VS code.

Each time we save the workflows, the connections.json, local.settings.json and parameters.json gets edited in a way which is not desirable, because we have parameterized it ourselves.

Result is that the connections and parameters.json is deployed to Azure with data which is not present and a bearer token which is valid for 7 days (

Steps to Reproduce the Bug or Issue

  1. Please note how the connections.json looks before save:

Image

  1. Please note how the parameters.json looks before save:

Image

  1. Please note how the local.settings.json looks before save:

Image

  1. As can be seen, we have parameterized the api connection both for vscode (and during deployment) for setting up the api connection.

  2. Edit a workflow.json and save it

  3. You will see that the 3 files are aedjusted by VS code

  4. The connections.json managed api section is overridden as follows:

Image

  1. The parameters.json is also adjusted to contain the runtime url and an authentication section for a temp vscode bearer token which is valid for 7 days.

Image

  1. The local.settings.json contains the bottom 2 entries after save, which is the runtime url and the token itsel

Image

Result is, that this gets deployed and because the connection.json references incorrect appsettings (like WORKFLOWS_SUBSCRIPTION_ID, WORKFLOWS_LOCATIONS_NAME and the raw bearer token. And therefore the logic app workflows do not work.

What I would expect: A save should not trigger these changes to files that are being deployed.

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