Creating a function App With Powershell Version 7.0 runtime fails
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az functionapp create
Errors:
'powershell'
Traceback (most recent call last):
Temp\pip-install-0u_uiwkq\knack\knack\cli.py, ln 206, in invoke
azure\cli\core\commands\__init__.py, ln 608, in execute
azure\cli\core\commands\__init__.py, ln 666, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 657, in _run_job
azure\cli\command_modules\appservice\commands.py, ln 55, in _polish_bad_errors
azure\cli\core\commands\__init__.py, ln 636, in _run_job
azure\cli\core\commands\__init__.py, ln 306, in __call__
azure-cli-core\azure\cli\core\__init__.py, ln 493, in default_command_handler
azure\cli\command_modules\appservice\custom.py, ln 2333, in create_function
KeyError: 'powershell'
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
Runtime is powershell, version is 7.0
- Put any pre-requisite steps here…
az functionapp create --resource-group {} --name {} --storage-account {} --runtime {} --runtime-version {} --consumption-plan-location {}
Expected Behavior
Environment Summary
Windows-10-10.0.18362-SP0
Python 3.6.6
Shell: powershell.exe
azure-cli 2.0.80 *
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to target Azure Functions runtime versions - Microsoft Learn
Azure Functions supports multiple versions of the runtime. Learn how to specify the runtime version of a function app hosted in Azure.
Read more >manually specify powershell version (e.g. 7) · Issue #371
The Functions runtime with PowerShell 7 is being rolled out to production now, I expect it to complete by June 5. I will...
Read more >Azure functions with powershell runtime fails to load modules
For latest supported version, go to 'https://www.powershellgallery.com/packages/Az'. # To use the Az module in your function app, ...
Read more >Running Powershell in Azure Functions -
1. Go to Portal.Azure.com and Sign in as a Global Admin · 2. Search for Function and Select Function App · 3. Select...
Read more >Using PnP PowerShell in Azure Functions
Create the function app · Create a new Function App · Choose runtime stack PowerShell Core and version 7.2 (7.0 is not longer...
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
@gzuber could you please take a look at this?
@yonzhan I believe this issue can be closed. It hasn’t been updated in a while and it looks like it was due to an out of date version of the cli.