Search code examples
azurevisual-studio-codeazure-logic-appsazure-logic-app-standard

Edit the host.json in my Azure Standard Logic App


I'm working with a Standard logic app in Azure and need to adjust the Runtime.Backend.VariableOperation.MaximumVariableSize setting in the host.json file. I attempted to edit the file using Visual Studio Code (via Azure Tools extension), but the file appears to be read-only and won't allow changes.

Has anyone encountered this issue? Is there a specific method or workaround to modify the host.json settings for a Standard logic app? Any guidance on how to enable write access or how to properly deploy a custom host.json configuration would be greatly appreciated.


Solution

  • Azure Logic App Standard doesn't allow direct modification of certain files via the Azure Tools extension in Visual Studio code.

    I have tried to edit the host.json file of the logic apps workflow (which was created in Portal) in Visual studio code and faced the same issue.

    enter image description here

    To resolve this, you have to save the file you want to edit.

    Open Visual Studio code, click on File=>Save or Ctrl+S and save the file.

    enter image description here

    Now, you will be able to edit the host.json file.

    enter image description here

    You can edit host.json in Portal directly.

    Follow below Steps:

    1. Navigate to Development Tools=>Advanced Tools=>Go in Logic Apps.
    2. It will open the Kudu site of logic app.
    3. Click on Debug Console=> select CMD.

    enter image description here

    enter image description here

    1. Go to Site/wwwroot =>host.json.
    2. Click on edit icon near host.json and you will be able to edit the file.

    enter image description here

    enter image description here