Skip to content

Commit

Permalink
Adding new license type for az sql vm (#11570)
Browse files Browse the repository at this point in the history
* Adding DR license examples

Adding DR license examples

* Update test_sqlvm_update_license_and_sku.yaml

Adding test for DR

* Update test_vm_vmss_update_ultra_ssd_enabled.yaml

Undone changes for recording of vm_vmss

* Update test_vm_vmss_update_ultra_ssd_enabled.yaml

* Update HISTORY.rst
  • Loading branch information
yareyes authored and Juliehzl committed Dec 29, 2019
1 parent 206efd0 commit 9c9d83c
Show file tree
Hide file tree
Showing 11 changed files with 1,043 additions and 504 deletions.
9 changes: 7 additions & 2 deletions src/azure-cli/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ Release History

* Added "--read-scale" and "--read-replicas" parameters to sql db create and update commands, to support read scale management.

**SQL VM**

* New package upgrade 0.5.
* Add new --license-type supporting Disaster Recovery Benefit (DR).

**Storage**

* GA Release Large File Shares property for storage account create and update command
Expand Down Expand Up @@ -174,8 +179,8 @@ Release History
**AppConfig**

* Add support for using ":" for `as az appconfig kv import` separator
* Fix issue for listing key values with multiple labels including null label.
* Update management plane sdk, azure-mgmt-appconfiguration, to version 0.3.0.
* Fix issue for listing key values with multiple labels including null label.
* Update management plane sdk, azure-mgmt-appconfiguration, to version 0.3.0.

**AppService**

Expand Down
6 changes: 6 additions & 0 deletions src/azure-cli/azure/cli/command_modules/sqlvm/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
- name: Create a SQL virtual machine with AHUB billing tag.
text: >
az sql vm create -n sqlvm -g myresourcegroup -l eastus --license-type AHUB
- name: Create a SQL virtual machine with DR billing tag.
text: >
az sql vm create -n sqlvm -g myresourcegroup -l eastus --license-type DR
- name: Create a SQL virtual machine with specific sku type and license type.
text: >
az sql vm create -n sqlvm -g myresourcegroup -l eastus --image-sku Enterprise --license-type AHUB
Expand Down Expand Up @@ -143,4 +146,7 @@
- name: Update a SQL virtual machine billing tag to AHUB.
text: >
az sql vm update -n sqlvm -g myresourcegroup --license-type AHUB
- name: Update a SQL virtual machine billing tag to DR.
text: >
az sql vm update -n sqlvm -g myresourcegroup --license-type DR
"""

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,32 @@ def test_sqlvm_update_license_and_sku(self, resource_group, resource_group_locat
JMESPathCheck('sqlServerLicenseType', 'AHUB')
])

# test license change for DR only.
self.cmd('sql vm update -n {} -g {} --license-type {}'
.format(sqlvm1, resource_group, 'DR'),
checks=[
JMESPathCheck('name', sqlvm1),
JMESPathCheck('location', resource_group_location),
JMESPathCheck('provisioningState', "Succeeded"),
JMESPathCheck('sqlImageSku', 'Enterprise'),
JMESPathCheck('sqlServerLicenseType', 'DR')
])

# delete sqlvm
self.cmd('sql vm delete -n {} -g {} --yes'
.format(sqlvm1, resource_group),
checks=NoneCheck())

# test create sqlvm with sql license type DR.
self.cmd('sql vm create -n {} -g {} -l {} --license-type {}'
.format(sqlvm1, resource_group, resource_group_location, 'DR'),
checks=[
JMESPathCheck('name', sqlvm1),
JMESPathCheck('location', resource_group_location),
JMESPathCheck('provisioningState', "Succeeded"),
JMESPathCheck('sqlServerLicenseType', 'DR'),
])


class SqlVmGroupScenarioTest(ScenarioTest):
@ResourceGroupPreparer()
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/requirements.py2.Darwin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ azure-mgmt-servicebus==0.6.0
azure-mgmt-servicefabric==0.2.0
azure-mgmt-signalr==0.3.0
azure-mgmt-sql==0.15.0
azure-mgmt-sqlvirtualmachine==0.4.0
azure-mgmt-sqlvirtualmachine==0.5.0
azure-mgmt-storage==5.0.0
azure-mgmt-trafficmanager==0.51.0
azure-mgmt-web==0.42.0
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/requirements.py2.Linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ azure-mgmt-servicebus==0.6.0
azure-mgmt-servicefabric==0.2.0
azure-mgmt-signalr==0.3.0
azure-mgmt-sql==0.15.0
azure-mgmt-sqlvirtualmachine==0.4.0
azure-mgmt-sqlvirtualmachine==0.5.0
azure-mgmt-storage==5.0.0
azure-mgmt-trafficmanager==0.51.0
azure-mgmt-web==0.42.0
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/requirements.py2.windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ azure-mgmt-servicebus==0.6.0
azure-mgmt-servicefabric==0.2.0
azure-mgmt-signalr==0.3.0
azure-mgmt-sql==0.15.0
azure-mgmt-sqlvirtualmachine==0.4.0
azure-mgmt-sqlvirtualmachine==0.5.0
azure-mgmt-storage==5.0.0
azure-mgmt-trafficmanager==0.51.0
azure-mgmt-web==0.42.0
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/requirements.py3.Darwin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ azure-mgmt-servicebus==0.6.0
azure-mgmt-servicefabric==0.2.0
azure-mgmt-signalr==0.3.0
azure-mgmt-sql==0.15.0
azure-mgmt-sqlvirtualmachine==0.4.0
azure-mgmt-sqlvirtualmachine==0.5.0
azure-mgmt-storage==5.0.0
azure-mgmt-trafficmanager==0.51.0
azure-mgmt-web==0.42.0
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/requirements.py3.Linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ azure-mgmt-servicebus==0.6.0
azure-mgmt-servicefabric==0.2.0
azure-mgmt-signalr==0.3.0
azure-mgmt-sql==0.15.0
azure-mgmt-sqlvirtualmachine==0.4.0
azure-mgmt-sqlvirtualmachine==0.5.0
azure-mgmt-storage==5.0.0
azure-mgmt-trafficmanager==0.51.0
azure-mgmt-web==0.42.0
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/requirements.py3.windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ azure-mgmt-servicebus==0.6.0
azure-mgmt-servicefabric==0.2.0
azure-mgmt-signalr==0.3.0
azure-mgmt-sql==0.15.0
azure-mgmt-sqlvirtualmachine==0.4.0
azure-mgmt-sqlvirtualmachine==0.5.0
azure-mgmt-storage==5.0.0
azure-mgmt-trafficmanager==0.51.0
azure-mgmt-web==0.42.0
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
'azure-mgmt-servicefabric~=0.2.0',
'azure-mgmt-signalr~=0.3.0',
'azure-mgmt-sql~=0.15.0',
'azure-mgmt-sqlvirtualmachine~=0.4.0',
'azure-mgmt-sqlvirtualmachine~=0.5.0',
'azure-mgmt-storage~=5.0.0',
'azure-mgmt-trafficmanager~=0.51.0',
'azure-mgmt-web~=0.42.0',
Expand Down

0 comments on commit 9c9d83c

Please sign in to comment.