RKS RKS - 1 year ago 142
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?


Answer Source

Actually, we have a new PowerShell command:

Get-AzureRMWebAppPublishingProfile -ResourceGroupName myRG -Name webAppName

That will give you the PublishProfile in a single command!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download