RKS RKS - 7 months ago 45
PowerShell Question

Get PublishProfile for an Azure WebApp using Powershell

How can we get the PublishProfile for an Azure WebApp using Powershell?
I'm not looking for

cmdlet. That gives me the PublishSettings for the whole subscription.
I want the PublishSettings only for that particular Azure WebApp.

We can get this file when we click the following link on Azure Portal.
enter image description here

The content of the file is something like shown below.
enter image description here

Can someone please help me get this?



Actually, we have a new PowerShell command:

Get-AzureRMWebAppPublishingProfile -ResourceGroupName myRG -Name webAppName

That will give you the PublishProfile in a single command!