Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
5485a44
appservice: surface commands under the profile of 2019-03-01-hybrid
yugangw-msft Sep 12, 2019
adbc45d
upgrade azure-mgmt-web to support multiapi
Juliehzl Oct 30, 2019
e5f83e5
upgrade azure-mgmt-web in requirements
Juliehzl Nov 1, 2019
d4c4188
update release note
Juliehzl Nov 1, 2019
3557fd3
Update history in azure cli 2.0.75
Juliehzl Nov 1, 2019
14e914e
delete spaces
Juliehzl Nov 1, 2019
4719e4c
fix typo
Juliehzl Nov 1, 2019
0444eb8
use new package and make client multiapi
Juliehzl Nov 12, 2019
abe06e2
Re-record test for app service
Juliehzl Nov 14, 2019
d60d3f8
pass test_acr_integration_function_app
Juliehzl Nov 19, 2019
033685f
pass test_acr_create_function_app
Juliehzl Nov 19, 2019
a0224f6
pass test_acr_integration
Juliehzl Nov 19, 2019
32175cc
pass test_webapp_hyperv_e2e
Juliehzl Nov 19, 2019
2da3837
replace api version because record_only() to pass test_webapp_continu…
Juliehzl Nov 19, 2019
afdbdec
pass test_webapp_create_linux_free
Juliehzl Nov 19, 2019
0bbcadd
replace api version because record only to pass test_webapp_triggered…
Juliehzl Nov 19, 2019
663d9c6
pass test_webapp_e2e
Juliehzl Nov 20, 2019
85b9f1d
replace api version to make test_linux_webapp_ssh pass because only s…
Juliehzl Nov 20, 2019
c8b9c3e
fix test_webapp_config
Juliehzl Nov 21, 2019
9401d61
change api version to 20181101
Juliehzl Dec 24, 2019
f57a099
change api version to 2019-08-01
Juliehzl Dec 31, 2019
ef6866d
live test
Juliehzl Dec 31, 2019
3d327c1
pass test_functionapp_reserved_instance for v2019-08-01
Juliehzl Jan 2, 2020
fc3d701
pass test_set_domain_name
Juliehzl Jan 5, 2020
7df1b4a
pass test_set_source_control_token
Juliehzl Jan 5, 2020
91be75f
pass appservice except config
Juliehzl Jan 6, 2020
c8fc69a
pass more test
Juliehzl Jan 7, 2020
f0fce60
pass test_metric_alert_v2_scenario
Juliehzl Jan 7, 2020
8f51b84
pass test_functionapp_access_restriction_set_complex
Juliehzl Jan 13, 2020
3083e61
pass test_functionapp_access_restriction_add_service_endpoint
Juliehzl Jan 13, 2020
0f4999f
pass more test
Juliehzl Jan 13, 2020
295f08a
pass mock
Juliehzl Jan 13, 2020
8a95704
pass other tests in live mode azdev test --lf --live
Juliehzl Jan 14, 2020
ee1f6cd
revert aks test
Juliehzl Jan 14, 2020
ca65820
pass test_keyvault_secret_sofy_delete
Juliehzl Jan 14, 2020
6fb4e0d
pass test_keyvault_storage_account
Juliehzl Jan 14, 2020
4f20fb0
pass keyvault_softdelet
Juliehzl Jan 14, 2020
d1e1537
pass test_create_for_rbac_with_existing_kv_cert
Juliehzl Jan 14, 2020
0370064
pass test_version
Juliehzl Jan 14, 2020
42da25f
revert test_node_type
Juliehzl Jan 14, 2020
b42a7d9
pass test_webapp_config and deployment user show
Juliehzl Jan 14, 2020
bcce3e3
add cmd_mock in unitest
Juliehzl Jan 14, 2020
2a6e847
Merge branch 'dev' into hybrid
Juliehzl Jan 14, 2020
091fa36
update requirements
Juliehzl Jan 14, 2020
f1b8dc7
fix style
Juliehzl Jan 14, 2020
5fafe25
Merge branch 'hybrid' of https://github.com/Juliehzl/azure-cli into h…
Juliehzl Jan 14, 2020
bac761b
fix linter
Juliehzl Jan 14, 2020
aefaa64
add help for deployment user show
Juliehzl Jan 14, 2020
dc6f5bd
revert test_dls_file_mgmt
Juliehzl Jan 14, 2020
f474744
pass webapp_continuousWebjob
Juliehzl Jan 14, 2020
3ca9623
revert reversation_id
Juliehzl Jan 14, 2020
a2e2f68
fix typo
Juliehzl Jan 14, 2020
6a3f923
pass test_linux_webapp_ssh
Juliehzl Jan 14, 2020
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
11 changes: 8 additions & 3 deletions src/azure-cli-core/azure/cli/core/profiles/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class ResourceType(Enum): # pylint: disable=too-few-public-methods
MGMT_MONITOR = ('azure.mgmt.monitor', 'MonitorManagementClient')
DATA_KEYVAULT = ('azure.keyvault', 'KeyVaultClient')
MGMT_EVENTHUB = ('azure.mgmt.eventhub', 'EventHubManagementClient')
MGMT_APPSERVICE = ('azure.mgmt.web', 'WebSiteManagementClient')
# the "None" below will stay till a command module fills in the type so "get_mgmt_service_client"
# can be provided with "ResourceType.XXX" to initialize the client object. This usually happens
# when related commands start to support Multi-API
Expand Down Expand Up @@ -90,7 +91,6 @@ class ResourceType(Enum): # pylint: disable=too-few-public-methods
MGMT_SQLVM = ('azure.mgmt.sqlvirtualmachine', None)
MGMT_MANAGEDSERVICES = ('azure.mgmt.managedservices', None)
MGMT_NETAPPFILES = ('azure.mgmt.netappfiles', None)
MGMT_APPSERVICE = ('azure.mgmt.web', None)

def __init__(self, import_prefix, client_name):
"""Constructor.
Expand Down Expand Up @@ -174,7 +174,8 @@ def default_api_version(self):
'service_diagnostic_settings': '2016-09-01',
'tenant_activity_logs': '2015-04-01',
'vm_insights': '2018-11-27-preview'
})
}),
ResourceType.MGMT_APPSERVICE: '2019-08-01'
},
'2019-03-01-hybrid': {
ResourceType.MGMT_STORAGE: '2017-10-01',
Expand All @@ -198,7 +199,11 @@ def default_api_version(self):
}),
ResourceType.DATA_KEYVAULT: '2016-10-01',
ResourceType.DATA_STORAGE: '2017-11-09',
ResourceType.DATA_COSMOS_TABLE: '2017-04-17'
ResourceType.DATA_COSMOS_TABLE: '2017-04-17',
# Full MultiAPI support is not done in AppService, the line below is merely
# to have commands show up in the hybrid profile which happens to have the latest
# API versions
ResourceType.MGMT_APPSERVICE: '2018-02-01'
},
'2018-03-01-hybrid': {
ResourceType.MGMT_STORAGE: '2016-01-01',
Expand Down
5 changes: 4 additions & 1 deletion src/azure-cli/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

**AppService**

* Azure Stack: surface commands under the profile of 2019-03-01-hybrid

**IoT Central**

* Support app creation/update with the new sku name ST0, ST1, ST2.
Expand Down Expand Up @@ -352,7 +356,6 @@ Release History
* Add --runtime-version property to `az functionapp create`
* az appservice vnet-integration add: Fixed so that subnet delegation is case insensitive and delegating subnets does not overwrite previous data.


**ARM**

* deployment/group deployment validate: Add --handle-extended-json-format parameter to support multiline and comments in json template when deployment.
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Mon Dec 30 11:27:28 Pacific Standard Time 2019
#Mon Jan 13 20:24:18 China Standard Time 2020
Color=Red
Region=West US
feature-management.FalseFeature=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def _polish_bad_errors(ex):


def web_client_factory(cli_ctx, **_):
from azure.mgmt.web import WebSiteManagementClient
from azure.cli.core.profiles import ResourceType
from azure.cli.core.commands.client_factory import get_mgmt_service_client
return get_mgmt_service_client(cli_ctx, WebSiteManagementClient)
return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_APPSERVICE)


def cf_plans(cli_ctx, _):
Expand Down
9 changes: 9 additions & 0 deletions src/azure-cli/azure/cli/command_modules/appservice/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -1516,6 +1516,15 @@
az webapp deployment user set --user-name MyUserName
"""

helps['webapp deployment user show'] = """
type: command
short-summary: Get deployment publishing user.
examples:
- name: Get publishing user information.
text: >
az webapp deployment user show
"""

helps['webapp hybrid-connection'] = """
type: group
short-summary: methods that list, add and remove hybrid-connections from webapps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def load_arguments(self, _):
c.argument('windows_fx_version', help="A docker image name used for your windows container web app, e.g., microsoft/nanoserver:ltsc2016", is_preview=True)
if scope == 'functionapp':
c.ignore('windows_fx_version')
c.argument('reserved_instance_count', options_list=['--prewarmed-instance-count'], help="Number of pre-warmed instances a function app has")
c.argument('pre_warmed_instance_count', options_list=['--prewarmed-instance-count'], help="Number of pre-warmed instances a function app has")
if scope == 'webapp':
c.ignore('reserved_instance_count')
c.argument('java_version', help="The version used to run your web app if using Java, e.g., '1.7' for Java 7, '1.8' for Java 8")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _polish_bad_errors(ex):
# pylint: disable=too-many-statements
def load_command_table(self, _):
webclient_sdk = CliCommandType(
operations_tmpl='azure.mgmt.web.web_site_management_client#WebSiteManagementClient.{}',
operations_tmpl='azure.mgmt.web.operations#WebSiteManagementClientOperationsMixin.{}',
client_factory=cf_web_client
)
appservice_plan_sdk = CliCommandType(
Expand Down Expand Up @@ -195,7 +195,7 @@ def load_command_table(self, _):
g.custom_command('list-publishing-credentials', 'list_publishing_credentials')

with self.command_group('webapp deployment user', webclient_sdk) as g:
g.show_command('show', 'get_publishing_user')
g.custom_show_command('show', 'get_publishing_user')
g.custom_command('set', 'set_deployment_user', exception_handler=ex_handler_factory())

with self.command_group('webapp deployment container') as g:
Expand Down
Loading