Condividi tramite


az sql server-arc extension feature-flag

Note

This reference is part of the arcdata extension for the Azure CLI (version 2.3.1 or higher). The extension will automatically install the first time you run an az sql server-arc extension feature-flag command. Learn more about extensions.

Command group 'sql server-arc extension' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Manage extension level feature flags.

Commands

Name Description Type Status
az sql server-arc extension feature-flag delete

Delete feature flag.

Extension Preview
az sql server-arc extension feature-flag set

Set feature flag.

Extension Preview
az sql server-arc extension feature-flag show

Show feature flag.

Extension Preview

az sql server-arc extension feature-flag delete

Preview

Command group 'sql server-arc extension feature-flag' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Delete feature flag.

az sql server-arc extension feature-flag delete --name
                                                --resource-group
                                                [--machine-name]
                                                [--sql-server-arc-name]

Examples

Ex 1 - Deleting a feature flag

az sql server-arc extension feature-flag delete --name FeatureName --resource-group MyResourceGroup --machine-name MyArcServerName

Ex 2 - Deleting a feature flag using arc sql instance resource name

az sql server-arc extension feature-flag delete --name FeatureName --resource-group MyResourceGroup --sql-server-arc-name MyArcSqlInstanceName

Required Parameters

--name -n

Name of the feature.

--resource-group -g

Name of the resource group where the connected machine is located.

Optional Parameters

--machine-name

Name of the connected machine.

--sql-server-arc-name

Name of the sql server instance.

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.

az sql server-arc extension feature-flag set

Preview

Command group 'sql server-arc extension feature-flag' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Set feature flag.

az sql server-arc extension feature-flag set --enable
                                             --name
                                             --resource-group
                                             [--machine-name]
                                             [--sql-server-arc-name]

Examples

Ex 1 - Enabling a feature flag

az sql server-arc extension feature-flag set --name FeatureName --enable true --resource-group MyResourceGroup --machine-name MyArcServerName

Ex 2 - Enabling a feature flag using arc sql instance resource name

az sql server-arc extension feature-flag set --name FeatureName --enable true --resource-group MyResourceGroup --sql-server-arc-name MyArcSqlInstanceName

Ex 3 - Disabling a feature flag

az sql server-arc extension feature-flag set --name FeatureName --enable false --resource-group MyResourceGroup --machine-name MyArcServerName

Ex 4 - Disabling a feature flag using arc sql instance resource name

az sql server-arc extension feature-flag set --name FeatureName --enable false --resource-group MyResourceGroup --sql-server-arc-name MyArcSqlInstanceName

Required Parameters

--enable

Set true to enable and false to disable.

--name -n

Name of the feature.

--resource-group -g

Name of the resource group where the connected machine is located.

Optional Parameters

--machine-name

Name of the connected machine.

--sql-server-arc-name

Name of the sql server instance.

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.

az sql server-arc extension feature-flag show

Preview

Command group 'sql server-arc extension feature-flag' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Show feature flag.

az sql server-arc extension feature-flag show --resource-group
                                              [--machine-name]
                                              [--name]
                                              [--sql-server-arc-name]

Examples

Ex 1 - Displaying feature flag for a feature

az sql server-arc extension feature-flag show --name FeatureName --resource-group MyResourceGroup --machine-name MyArcServerName

Ex 2 - Displaying feature flag for a feature using arc sql instance resource name

az sql server-arc extension feature-flag show --name FeatureName --resource-group MyResourceGroup --sql-server-arc-name MyArcSqlInstanceName

Ex 3 - Displaying all feature flags

az sql server-arc extension feature-flag show --resource-group MyResourceGroup --machine-name MyArcServerName

Ex 4 - Displaying all feature flags using arc sql instance resource name

az sql server-arc extension feature-flag show --resource-group MyResourceGroup --sql-server-arc-name MyArcSqlInstanceName

Required Parameters

--resource-group -g

Name of the resource group where the connected machine is located.

Optional Parameters

--machine-name

Name of the connected machine.

--name -n

Name of the feature.

--sql-server-arc-name

Name of the sql server instance.

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.