Skip to content

[AppService] Onboard local context for app service#12984

Merged
arrownj merged 9 commits intoAzure:devfrom
arrownj:local_context_for_appservice
May 15, 2020
Merged

[AppService] Onboard local context for app service#12984
arrownj merged 9 commits intoAzure:devfrom
arrownj:local_context_for_appservice

Conversation

@arrownj
Copy link
Contributor

@arrownj arrownj commented Apr 13, 2020

Description

This PR is try to onboard local context feature for app service.

The work is still in progress. Tests for local context part will be added later.

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


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

@arrownj arrownj requested review from Juliehzl and qwordy as code owners April 13, 2020 10:00
@arrownj arrownj self-assigned this Apr 13, 2020
Copy link
Member

Choose a reason for hiding this comment

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

what's SET/GET? could you pls put them into "LocalContextActions"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I defined it as CONSTANT currently, I will define a LocalContextAction enum later. As the change is in core, I want to leave this work to next sprint.

@yungezz yungezz requested a review from panchagnula April 13, 2020 10:08
@yonzhan
Copy link
Collaborator

yonzhan commented Apr 13, 2020

local context

@panchagnula
Copy link
Contributor

@btardif FYI
@yonzhan can you explain the purpose of this change - are we doing this for all Azure services or is AppService the first one to be onboarded here?

@yonzhan yonzhan modified the milestone: S169 - For Build Apr 13, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Apr 13, 2020

@yungezz to help answer your question.

@yungezz
Copy link
Member

yungezz commented Apr 14, 2020

hi @panchagnula I requested your review on the change :) yes Azure CLI is doing local context for all services, webapp is first one. I'm starting an email thread to share more detail with plan involving both of you and our PM.

Comment on lines 591 to 596
Copy link
Member

@qwordy qwordy Apr 14, 2020

Choose a reason for hiding this comment

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

Suggested change
if scope == 'webapp':
with self.argument_context(scope + ' config access-restriction show') as c:
c.argument('name', arg_type=webapp_name_arg_type)
else:
with self.argument_context(scope + ' config access-restriction show') as c:
c.argument('name', arg_type=functionapp_name_arg_type)
with self.argument_context(scope + ' config access-restriction show') as c:
c.argument('name', arg_type=(webapp_name_arg_type if scope =='webapp' else functionapp_name_arg_type))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, updated.

@arrownj arrownj changed the title [WIP][AppService] Onboard local context for app service [AppService] Onboard local context for app service Apr 16, 2020
@qwordy qwordy added this to the S169 - For Build milestone May 15, 2020
@arrownj arrownj merged commit 80457eb into Azure:dev May 15, 2020
derekbekoe added a commit to derekbekoe/azure-cli that referenced this pull request May 18, 2020
* 'dev' of https://github.com/Azure/azure-cli: (85 commits)
  {Monitor} az monitor autoscale profile show: bug fix (Azure#13515)
  [Monitor] az monitor diagnostic-settings create: support --export-to-specific-resource argument (Azure#13544)
  [aro]Add tests for generate_random_id function (Azure#13522)
  [ARO]Change CLIError to correct flag for --worker-vm-disk-size-gb (Azure#13439)
  [Packaging] Add Ubuntu Focal Package (Azure#13491)
  Update parse_zone_file.py (Azure#13377)
  {Release} Upgrade to Azure CLI 2.6.0 (Azure#13542)
  fix (Azure#13511)
  {Resource} Add example to tell how to pass array to --parameters (Azure#13510)
  [NetAppFiles] Anf 5207 Bugfix - add missing snapshot restore function (Azure#13481)
  {Network} az network nic create: Refine help message (Azure#13513)
  [Storage] az storage blob sync: Fix the incorrect error message when azcopy cannot find the installation location (Azure#9576)  (Azure#13104)
  Support --connect-string for az storage blob sync (Azure#13135)
  Modify the deprecate information for deployment operation (Azure#13390)
  [AppService] Onboard local context for app service (Azure#12984)
  {Monitor} az monitor metrics alert: refine severity explanation (Azure#13512)
  [IoT Hub] Support for 2020-03-01 API and Network Isolation commands (Azure#13467)
  [Compute] az vm list-skus: Update --zone behavior, return all type skus now (Azure#13470)
  Fix that cli doe not fail when user only specifies Windows password (Azure#13418)
  {ACR}: expose --expiration from token commands (Azure#13451)
  ...
@arrownj arrownj deleted the local_context_for_appservice branch July 29, 2020 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants