question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az functionapp create ERROR: usage error: --plan NAME_OR_ID | --consumption-plan-location LOCATION

See original GitHub issue

Related 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:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
BlaneGcommented, Jun 28, 2022

@RakeshMohanMSFT here is the output of az config param-persist show:

Command group 'config param-persist' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
{}
0reactions
BlaneGcommented, Jul 5, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found