Skip to content

[SQL] Add Server Trust Group commands#17275

Merged
Juliehzl merged 9 commits intoAzure:devfrom
bojovicmatija:addingSTGCommands
Mar 18, 2021
Merged

[SQL] Add Server Trust Group commands#17275
Juliehzl merged 9 commits intoAzure:devfrom
bojovicmatija:addingSTGCommands

Conversation

@bojovicmatija
Copy link
Copy Markdown
Contributor

@bojovicmatija bojovicmatija commented Mar 10, 2021

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

yonzhan commented Mar 10, 2021

SQL

@yonzhan yonzhan added this to the S184 milestone Mar 10, 2021
@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

@Juliehzl 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