Skip to content

Conversation

@calvinsID
Copy link
Contributor

@calvinsID calvinsID commented Jan 20, 2021

Description
Fix null reference errors in az webapp up and az webapp create
Closes #15752, #16565, #16061, #16475

  • If appservice and appservice plan are in different resource groups, az webapp up will try and find appservice plan in the wrong resource group
  • Nonetype error when creating windows container app using az webapp create if deployment_container_image_name is not supplied

Testing Guide

  • Create a webapp, then mov ewebapp to another resource group, then run az webapp up
  • Create a windows container appservice plan, then create a webapp with this appservice plan using az webapp create

These two scenarios shouldn't give nonetype error


This checklist is used to make sure that common guidelines for a pull request are followed.

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 20, 2021

AppService


elif plan_info.is_xenon: # windows container webapp
site_config.windows_fx_version = _format_fx_version(deployment_container_image_name)
if deployment_container_image_name:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it a valid condition that deployment_container_image_name is None?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is an optional parameter on the command.

@qwordy
Copy link
Member

qwordy commented Jan 21, 2021

Wait for Sisira's review.

Copy link
Contributor

@panchagnula panchagnula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants