az sql server ad-only-auth

Manage Azure Active Directly only Authentication settings for this Server.

Commands

az sql server ad-only-auth disable

Disable Azure Active Directly only Authentication for this Server.

az sql server ad-only-auth enable

Enable Azure Active Directly only Authentication for this Server.

az sql server ad-only-auth get

Get a specific Azure Active Directly only Authentication property.

az sql server ad-only-auth disable

Disable Azure Active Directly only Authentication for this Server.

az sql server ad-only-auth disable [--ids]
                                   [--name]
                                   [--resource-group]
                                   [--subscription]

Examples

Disable Active Directory only authentication for a sql server

az sql server ad-only-auth disable --resource-group mygroup --name myServer

Optional Parameters

--ids

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

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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

az sql server ad-only-auth enable

Enable Azure Active Directly only Authentication for this Server.

az sql server ad-only-auth enable [--ids]
                                  [--name]
                                  [--resource-group]
                                  [--subscription]

Examples

Enable Active Directory only authentication for a sql server

az sql server ad-only-auth enable --resource-group mygroup --name myServer

Optional Parameters

--ids

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

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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

az sql server ad-only-auth get

Get a specific Azure Active Directly only Authentication property.

az sql server ad-only-auth get [--ids]
                               [--name]
                               [--resource-group]
                               [--subscription]

Examples

Get Active Directory only authentication status for a sql server

az sql server ad-only-auth get --resource-group mygroup --name myServer

Optional Parameters

--ids

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

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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