Webapp:Retrieve webapp publishing profile as XML
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:33 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
. 😉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