Disable FTP in azure app service
using CLI
Issue:
· How to disable
FTP/SFTP in app service using CLI?
Solution:
Sometimes we want to disable FTP in
azure app services so that nobody can access site content through FTP.
There are various ways to disable it
and easiest way to achieve it through azure portal as explained in below screen
shot.
Sometime we want to achieve it programmatically and we can
do it through,
- REST API
- PowerShell
- Azure CLI
Here I have mentioned the CLI command which can help you to disable FTP.
Sample:
az webapp config set -g
resourcegroupname -n AppName --ftps-state Disabled
|
where resourcegroupname is your resource group name and AppName is your app service or web app name.
Great Content. It will useful for knowledge seekers. Keep sharing your knowledge through this kind of article.
ReplyDeleteAzure Training in Chennai
Microsoft Azure Training in Chennai