-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Milestone
Description
Description
Outline the issue here:
Ran az webapp log tail -g RG -n APPNAME and got this exception.
The webapp was a container-based Linux App Service app.
'NoneType' object has no attribute 'server_farm_id'
Traceback (most recent call last):
File "/Users/debekoe/lib/azure-cli/lib/python2.7/site-packages/azclishell/app.py", line 537, in cli_execute
result = self.app.execute(args)
File "/Users/debekoe/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/application.py", line 203, in execute
result = expanded_arg.func(params)
File "/Users/debekoe/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 278, in __call__
return self.handler(*args, **kwargs)
File "/Users/debekoe/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 476, in _execute_command
reraise(*sys.exc_info())
File "/Users/debekoe/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 450, in _execute_command
result = op(client, **kwargs) if client else op(**kwargs)
File "/Users/debekoe/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/appservice/custom.py", line 902, in get_streaming_log
scm_url = _get_scm_url(resource_group_name, name, slot)
File "/Users/debekoe/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/appservice/custom.py", line 741, in _get_scm_url
webapp = show_webapp(resource_group_name, name, slot=slot)
File "/Users/debekoe/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/appservice/custom.py", line 86, in show_webapp
_rename_server_farm_props(webapp)
File "/Users/debekoe/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/appservice/custom.py", line 126, in _rename_server_farm_props
setattr(webapp, 'app_service_plan_id', webapp.server_farm_id)
AttributeError: 'NoneType' object has no attribute 'server_farm_id'
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: interactive script
CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here:
$ az --version
azure-cli (2.0.5)
acr (2.0.3)
acs (2.0.5)
appservice (0.1.5)
batch (2.0.3)
cdn (0.0.1)
cloud (2.0.2)
cognitiveservices (0.1.1)
command-modules-nspkg (2.0.0)
component (2.0.3)
configure (2.0.5)
core (2.0.5)
dla (0.0.5)
dls (0.0.5)
documentdb (0.1.5)
feedback (2.0.2)
find (0.2.2)
interactive (0.3.0)
iot (0.1.5)
keyvault (2.0.3)
lab (0.0.4)
monitor (0.0.3)
network (2.0.5)
nspkg (3.0.0)
profile (2.0.4)
redis (0.2.2)
resource (2.0.5)
role (2.0.3)
sf (1.0.0)
sql (2.0.2)
storage (2.0.5)
vm (2.0.5)
Python (Darwin) 2.7.10 (default, Feb 6 2017, 23:53:20)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
Python location '/Users/debekoe/lib/azure-cli/bin/python'
OS Version: What OS and version are you using?
Answer here: macOS
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: bash
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels