az sql mi dtc
Commands related to managed instance DTC management.
The managed instance DTC object can be fetched and updated using these commands.
Commands
Name | Description | Type | Status |
---|---|---|---|
az sql mi dtc show |
Get managed instance DTC settings. |
Core | GA |
az sql mi dtc update |
Update managed instance DTC settings. |
Core | GA |
az sql mi dtc wait |
Place the CLI in a waiting state until a condition is met. |
Core | GA |
az sql mi dtc show
Get managed instance DTC settings.
This command gets managed instance DTC settings.
az sql mi dtc show [--ids]
[--managed-instance-name --mi]
[--resource-group]
[--subscription]
Examples
Gets the managed instance DTC
az sql mi show --g resourceGroup1 --managed-instance-name managedInstance1
Gets the managed instance DTC with the specified resource ID
az sql mi show --ids /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroup1/providers/Microsoft.Sql/managedInstances/ManagedInstance1/dtc/current
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 |
Name of the resource group.
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 dtc update
Update managed instance DTC settings.
This command updates the managed instance DTC settings. All parameters are optional.
az sql mi dtc update [--add]
[--allow-inbound-enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--allow-outbound-enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--authentication]
[--dtc-enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--external-dns-suffix-search-list --external-dns-suffixes]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--managed-instance-name --mi]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--remove]
[--resource-group]
[--set]
[--sna-lu-transactions --sna-lu6point2-transactions-enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--subscription]
[--xa-default-timeout --xa-transactions-default-timeout]
[--xa-max-timeout --xa-transactions-maximum-timeout]
[--xa-transactions --xa-transactions-enabled {0, 1, f, false, n, no, t, true, y, yes}]
Examples
Enable DTC on a managed instance
az sql mi dtc update -g resourceGroup1 --mi managedInstance1 --dtc-enabled true
az sql mi dtc update --ids /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroup1/providers/Microsoft.Sql/managedInstances/ManagedInstance1/dtc/current --dtc-enabled true
Allow XA transactions for managed instance DTC
az sql mi dtc update -g resourceGroup1 --mi managedInstance1 --xa-transactions-enabled true
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Allow Inbound traffic to managed instance DTC.
Property | Value |
---|---|
Parameter group: | TransactionManagerCommunicationSettings Arguments |
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Allow Outbound traffic of managed instance DTC.
Property | Value |
---|---|
Parameter group: | TransactionManagerCommunicationSettings Arguments |
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Authentication type of managed instance DTC.
Property | Value |
---|---|
Parameter group: | TransactionManagerCommunicationSettings Arguments |
Active status of managed instance DTC.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
External dns suffix search list of managed instance DTC. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
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 |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Name of the resource group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Allow SNA LU 6.2 Transactions to managed instance DTC.
Property | Value |
---|---|
Parameter group: | SecuritySettings Arguments |
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
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 |
Default timeout for XA Transactions (in seconds).
Property | Value |
---|---|
Parameter group: | SecuritySettings Arguments |
Maximum timeout for XA Transactions (in seconds).
Property | Value |
---|---|
Parameter group: | SecuritySettings Arguments |
Allow XA Transactions to managed instance DTC.
Property | Value |
---|---|
Parameter group: | SecuritySettings Arguments |
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
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 dtc wait
Place the CLI in a waiting state until a condition is met.
az sql mi dtc wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--managed-instance-name --mi]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Wait until created with 'provisioningState' at 'Succeeded'.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Wait until deleted.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Wait until the resource exists.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
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 |
Polling interval in seconds.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | 30 |
The name of the managed instance.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the resource group.
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 |
Maximum wait in seconds.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | 3600 |
Wait until updated with provisioningState at 'Succeeded'.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
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 |