az functionapp create ERROR: usage error: --plan NAME_OR_ID | --consumption-plan-location LOCATION
See original GitHub issueRelated command
az functionapp create
Describe the bug ERROR: usage error: --plan NAME_OR_ID | --consumption-plan-location LOCATION
To Reproduce
I copy and pasted an example from the Azure Functions documentation:
az functionapp create --consumption-plan-location westeurope --runtime python --runtime-version 3.9 --functions-version 4 --name <APP_NAME> --os-type linux --storage-account <STORAGE_NAME>
Expected behavior The function app resources are created in Azure.
Environment summary Install method: MSI Shell Type: Bash
az --version
Please let us know how we are doing: https://aka.ms/azureclihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy
azure-cli 2.37.0
core 2.37.0
telemetry 1.0.6
Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\b_gra\.azure\cliextensions'
Python (Windows) 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 22:57:10) [MSC v.1929 32 bit (Intel)]
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Unable to create function app against existing consumption ...
It is not possible to create a function app against a specified consumption app service plan. The following error occurs: There was a...
Read more >Creating Azure function app against existing consumption ...
That command works correctly, and creates me an app service plan. However, when I try to use that plan (substituting --consumption-plan-location ...
Read more >az functionapp
Use 'appservice plan create' to get one. If using an App Service plan from a different resource group, the full resource id must...
Read more >Azure Functions with Consumption Plan on Linux - baeke.info
az functionapp create --resource-group funclinux --name funclinux --os-type Linux --runtime node --consumption-plan-location westeurope ...
Read more >HowTo: Create an Azure function app (Net Core 3.1) | Article
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location <REGION> --runtime dotnet-isolated ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@RakeshMohanMSFT here is the output of
az config param-persist show
:@StrawnSC
az config get defaults
returns[]
. I tried to create the resource again with az cli and it was created successfully. I had deleted some existing resource groups in the azure portal so perhaps this resulted in clearing some configuration defaults that I had set by accident.