azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

MS Lear exercise giving error

Open sesmailjee opened this issue 7 years ago • 2 comments

This is the URL of the MS Learn module giving the error: https://docs.microsoft.com/en-us/learn/modules/secure-app-with-oidc-and-azure-ad/5-exercise-deploy-app-with-oidc-auth Thanks, Seif

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az webapp up

Errors:

'NoneType' object has no attribute 'upper'
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 603, in execute
    raise ex
cli/core/commands/__init__.py, ln 661, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 652, in _run_job
    cmd_copy.exception_handler(ex)
...
cli/command_modules/appservice/custom.py, ln 2993, in webapp_up
    create_app_service_plan(cmd, rg_name, plan, _is_linux, False, sku, 1 if _is_linux else None, location)
cli/command_modules/appservice/custom.py, ln 1390, in create_app_service_plan
    sku = _normalize_sku(sku)
cli/command_modules/appservice/utils.py, ln 20, in _normalize_sku
    sku = sku.upper()
AttributeError: 'NoneType' object has no attribute 'upper'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az webapp up --resource-group {} --sku {} --name {}

Expected Behavior

Environment Summary

Linux-4.15.0-1061-azure-x86_64-with-debian-stretch-sid
Python 3.6.5
Shell: bash

azure-cli 2.0.76

Additional Context

sesmailjee avatar Nov 03 '19 00:11 sesmailjee

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI @antcp

ghost avatar Nov 03 '19 09:11 ghost

Please use 2.0.77

panchagnula avatar Dec 27 '19 00:12 panchagnula