Search code examples
azure-functionsazure-cli

How to update the FTP state in azure function


I wanted to update the FTP state in azure function app, the below setting with Az command.. But I am not getting complete information with this document

Any input will be helpful here

https://learn.microsoft.com/en-US/cli/azure/functionapp/config/appsettings?view=azure-cli-latest#az-functionapp-config-appsettings-set

enter image description here


Solution

  • I tried to reproduce the same in my environment and got below results

    I have one function app with FTP state as All allowed as below:

    enter image description here

    To update it to FTPS only state from Azure CLI, you can make use of below Az command:

    az webapp config set --name <functionapp-name> --resource-group <resource-group-name> --ftps-state FtpsOnly
    

    Response:

    enter image description here

    When I refreshed the page, FTP state is changed to FTPS only successfully like below:

    enter image description here

    If you want to change it to Disabled state, you can use below command:

    az webapp config set --name <functionapp-name> --resource-group <resource-group-name> --ftps-state Disabled
    

    Response:

    enter image description here

    When I refreshed the page, FTP state is changed to Disabled successfully like below:

    enter image description here