question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webapp:Retrieve webapp publishing profile as XML

See original GitHub issue

Describe the bug

Cannot retrieve webapp publishing profile as XML.

To Reproduce

Running the following

az webapp deployment list-publishing-profiles `
  --name <webapp-name> `
  --resource-group <webapp-resource-group>

generates a JSON file, not XML.

Expected behavior

To be able to generate XML file, similar to what’s generated in the portal when the Get publish profile button it used.

Environment summary

Cloud shell

{
  "azure-cli": "2.5.1",
  "azure-cli-command-modules-nspkg": "2.0.3",
  "azure-cli-core": "2.5.1",
  "azure-cli-nspkg": "3.0.4",
  "azure-cli-telemetry": "1.0.4",
  "extensions": {}
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:33 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
jiaslicommented, Jul 23, 2020

Is there a way to make the output tsv the default output type for just this command instead of asking the customers to add that at the end of the command.

Fortunately, yes! But it is a little bit hacky. I have drafted a PR in my own repo https://github.com/jiasli/azure-cli/pull/8 and you may follow the same pattern to submit an official PR and fix related test cases.

Perhaps we can avoid introducing breaking change by specifying --xml. 😉

2reactions
sitereactorcommented, Jun 23, 2020

Additionally, the official Azure App Service github actions expects the publishing profile for deploying and if you are creating the app service webapp as part of the Github Workflow its close to impossible to automate the deployment, because the az cli is not able to produce the expected xml file.

https://github.com/marketplace/actions/azure-webapp#dependencies-on-other-github-actions

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web Apps - List Publishing Profile Xml With Secrets Slot
Description for Gets the publishing profile for an app (or deployment slot, if specified). In this article. URI Parameters; Request Body; Responses; Security ......
Read more >
Programmatically download Azure Publishing Profile for a ...
Learn how to use the Azure Resource Manager REST API to download a Publishing Profile (xml) including Deployment Credentials for your Azure ...
Read more >
asp.net webapi publish - xml files not copy - Stack Overflow
But when i use publish profile (to Folder), xml files don't copy to output folder. Only one xml file from main WebApi project...
Read more >
Azure PublishSettings is not publish profile
Using VS Code for a Core web application and all I can find now is that now the .pubxml file is required which...
Read more >
Publishing XML and Other Data With the WAS Liberty Profile
Deploying an Application – Standard. The trick in this solution, is to pretend to deploy an uncompressed Web Application such as a WAR...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found