exception when setting a new container version for a functionapp
See original GitHub issueDescribe the bug
When trying to push a new version of an image to an azure function, I encountered the following exception.
Command Name
az functionapp config container set
Errors:
😮
'NoneType' object has no attribute 'reserved'Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 326, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 384, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 377, in _run_job
six.reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 354, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 145, in __call__
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 451, in default_command_handler
return op(**command_args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 894, in update_container_settings_functionapp
multicontainer_config_file=None, slot=slot)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 869, in update_container_settings
_add_fx_version(cmd, resource_group_name, name, docker_custom_image_name, slot)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 626, in _add_fx_version
linux_fx = fx_version if web_app.reserved else None
AttributeError: 'NoneType' object has no attribute 'reserved'
To Reproduce:
Steps to reproduce the behavior. Note: Command arguments have been redacted.
Fill in additional info here
Run: az functionapp config container set --docker-custom-image-name {} --name {} --resource-group {}
Expected Behavior
A clear and concise description of what you expected to happen.
Environment Summary
Linux-4.4.0-17763-Microsoft-x86_64-with-debian-buster-sid
Python 3.6.5
Shell: bash
azure-cli 2.0.62
Extensions:
interactive 0.4.1
Python location '/opt/az/bin/python3'
Extensions directory '/home/<username>/.azure/cliextensions'
Python (Linux) 3.6.5 (default, Apr 4 2019, 22:51:56)
[GCC 7.3.0]
Additional Context
Add any other context about the problem here.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Issues you may meet when upgrading Azure function app to V4
This blog will talk about some common issues you may meet when you try to upgrade your Azure function from older runtime version...
Read more >Azure function app with powershell cannot start container ...
ps1: line 19 Exception: Cannot bind argument to parameter 'InputObject' because it is null. Stack: at System.Management.Automation.
Read more >Build an v4 Azure Function that runs as an isolated process ...
Go to the Azure Portal and create a new Function App (consumption plan) using following settings: Publish: Code; Runtime stack: .NET; Version: 6;...
Read more >Error when publishing function app - Visual Studio Feedback
In the new version of Visual Studio 2022 after publishing function app to Azure we have ... COMException: GetLCIDAsString must be called on...
Read more >Azure Functions via Linux Containers - A Tutorial | Post - AWH
Uses the less expensive Linux Azure Function app service plans. ... Prerequisite: Have the latest version of Docker Desktop installed and ...
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
I got the same problem … Any updates?
This is working now. Please upgrade to latest version of az cli 2.40.0 and retry.