Azure / Azure/azure-cli

az functionapp create assumes referenced plan is non-Dynamics

Open
#8,614 4 comments 1 reaction 0 assignees View on GitHub
act-observability-squad azf_feature_request azf_reviewed feature-request Functions Functions-cli Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

If passing in a plan name to the `az functionapp create` command via the `-p` flag, and the plan happens to be Dynamic (Y), it will still fail because the code path attempts to switch on always on. There should be one more check in this line to make sure the plan isn't Dynamic or Elastic Premium, as dynamic is a valid plan to reference and shouldn't have always on enabled:

https://github.com/Azure/azure-cli/blob/dev/src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/custom.py#L1992-L1994

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.