Delete user level FTP credentials in Azure app service

 

Delete user level FTP credentials in Azure app service

Issue:

  • How to delete user level FTP credentials?

Solution:

 

There are 2 types of deployment credentials in Azure app services,

  • User Level credentials
  • App Level credentials

User level credentials are for entire Azure account which can be used to deploy to any web app for the subscription,

while App Level credentials are web app specific and can't be used with any other web app. App Level credentials are generated automatically at app creation. Users can’t control this manually.

 

You can get more information in below URL,

https://azureappservices.blogspot.com/2020/02/everything-about-azure-app-service-ftp.html

https://azureappservices.blogspot.com/2019/02/web-app-multiple-ftp-users-i-noticed.html

 

Here we will focus on user level credentials only as app level credentials can be reset through the portal however when you create user level credentials you can either change the password or create a new user level credentials which overwrites the previous one but what about “deleting the user level credentials” after creating.

 

There is no direct option available in the Azure portal to delete user level credentials.

 

You can check in below screen shot.

 





 

·       If you create a new username then previous one will be invalid.

·       If you type new password, then previous password will not work.

·       There is no option to delete already existing user credentials.

 

The hack to delete user credentials is,

·       Open azure portal and click on cloud shell

·       Select bash environment.

·       Run following CLI command,

 

az webapp deployment user set --user-name ""  --password ""

 

Here you are setting username and password as blank which is kind deleting username password.

 

 


 

 


















That’s all, you are done here.

If you want to regenerate user credentials then you can again create it which has nothing to do with you previous user credentials..

 

Hope this helps.

1 comment: