unable to see username and userpw for logicapp

Harsha Jha 61 Reputation points
2025-04-11T14:04:39.4+00:00

I am trying to automate the process for downloading the ARM zip file of LogicApp. But it doesn't work at all using CLI script.
When i export the profile it keep saying redacted.

      profile=$(az webapp deployment list-publishing-profiles \            --name $LOGICAPP_NAME \

        --resource-group $RESOURCE_GROUP \

        --output json)

      username=$(echo "$profile" | jq -r '.[] | select(.publishMethod=="MSDeploy") | .userName')

      password=$(echo "$profile" | jq -r '.[] | select(.publishMethod=="MSDeploy") | .userPWD')

      creds=$(echo -n "$username:$password" | base64)

      curl -s -L -o $ZIP_PATH \

        -H "Authorization: Basic $creds" \

        https://$LOGICAPP_NAME.scm.azurewebsites.net/api/zip/site/wwwroot/
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,553 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 25,111 Reputation points Microsoft Employee Moderator
    2025-04-21T16:34:19.33+00:00

    @Harsha Jha I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: Customer is trying to download the logic app workflow using script and by using deployment publishing profile credentials. the value of username and password is showing as redacted.

    Solution: Instead of using the publishing profile credentials, customer has shifted to access token to authenticate and download the workflows as zip file.

    Adding to the above you leverage the PowerShell script mentioned in this blog post here to download the content of site/wwwroot folder using the kudu rest api.

    Note: The above script present in the blog post uses the service principal-based authentication rather than the publishing profile credentials or the access token.


    Hope this helps !

    Please accept as Yes if the answer is helpful so that it can help others in the community

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.