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

NameDatatypeDescription
authenticationNametextfield from the properties object
azure_ad_only_authenticationtextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTauthenticationName, resourceGroupName, serverName, subscriptionIdGets a specific Azure Active Directory only authentication property.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdGets a list of server Azure Active Directory only authentications.
create_or_updateINSERTauthenticationName, resourceGroupName, serverName, subscriptionIdSets Server Active Directory only authentication property or updates an existing server Active Directory only authentication property.
deleteDELETEauthenticationName, resourceGroupName, serverName, subscriptionIdDeletes an existing server Active Directory only authentication property.

SELECT examples

Gets a list of server Azure Active Directory only authentications.

SELECT
authenticationName,
azure_ad_only_authentication,
resourceGroupName,
serverName,
subscriptionId
FROM azure.sql.vw_server_azure_ad_only_authentications
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new server_azure_ad_only_authentications resource.

/*+ create */
INSERT INTO azure.sql.server_azure_ad_only_authentications (
authenticationName,
resourceGroupName,
serverName,
subscriptionId,
properties
)
SELECT
'{{ authenticationName }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified server_azure_ad_only_authentications resource.

/*+ delete */
DELETE FROM azure.sql.server_azure_ad_only_authentications
WHERE authenticationName = '{{ authenticationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';