简体   繁体   中英

How to change deployment password of AzureWeb App with Powershell?

I want to change the deployment password of an existing Azure Web (or Azure Function to be exact, but I think it 's the same) using Powershell.

So in the Azure Portal,

MyWebApp > resource Explorer Tab > Go > Powershell

I have found that command :

Invoke-AzureRmResourceAction 
     -ResourceGroupName MyGroup 
     -ResourceType Microsoft.Web/sites
     -ResourceName MyWebApp 
     -Action newpassword 
     -ApiVersion 2015-08-01 
     -Force

But where is the password ? How do I provide it ?

First, make sure you understand the difference between User (aka deployment) credentials and Site (aka publishing) credentials. See here for details.

The PowerShell command you have in your question refers to Site credentials, and is the equivalent of clicking 'Reset Publishing Profile' from the portal. The Site credential is always a randomly generating string, and is not something that you set to your own value. That is why that command does not take any parameters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM