Skip to content

[SQL] Add Server Trust Group commands - #17275

Merged
Zunli Hu (Juliehzl) merged 9 commits into
Azure:devfrom
bojovicmatija:addingSTGCommands
Mar 18, 2021
Merged

Zunli Hu (Juliehzl) merged 9 commits into
Azure:devfrom
bojovicmatija:addingSTGCommands

Conversation

@bojovicmatija

@bojovicmatija bojovicmatija commented Mar 10, 2021

Copy link
Copy Markdown
Contributor

Description

This PR adds Server Trust Group commands

Testing Guide

Create a Server Trust Group with specified resource ids of its members.
az sql stg create -g resourcegroup -l location -server-trust-group-name stg-name --trust-scope GlobalTransactions -gm $mi1-id $mi2-id
Retrieve a Server Trust Group.
az sql stg show -g resourcegroup -l location -server-trust-group-name stg-name
Delete a Server Trust Group.
az sql stg delete -g resourcegroup -l location -server-trust-group-name stg-name
Retrieve a list of Server Trust Groups by instance.
az sql stg list -g resourcegroup --instance-name mi1-name
Retrieve a list of Server Trust Groups by location.
az sql stg list -g resourcegroup -l location

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

@yonzhan

Copy link
Copy Markdown
Collaborator

SQL

@Juliehzl

Copy link
Copy Markdown
Contributor

Hi bojovicmatija, could you fix CI failure with azdev linter sql and azdev style sql first?

@bojovicmatija

Copy link
Copy Markdown
Contributor Author

Hi bojovicmatija, could you fix CI failure with azdev linter sql and azdev style sql first?

fixed

Comment thread src/azure-cli/HISTORY.rst Outdated
Comment thread src/azure-cli/azure/cli/command_modules/sql/commands.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/sql/commands.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/sql/custom.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/sql/commands.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/sql/custom.py Outdated
@Juliehzl
Zunli Hu (Juliehzl) merged commit d09a485 into Azure:dev Mar 18, 2021
g.custom_command('create', 'server_trust_group_create', supports_no_wait=True)
g.custom_command('delete', 'server_trust_group_delete', confirmation=True, supports_no_wait=True)
g.custom_show_command('show', 'server_trust_group_get')
g.custom_command('list', 'server_trust_group_list')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you add wait command according to the guidance?
image

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.

4 participants