Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
00c59c2
[Role] az ad sp create-for-rbac: Deprecate creating Contributor role …
jiasli Dec 22, 2020
8d3bbbb
[SQL] az sql dw update: fix update to not accept backup-storage-redun…
xaliciayang Dec 22, 2020
4ef9e0e
[BACKUP] az backup job list: Solved -o table bug and added backup_man…
akshayneema Dec 22, 2020
aea4f5e
[AppService] Unhide Python 3.9 in functionapp create (#16296)
Hazhzeng Dec 23, 2020
791150e
{Storage} Fix issue #9948: 'az storage container create' required '--…
Juliehzl Dec 23, 2020
8001d4b
[DataBoxEdge] new command module: support for data-box-edge devices a…
evelyn-ys Dec 23, 2020
94dcc6a
[Synapse] Add new cmdlets for synapse sql aad admin and sql audit pol…
aim-for-better Dec 23, 2020
bedfc6f
{Telemetry} Reomve trace stack info in Telemetry (#16332)
houk-ms Dec 23, 2020
7361b99
Extract error code and error message from HttpOperationError (#16273)
houk-ms Dec 23, 2020
903ecf1
Fix spelling (mySubscrpitionId) (#16252)
scovetta Dec 23, 2020
7882147
[AppService] Fixes #14583: az webapp up should generate default name …
calvinsID Dec 23, 2020
37c8d72
[ARO] Ensure worker_profile is not None before getting the subnets fr…
bennerv Dec 23, 2020
3776643
[ACR] bump api version. support zone redundancy (#15975)
adewaleo Dec 23, 2020
df80a09
[Synapse] Add integration runtime related cmdlets (#15498)
wonner Dec 24, 2020
885e78d
[Resource] az provider register: Add --accept-terms for registering R…
fengzhou-msft Dec 24, 2020
e5eefd2
[Profile] Fix "missing secret or certificate in order to authenticate…
jiasli Dec 24, 2020
02bbf1f
[ACR] az acr connected-acr create/update/delete/list/show: new featur…
rosanch Dec 24, 2020
7270756
{Network} Migrate network SDK that is used by some other modules to t…
jsntcy Dec 24, 2020
25912fd
[ARM] `az deployment`: Fix parse errors with multiline strings (#15502)
wiktorn Dec 25, 2020
288e18d
{Storage} Fix live test (#15948)
Juliehzl Dec 25, 2020
cf9a4dc
[AppService] Bugfix: Better error handling when trying to create dupl…
calvinsID Dec 25, 2020
e836dd2
{Storage} Fix issue #13478 to add more information for requires_sync …
Juliehzl Dec 25, 2020
357c9c9
{Release} Upgrade to Azure CLI 2.17.0 (#16362)
Dec 25, 2020
57ce1e6
fix branch (#16364)
fengzhou-msft Dec 25, 2020
b9f69b6
Migrate to Track 2 mgmt SDK (#16376)
avanigupta Dec 29, 2020
dff16b2
[Storage] Fix #16072: Upload file with big size (#16372)
Juliehzl Dec 29, 2020
ee380ec
add rdbms code owner (#16383)
evelyn-ys Dec 29, 2020
6227e34
Fix a typo (#16370)
gossion Dec 29, 2020
2557860
{Core} Use knack 0.8.0rc2 (#16301)
jiasli Dec 30, 2020
87cbdb0
hotfix for bad name (#16381)
msyyc Dec 30, 2020
269954f
docs: fix simple typo, satsify -> satisfy (#16389)
timgates42 Dec 30, 2020
ab2e074
{Doc} Track 2 Migration Guidance (#16330)
qwordy Dec 31, 2020
1d4a90e
{Release} HotFix: Release 2.17.1 (#16393)
msyyc Dec 31, 2020
dc77512
disable homebrew package test temporarily (#16407)
fengzhou-msft Dec 31, 2020
809389f
[Compute] Fix issue of none storage_profile (#16260)
qwordy Jan 4, 2021
36b337b
Merge remote-tracking branch 'upstream/release' into dev
evelyn-ys Jan 4, 2021
c71c2f9
[AppService] Fix #13907: az webapp config ssl import: Change command …
singlessis Jan 5, 2021
3f760cb
{RDBMS} : Stabilize tests for live-test runs in pipeline. (#16415)
arde0708 Jan 5, 2021
761de62
{Test} Live test pipeline 0.10.0 (#16408)
qwordy Jan 5, 2021
fade4bf
[Role] Fix #11594: az role assignment create: Only show supported val…
jiasli Jan 5, 2021
bd13df4
{Misc.} Bump humanfriendly to 9.1 (#16363)
jiasli Jan 5, 2021
4d11117
Remove the preview tag for server key and ad admin (#16412)
shinilm Jan 5, 2021
1e8f1bb
{AKS} Update region mapping list for Container Insights to include la…
bragi92 Jan 6, 2021
4ac1441
{ARM} Bump azure-mgmt-resource SDK: 10.3.0 to 12.0.0, v2020-06-01 t…
detienne20 Jan 6, 2021
9b20d55
[AppService] Fixes #16125: az webapp ssh if using a windows client, o…
calvinsID Jan 7, 2021
2d39b43
[AppService]: fix for #13291- az webapp deployment slot swap should s…
Kotasudhakarreddy Jan 7, 2021
aa3ac71
{Network} Support list for storage private endpoint connection (#16438)
Juliehzl Jan 7, 2021
4191edb
{Compute} Fix tests (#16425)
qwordy Jan 7, 2021
25cac8b
{Compute} Update _help.py - add link to article for finding an image …
cynthn Jan 8, 2021
72c2203
[Compute] Better error handling of external tokens (#16406)
qwordy Jan 8, 2021
4e1e753
{Core} Add polling start time and end time in telemetry (#16458)
Juliehzl Jan 11, 2021
9601031
[Storage] Fix issue #12291: az storage blob generate-sas does not pro…
Juliehzl Jan 11, 2021
c66daef
[ARM] Az Deployments : Add support for --query-string (#16447)
detienne20 Jan 11, 2021
22d53e3
add pamamiko to legal notice file (#16461)
fengzhou-msft Jan 11, 2021
3269d06
[Compute] Fix a vmss reimage issue (#16483)
qwordy Jan 11, 2021
a854825
{Storage} `az storage container immutability-policy extend`: Fix requ…
Juliehzl Jan 11, 2021
e032bdf
[Compute] vm/vmss extension set: New parameter --enable-auto-upgrade …
qwordy Jan 12, 2021
d7e5dea
{Doc} Track 2 Migration Guidance (#16484)
qwordy Jan 12, 2021
d095076
{Misc.} Update CODEOWNERS (#16382)
jiasli Jan 12, 2021
87f979e
{container} Bugfix #15856: az container exec - remove eol check to av…
bitcloud Jan 12, 2021
8db65c7
[Backup]Added default backup retention as 30 days (#16394)
Jan 12, 2021
701f1cd
set default backup retention value to 30 days (#16500)
akshayneema Jan 13, 2021
ca09633
[ARM] ts: error handling improvement - use of --template-file without…
detienne20 Jan 13, 2021
785d8f4
{Storage} Enable logging for track2 data plane operations (#16439)
Juliehzl Jan 13, 2021
1058618
[AKS] az aks check-acr: Add new check-acr command (#16490)
samkreter Jan 13, 2021
ea298e9
[IoT] Add --tags to IoT Hub create and update (#16336)
c-ryan-k Jan 14, 2021
cddb696
remove --export-all-tables for command az monitor log-analytics works…
kairu-ms Jan 14, 2021
0bcfb50
Patch version in homebrew formula (#16518)
fengzhou-msft Jan 14, 2021
27f5250
{RDBMS} Fixed bugs and updated local context test (#16437)
DaeunYim Jan 14, 2021
2cc0913
[ACR] add --allow-trusted-services support (#16530)
adewaleo Jan 14, 2021
fdea210
bump cffi (#16531)
fengzhou-msft Jan 14, 2021
4720ab9
fix: revert to use old region mapping (#16435)
bragi92 Jan 14, 2021
f5a88f1
[acr] add step in "check-health" command to ensure the identity used …
yugangw-msft Jan 14, 2021
873dfeb
{ACR} Quick Fix (#16441)
rosanch Jan 14, 2021
afdfbab
[Storage] GA PITR and blob service properties in SRP (#16540)
Juliehzl Jan 15, 2021
8930324
[DMS] Merging pg mysql from extension into core (#15746)
temandr Jan 15, 2021
82d9063
[AppService] BREAKING CHANGE: Fix regression where you can't use a ru…
calvinsID Jan 15, 2021
39a4516
{Storage} Remove extension suppression for storage-or-preview becaus…
Juliehzl Jan 15, 2021
da4239a
{Release} Upgrade to Azure CLI 2.18.0 (#16543)
Jan 15, 2021
f53441a
[SQL] Add managed hsm regex match to SQL (#15109)
Yueren-Wang Jan 15, 2021
8fb0be5
[AppConfig] BREAKING CHANGE: az appconfig feature filter add: Support…
avanigupta Jan 18, 2021
edf9ed4
[AppService] az appservice ase/plan ASEv3 support (#16516)
madsd Jan 18, 2021
77ad664
fix broken link (#16569)
yungezz Jan 18, 2021
36bcdae
os-preference and ase private dns (#16575)
madsd Jan 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[AppService] az appservice ase/plan ASEv3 support (Azure#16516)
* ASE v3 base changes

* Code optimization

* Additional check for empty subnet

* Help, test and param changes

* Remove debug info and fix style

* Align with new Error guidelines

* Restructure to isolate private endpoint logic

* Update src/azure-cli/azure/cli/command_modules/appservice/_help.py

Co-authored-by: Feiyue Yu <[email protected]>

* Add service delegation

Co-authored-by: Feiyue Yu <[email protected]>
  • Loading branch information
madsd and qwordy authored Jan 18, 2021
commit edf9ed4076f972574e163734fb2a6d51105087e0
31 changes: 27 additions & 4 deletions src/azure-cli/azure/cli/command_modules/appservice/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -2160,7 +2160,7 @@
type: command
short-summary: Create app service environment.
examples:
- name: Create Resource Group, vNet and app service environment with default values.
- name: Create Resource Group, vNet and app service environment v2 with default values.
text: |
az group create -g MyResourceGroup --location westeurope

Expand All @@ -2169,27 +2169,50 @@

az appservice ase create -n MyAseName -g MyResourceGroup --vnet-name MyVirtualNetwork \\
--subnet MyAseSubnet
- name: Create External app service environments with large front-ends and scale factor of 10 in existing resource group and vNet.
- name: Create External app service environments v2 with large front-ends and scale factor of 10 in existing resource group and vNet.
text: |
az appservice ase create -n MyAseName -g MyResourceGroup --vnet-name MyVirtualNetwork \\
--subnet MyAseSubnet --front-end-sku I3 --front-end-scale-factor 10 \\
--virtual-ip-type External
- name: Create vNet and app service environment, but do not create network security group and route table in existing resource group.
- name: Create vNet and app service environment v2, but do not create network security group and route table in existing resource group.
text: |
az network vnet create -g MyResourceGroup -n MyVirtualNetwork \\
--address-prefixes 10.0.0.0/16 --subnet-name MyAseSubnet --subnet-prefixes 10.0.0.0/24

az appservice ase create -n MyAseName -g MyResourceGroup --vnet-name MyVirtualNetwork \\
--subnet MyAseSubnet --ignore-network-security-group --ignore-route-table
- name: Create vNet and app service environment in a smaller than recommended subnet in existing resource group.
- name: Create vNet and app service environment v2 in a smaller than recommended subnet in existing resource group.
text: |
az network vnet create -g MyResourceGroup -n MyVirtualNetwork \\
--address-prefixes 10.0.0.0/16 --subnet-name MyAseSubnet --subnet-prefixes 10.0.0.0/26

az appservice ase create -n MyAseName -g MyResourceGroup --vnet-name MyVirtualNetwork \\
--subnet MyAseSubnet --ignore-subnet-size-validation
- name: Create Resource Group, vNet and app service environment v3 with default values.
text: |
az group create -g ASEv3ResourceGroup --location westeurope

az network vnet create -g ASEv3ResourceGroup -n MyASEv3VirtualNetwork \\
--address-prefixes 10.0.0.0/16 --subnet-name Inbound --subnet-prefixes 10.0.0.0/24

az network vnet subnet create -g ASEv3ResourceGroup --vnet-name MyASEv3VirtualNetwork \\
--name Outbound --address-prefixes 10.0.1.0/24

az appservice ase create -n MyASEv3Name -g ASEv3ResourceGroup \\
--vnet-name MyASEv3VirtualNetwork --subnet Outbound --kind asev3
"""

helps['appservice ase create-inbound-services'] = """
type: command
short-summary: Create the inbound services needed in preview for ASEv3 (private endpoint and DNS).
examples:
- name: Create private endpoint, Private DNS Zone, A records and ensure subnet network policy.
text: |
az appservice ase create-inbound-services -n MyASEv3Name -g ASEv3ResourceGroup \\
--vnet-name MyASEv3VirtualNetwork --subnet Inbound
"""


helps['appservice ase update'] = """
type: command
short-summary: Update app service environment.
Expand Down
13 changes: 11 additions & 2 deletions src/azure-cli/azure/cli/command_modules/appservice/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
WINDOWS_RUNTIMES = ['dotnet', 'node', 'java', 'powershell']
ACCESS_RESTRICTION_ACTION_TYPES = ['Allow', 'Deny']
ASE_LOADBALANCER_MODES = ['Internal', 'External']
ASE_KINDS = ['ASEv2', 'ASEv3']


# pylint: disable=too-many-statements, too-many-lines
Expand All @@ -45,10 +46,10 @@ def load_arguments(self, _):
# PARAMETER REGISTRATION
name_arg_type = CLIArgumentType(options_list=['--name', '-n'], metavar='NAME')
sku_arg_type = CLIArgumentType(
help='The pricing tiers, e.g., F1(Free), D1(Shared), B1(Basic Small), B2(Basic Medium), B3(Basic Large), S1(Standard Small), P1V2(Premium V2 Small), P1V3(Premium V3 Small), P2V3(Premium V3 Medium), P3V3(Premium V3 Large), PC2 (Premium Container Small), PC3 (Premium Container Medium), PC4 (Premium Container Large), I1 (Isolated Small), I2 (Isolated Medium), I3 (Isolated Large)',
help='The pricing tiers, e.g., F1(Free), D1(Shared), B1(Basic Small), B2(Basic Medium), B3(Basic Large), S1(Standard Small), P1V2(Premium V2 Small), P1V3(Premium V3 Small), P2V3(Premium V3 Medium), P3V3(Premium V3 Large), PC2 (Premium Container Small), PC3 (Premium Container Medium), PC4 (Premium Container Large), I1 (Isolated Small), I2 (Isolated Medium), I3 (Isolated Large), I1v2 (Isolated V2 Small), I2v2 (Isolated V2 Medium), I3v2 (Isolated V2 Large)',
arg_type=get_enum_type(
['F1', 'FREE', 'D1', 'SHARED', 'B1', 'B2', 'B3', 'S1', 'S2', 'S3', 'P1V2', 'P2V2', 'P3V2', 'P1V3', 'P2V3', 'P3V3', 'PC2', 'PC3',
'PC4', 'I1', 'I2', 'I3']))
'PC4', 'I1', 'I2', 'I3', 'I1v2', 'I2v2', 'I3v2']))
webapp_name_arg_type = CLIArgumentType(configured_default='web', options_list=['--name', '-n'], metavar='NAME',
completer=get_resource_name_completion_list('Microsoft.Web/sites'),
id_part='name',
Expand Down Expand Up @@ -869,6 +870,8 @@ def load_arguments(self, _):
help='Name of the app service environment',
local_context_attribute=LocalContextAttribute(name='ase_name', actions=[LocalContextAction.SET],
scopes=['appservice']))
c.argument('kind', options_list=['--kind', '-k'], arg_type=get_enum_type(ASE_KINDS),
default='ASEv2', help="Specify App Service Environment version")
c.argument('subnet', help='Name or ID of existing subnet. To create vnet and/or subnet \
use `az network vnet [subnet] create`')
c.argument('vnet_name', help='Name of the vNet. Mandatory if only subnet name is specified.')
Expand Down Expand Up @@ -902,6 +905,12 @@ def load_arguments(self, _):
with self.argument_context('appservice ase list-plans') as c:
c.argument('name', options_list=['--name', '-n'], help='Name of the app service environment',
local_context_attribute=LocalContextAttribute(name='ase_name', actions=[LocalContextAction.GET]))
with self.argument_context('appservice ase create-inbound-services') as c:
c.argument('name', options_list=['--name', '-n'], help='Name of the app service environment',
local_context_attribute=LocalContextAttribute(name='ase_name', actions=[LocalContextAction.GET]))
c.argument('subnet', help='Name or ID of existing subnet for inbound traffic to ASEv3. \
To create vnet and/or subnet use `az network vnet [subnet] create`')
c.argument('vnet_name', help='Name of the vNet. Mandatory if only subnet name is specified.')

# App Service Domain Commands
with self.argument_context('appservice domain create') as c:
Expand Down
Loading