Skip to main content

server_azure_ad_only_authentications

Creates, updates, deletes, gets or lists a server_azure_ad_only_authentications resource.

Overview

Nameserver_azure_ad_only_authentications
TypeResource
Idazure.sql.server_azure_ad_only_authentications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
azureADOnlyAuthenticationbooleanAzure Active Directory only Authentication enabled. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, server_name, authentication_name, subscription_idGets a specific Azure Active Directory only authentication property.
list_by_serverselectresource_group_name, server_name, subscription_idGets a list of server Azure Active Directory only authentications.
create_or_updateinsertresource_group_name, server_name, authentication_name, subscription_idSets Server Active Directory only authentication property or updates an existing server Active Directory only authentication property.
create_or_updatereplaceresource_group_name, server_name, authentication_name, subscription_idSets Server Active Directory only authentication property or updates an existing server Active Directory only authentication property.
deletedeleteresource_group_name, server_name, authentication_name, subscription_idDeletes an existing server Active Directory only authentication property.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
authentication_namestringThe name of server azure active directory only authentication. "Default" Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
server_namestringThe name of the server. Required.
subscription_idstring

SELECT examples

Gets a specific Azure Active Directory only authentication property.

SELECT
id,
name,
azureADOnlyAuthentication,
systemData,
type
FROM azure.sql.server_azure_ad_only_authentications
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND authentication_name = '{{ authentication_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Sets Server Active Directory only authentication property or updates an existing server Active Directory only authentication property.

INSERT INTO azure.sql.server_azure_ad_only_authentications (
properties,
resource_group_name,
server_name,
authentication_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ server_name }}',
'{{ authentication_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Sets Server Active Directory only authentication property or updates an existing server Active Directory only authentication property.

REPLACE azure.sql.server_azure_ad_only_authentications
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND server_name = '{{ server_name }}' --required
AND authentication_name = '{{ authentication_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes an existing server Active Directory only authentication property.

DELETE FROM azure.sql.server_azure_ad_only_authentications
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND server_name = '{{ server_name }}' --required
AND authentication_name = '{{ authentication_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;