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 |
az sql mi link create
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}]
Examples
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}]"
Required Parameters
Name of the managed instance.
Managed Instance link name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Databases in the distributed availability group Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
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.
Managed instance side availability group name.
Managed instance side link role.
Do not wait for the long-running operation to finish.
SQL server side availability group name.
SQL server side endpoint - IP or DNS resolvable name.
Database seeding mode – can be Automatic (default), or Manual for supported scenarios.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sql mi link delete
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]
Examples
Initiate a Managed Instance link drop.
az sql mi link delete -g testrg --mi testcl --name link1
Optional Parameters
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.
Name of the managed instance.
Managed Instance link name.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sql mi link failover
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]
Examples
Failover a Managed Instance link.
az sql mi link failover -g testrg --mi testcl --name link1 --failover-type ForcedAllowDataLoss
Required Parameters
The failover type, can be ForcedAllowDataLoss or Planned.
Optional Parameters
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.
The name of the managed instance.
Managed Instance link name.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sql mi link list
Get a list of Managed Instance links in instance.
az sql mi link list --instance-name
--resource-group
[--max-items]
[--next-token]
Examples
Lists all Managed Instance links in instance.
az sql mi link list -g testrg --mi testcl
Required Parameters
Name of the managed instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
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.
Token to specify where to start paginating. This is the token value from a previously truncated response.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sql mi link show
Get a Managed Instance link info.
az sql mi link show [--ids]
[--instance-name]
[--link-name]
[--resource-group]
[--subscription]
Examples
Gets the Managed Instance link info.
az sql mi link show -g testrg --mi testcl --name link1
Optional Parameters
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.
Name of the managed instance.
Managed Instance link name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sql mi link update
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]
Examples
Update a Managed Instance link replication mode.
az sql mi link update -g testrg --mi testcl --name link1 --replication-mode Sync
Optional Parameters
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.
The name of the managed instance.
Managed Instance link name.
Do not wait for the long-running operation to finish.
Replication mode of the link.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.