Κοινή χρήση μέσω


az sql mi link

Instance link management commands.

Commands

Name Description Type Status
az sql mi link create

Create a Managed Instance link between Sql On-Prem and Sql Managed Instance.

Core GA
az sql mi link delete

Drop a Managed Instance link between Sql On-Prem and Sql Managed Instance.

Core GA
az sql mi link failover

Performs requested failover type in this Managed Instance link.

Core GA
az sql mi link list

Get a list of Managed Instance links in instance.

Core GA
az sql mi link show

Get a Managed Instance link info.

Core GA
az sql mi link update

Update a Managed Instance link replication mode.

Core GA

Create a Managed Instance link between Sql On-Prem and Sql Managed Instance.

az sql mi link create --instance-name
                      --link-name
                      --resource-group
                      [--databases]
                      [--failover-mode {Manual, None}]
                      [--instance-ag-name]
                      [--instance-link-role {Primary, Secondary}]
                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                      [--partner-ag-name]
                      [--partner-endpoint]
                      [--seeding-mode {Automatic, Manual}]

Create a Managed Instance link with minimal properties.

az sql mi link create -g testrg --mi testcl --name link1 --instance-ag-name instanceAg --partner-ag-name partnerAg --partner-endpoint TCP://SERVER:7022 --databases "[{database-name:testdb}]"
--instance-name --managed-instance --managed-instance-name --mi

Name of the managed instance.

--link-name --name -n

Managed Instance link name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--databases

Databases in the distributed availability group Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--failover-mode

The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure.

Accepted values: Manual, None
--instance-ag-name --instance-availability-group-name

Managed instance side availability group name.

--instance-link-role

Managed instance side link role.

Accepted values: Primary, Secondary
--no-wait

Do not wait for the long-running operation to finish.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--partner-ag-name --partner-availability-group-name

SQL server side availability group name.

--partner-endpoint

SQL server side endpoint - IP or DNS resolvable name.

--seeding-mode

Database seeding mode – can be Automatic (default), or Manual for supported scenarios.

Accepted values: Automatic, Manual
Default value: Automatic
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Drop a Managed Instance link between Sql On-Prem and Sql Managed Instance.

az sql mi link delete [--ids]
                      [--instance-name]
                      [--link-name]
                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                      [--resource-group]
                      [--subscription]
                      [--yes]

Initiate a Managed Instance link drop.

az sql mi link delete -g testrg --mi testcl --name link1
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--instance-name --managed-instance --managed-instance-name --mi

Name of the managed instance.

--link-name --name -n

Managed Instance link name.

--no-wait

Do not wait for the long-running operation to finish.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--yes -y

Do not prompt for confirmation.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Performs requested failover type in this Managed Instance link.

az sql mi link failover --failover-type {ForcedAllowDataLoss, Planned}
                        [--ids]
                        [--instance-name]
                        [--link-name]
                        [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                        [--resource-group]
                        [--subscription]
                        [--yes]

Failover a Managed Instance link.

az sql mi link failover -g testrg --mi testcl --name link1 --failover-type ForcedAllowDataLoss
--failover-type

The failover type, can be ForcedAllowDataLoss or Planned.

Accepted values: ForcedAllowDataLoss, Planned
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--instance-name --managed-instance --managed-instance-name --mi

The name of the managed instance.

--link-name --name -n

Managed Instance link name.

--no-wait

Do not wait for the long-running operation to finish.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--yes -y

Do not prompt for confirmation.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Get a list of Managed Instance links in instance.

az sql mi link list --instance-name
                    --resource-group
                    [--max-items]
                    [--next-token]

Lists all Managed Instance links in instance.

az sql mi link list -g testrg --mi testcl
--instance-name --managed-instance --managed-instance-name --mi

Name of the managed instance.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--max-items

Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.

--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Get a Managed Instance link info.

az sql mi link show [--ids]
                    [--instance-name]
                    [--link-name]
                    [--resource-group]
                    [--subscription]

Gets the Managed Instance link info.

az sql mi link show -g testrg --mi testcl --name link1
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--instance-name --managed-instance --managed-instance-name --mi

Name of the managed instance.

--link-name --name -n

Managed Instance link name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Update a Managed Instance link replication mode.

az sql mi link update [--ids]
                      [--instance-name]
                      [--link-name]
                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                      [--replication-mode {Async, Sync}]
                      [--resource-group]
                      [--subscription]

Update a Managed Instance link replication mode.

az sql mi link update -g testrg --mi testcl --name link1 --replication-mode Sync
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--instance-name --managed-instance --managed-instance-name --mi

The name of the managed instance.

--link-name --name -n

Managed Instance link name.

--no-wait

Do not wait for the long-running operation to finish.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--replication-mode

Replication mode of the link.

Accepted values: Async, Sync
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.