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.

Creating a function App With Powershell Version 7.0 runtime fails

See original GitHub issue

This 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
apawastcommented, Sep 14, 2020

@gzuber could you please take a look at this?

0reactions
gzubercommented, Jan 26, 2021

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

Read more comments on GitHub >

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

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