שתף באמצעות


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

Experimental Preview Deprecated

Get managed instance DTC settings.

This command gets managed instance DTC settings.

az sql mi dtc show [--ids]
                   [--managed-instance-name]
                   [--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

Required Parameters

Optional Parameters

--ids
Experimental Preview Deprecated

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.

--managed-instance-name --mi
Experimental Preview Deprecated

The name of the managed instance.

--resource-group -g
Experimental Preview Deprecated

Name of the resource group.

--subscription
Experimental Preview Deprecated

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

Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

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

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

--subscription
Experimental Preview Deprecated

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

--verbose
Experimental Preview Deprecated

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

az sql mi dtc update

Experimental Preview Deprecated

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]
                     [--force-string {0, 1, f, false, n, no, t, true, y, yes}]
                     [--ids]
                     [--managed-instance-name]
                     [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                     [--remove]
                     [--resource-group]
                     [--set]
                     [--sna-lu-transactions {0, 1, f, false, n, no, t, true, y, yes}]
                     [--subscription]
                     [--xa-default-timeout]
                     [--xa-max-timeout]
                     [--xa-transactions {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

Required Parameters

Optional Parameters

--add
Experimental Preview Deprecated

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>.

--allow-inbound-enabled
Experimental Preview Deprecated

Allow Inbound traffic to managed instance DTC.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--allow-outbound-enabled
Experimental Preview Deprecated

Allow Outbound traffic of managed instance DTC.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--authentication
Experimental Preview Deprecated

Authentication type of managed instance DTC.

--dtc-enabled
Experimental Preview Deprecated

Active status of managed instance DTC.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--external-dns-suffix-search-list --external-dns-suffixes
Experimental Preview Deprecated

External dns suffix search list of managed instance DTC. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--force-string
Experimental Preview Deprecated

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--ids
Experimental Preview Deprecated

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.

--managed-instance-name --mi
Experimental Preview Deprecated

The name of the managed instance.

--no-wait
Experimental Preview Deprecated

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

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--remove
Experimental Preview Deprecated

Remove a property or an element from a list. Example: --remove property.list <indexToRemove> OR --remove propertyToRemove.

--resource-group -g
Experimental Preview Deprecated

Name of the resource group.

--set
Experimental Preview Deprecated

Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>.

--sna-lu-transactions --sna-lu6point2-transactions-enabled
Experimental Preview Deprecated

Allow SNA LU 6.2 Transactions to managed instance DTC.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--subscription
Experimental Preview Deprecated

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

--xa-default-timeout --xa-transactions-default-timeout
Experimental Preview Deprecated

Default timeout for XA Transactions (in seconds).

--xa-max-timeout --xa-transactions-maximum-timeout
Experimental Preview Deprecated

Maximum timeout for XA Transactions (in seconds).

--xa-transactions --xa-transactions-enabled
Experimental Preview Deprecated

Allow XA Transactions to managed instance DTC.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

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

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

--subscription
Experimental Preview Deprecated

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

--verbose
Experimental Preview Deprecated

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

az sql mi dtc wait

Experimental Preview Deprecated

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]
                   [--resource-group]
                   [--subscription]
                   [--timeout]
                   [--updated]

Examples

Required Parameters

Optional Parameters

--created
Experimental Preview Deprecated

Wait until created with 'provisioningState' at 'Succeeded'.

Default value: False
--custom
Experimental Preview Deprecated

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted
Experimental Preview Deprecated

Wait until deleted.

Default value: False
--exists
Experimental Preview Deprecated

Wait until the resource exists.

Default value: False
--ids
Experimental Preview Deprecated

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.

--interval
Experimental Preview Deprecated

Polling interval in seconds.

Default value: 30
--managed-instance-name --mi
Experimental Preview Deprecated

The name of the managed instance.

--resource-group -g
Experimental Preview Deprecated

Name of the resource group.

--subscription
Experimental Preview Deprecated

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

--timeout
Experimental Preview Deprecated

Maximum wait in seconds.

Default value: 3600
--updated
Experimental Preview Deprecated

Wait until updated with provisioningState at 'Succeeded'.

Default value: False
Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

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

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

--subscription
Experimental Preview Deprecated

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

--verbose
Experimental Preview Deprecated

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