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 --managed-instance --managed-instance-name --mi
--link-name --name
--resource-group
[--databases]
[--failover-mode {Manual, None}]
[--instance-ag-name --instance-availability-group-name]
[--instance-link-role {Primary, Secondary}]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--partner-ag-name --partner-availability-group-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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Databases in the distributed availability group Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
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.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Accepted values: | Manual, None |
Managed instance side availability group name.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Managed instance side link role.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Accepted values: | Primary, Secondary |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
SQL server side availability group name.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
SQL server side endpoint - IP or DNS resolvable name.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Database seeding mode – can be Automatic (default), or Manual for supported scenarios.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Default value: | Automatic |
Accepted values: | Automatic, Manual |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
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 --managed-instance --managed-instance-name --mi]
[--link-name --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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the managed instance.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Managed Instance link name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
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 --managed-instance --managed-instance-name --mi]
[--link-name --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.
Property | Value |
---|---|
Parameter group: | Parameters Arguments |
Accepted values: | ForcedAllowDataLoss, Planned |
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the managed instance.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Managed Instance link name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az sql mi link list
Get a list of Managed Instance links in instance.
az sql mi link list --instance-name --managed-instance --managed-instance-name --mi
--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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
Property | Value |
---|---|
Parameter group: | Pagination Arguments |
Token to specify where to start paginating. This is the token value from a previously truncated response.
Property | Value |
---|---|
Parameter group: | Pagination Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az sql mi link show
Get a Managed Instance link info.
az sql mi link show [--ids]
[--instance-name --managed-instance --managed-instance-name --mi]
[--link-name --name]
[--resource-group]
[--subscription]
Examples
Gets the Managed Instance link info.
az sql mi link show -g testrg --mi testcl --name link1
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the managed instance.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Managed Instance link name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az sql mi link update
Update a Managed Instance link replication mode.
az sql mi link update [--ids]
[--instance-name --managed-instance --managed-instance-name --mi]
[--link-name --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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the managed instance.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Managed Instance link name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Replication mode of the link.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Accepted values: | Async, Sync |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |