3
votes

I'm deploying an Azure Functions App using an ARM template and want to disable ftp/ftps access.

The setting is easy to find in the portal:

enter image description here

How do I find the property or app setting for this so I can configure it in the json ARM template?

I've already tried

  • Reviewing Microsoft documentation
  • Running PowerShell commands Get-AzureRmResource and Get-AzureRmWebApp to explore the returned site objects
  • Searching for the property in the Azure Resource Explorer
  • Guessing the property name and testing deployments--trial and error

I would expect the setting to exist along with similar settings in the siteConfig:

enter image description here

1
Note on the json screenshot: the "ftpAccess": "off" property in the site config was one of my failed trial and error attempts, but the other three properties in that box work as expected.jschmitter
The reason I couldn't originally find the property in the Azure Resource Explorer might be because I had never changed it from it's default. I had assumed the property would exist whether or not it was set to its default value.jschmitter

1 Answers

7
votes

The property you are looking for is ftpsState. Here are the possible values:

  • AllAllowed (that's the default)
  • FtpsOnly
  • Disabled