How to Enforce FTP Disablement on Newly Created App Service/Function Apps in Azure?

Jizeth Esperanzate 56 Reputation points
2022-01-20T10:15:50.19+00:00

Is there a way to enforce that newly created App Services and Function Apps will have the FTP disabled in Azure? I am aware that I can turn off the FTP manually by changing the configuration in the Azure Portal but is there a way to do it automatically/programmatically?

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
273 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,019 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,970 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Stanislav Zhelyazkov 28,596 Reputation points MVP Volunteer Moderator
    2022-01-20T10:30:42.473+00:00

    Hi,
    You can create your own Azure Policy definition that forbids app service to be created without FTP to be disabled. Azure Policy enforces no matter what you use - Portal, CLI, PS, Tempaltes, SDKs, etc. More about Azure Policy and creating custom policy definition.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

  2. SwathiDhanwada-MSFT 18,996 Reputation points Moderator
    2022-01-24T15:32:20.673+00:00

    @Jizeth Esperanzate As stan mentioned , you can create custom policy to disable FTP on your App services or function apps. Sample example is available here. Information related to sample has been taken from this post.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.