Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions src/command_modules/azure-cli-rdbms/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

0.3.3
+++++
* Minor fixes

0.3.2
+++++
* Add support for MariaDB service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def add_helps(command_group, server_type):
text: az {1} server create -l northeurope -g testgroup -n testsvr -u username -p password
- name: Create a {0} server with a Standard performance tier and 2 vcore in North Europe.
text: az {1} server create -l northeurope -g testgroup -n testsvr -u username -p password \\
--sku-name GP_Gen4_2
--sku-name GP_Gen5_2
- name: Create a {0} server with all paramaters set.
text: az {1} server create -l northeurope -g testgroup -n testsvr -u username -p password \\
--sku-name B_Gen4_2 --ssl-enforcement Disabled \\
--sku-name B_Gen5_2 --ssl-enforcement Disabled \\
--storage-size 51200 --tags "key=value" --version {{server-version}}
""".format(server_type, command_group)
helps['{} server restore'.format(command_group)] = """
Expand Down Expand Up @@ -61,7 +61,7 @@ def add_helps(command_group, server_type):
short-summary: Update a server.
examples:
- name: Update a server's sku.
text: az {0} server update -g testgroup -n testsvrnew --sku-name GP_Gen4_4
text: az {0} server update -g testgroup -n testsvrnew --sku-name GP_Gen5_4
- name: Update a server's tags.
text: az {0} server update -g testgroup -n testsvrnew --tags "k1=v1" "k2=v2"
""".format(command_group)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def load_arguments(self, _): # pylint: disable=too-many-statements

def _complex_params(command_group):
with self.argument_context('{} server create'.format(command_group)) as c:
c.argument('sku_name', options_list=['--sku-name'], required=True, help='The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.')
c.argument('sku_name', options_list=['--sku-name'], required=True, help='The name of the sku, typically, tier + family + cores, e.g. B_Gen5_1, GP_Gen5_8.')

c.argument('backup_retention', type=int, options_list=['--backup-retention'], help='The number of days a backup is retained.')
c.argument('geo_redundant_backup', options_list=['--geo-redundant-backup'], help='Enable Geo-redundant or not for server backup.')
Expand All @@ -37,15 +37,15 @@ def _complex_params(command_group):

with self.argument_context('{} server update'.format(command_group)) as c:
c.ignore('family', 'capacity', 'tier')
c.argument('sku_name', options_list=['--sku-name'], help='The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.')
c.argument('sku_name', options_list=['--sku-name'], help='The name of the sku, typically, tier + family + cores, e.g. B_Gen5_1, GP_Gen5_8.')

with self.argument_context('{} server restore'. format(command_group)) as c:
c.argument('source_server', options_list=['--source-server', '-s'], help='The name or ID of the source server to restore from.')
c.argument('restore_point_in_time', help='The point in time to restore from (ISO8601 format), e.g., 2017-04-26T02:10:00+08:00')

with self.argument_context('{} server georestore'. format(command_group)) as c:
c.argument('location', arg_type=get_location_type(self.cli_ctx), required=True)
c.argument('sku_name', options_list=['--sku-name'], required=False, help='The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.')
c.argument('sku_name', options_list=['--sku-name'], required=False, help='The name of the sku, typically, tier + family + cores, e.g. B_Gen5_1, GP_Gen5_8.')
c.argument('source_server', options_list=['--source-server', '-s'], required=True, help='The name or ID of the source server to restore from.')
c.argument('backup_retention', options_list=['--backup-retention'], type=int, help='The max days of retention, unit is days.')
c.argument('geo_redundant_backup', options_list=['--geo-redundant-backup'], help='Enable Geo-redundant or not for server backup.')
Expand Down
2 changes: 1 addition & 1 deletion src/command_modules/azure-cli-rdbms/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "0.3.2"
VERSION = "0.3.3"
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
Expand Down