azure-cli: `az functionapp create` doesn't support https-only true

Is your feature request related to a problem? Please describe. Yes, the problem is that I’m trying to use az functionapp create to create a new function instead of using ARM as ARM removes all appsettings on update.

The problem I have is that subscription policy for this client denies creating a function without https-only true but I can’t set this at function creation time using az

Describe the solution you’d like I’d like to be able to specify more settings on function creation, such as https-only true, or have the functionapp automatically enable https-only true as this is 2021 after all…

Describe alternatives you’ve considered Crying 😢

ARM/TF don’t work properly. Can’t use az and write PowerShell scripts either.

Additional context https://github.com/Azure/azure-cli/issues/11718

If issues like the above were fixed it’d be a lot easier to use ARM/TF for this.

Function apps should not be using appsettings for infrastructure values such as Storage Account and Function Version… These aren’t app settings but intrinsic to the function, much like the OS type of a resource or Size of a VM is.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 17 (1 by maintainers)

Most upvoted comments

Hi @ElvenSpellmaker We apologize for not getting back to you sooner. https-only is now a supported param for the az functionapp create command. As such, I will mark this as resolved. Thank you!

It is from App Service Plan. App Service Plan will be created by Az Cli, “az functionapp plan create”

@gzuber can you please take a look at this?