Skip to main content

managed_instance_azure_ad_only_authentications

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

Overview

Namemanaged_instance_azure_ad_only_authentications
TypeResource
Idazure.sql.managed_instance_azure_ad_only_authentications

Fields

The following fields are returned by SELECT queries:

Successfully retrieved a specified Azure Active Directory only authentication properties.

NameDatatypeDescription
propertiesobjectResource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, managedInstanceName, authenticationName, subscriptionIdGets a specific Azure Active Directory only authentication property.
create_or_updateinsertresourceGroupName, managedInstanceName, authenticationName, subscriptionIdSets Server Active Directory only authentication property or updates an existing server Active Directory only authentication property.
deletedeleteresourceGroupName, managedInstanceName, authenticationName, subscriptionIdDeletes 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
authenticationNamestringThe name of server azure active directory only authentication.
managedInstanceNamestringThe name of the managed instance.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.

SELECT examples

Gets a specific Azure Active Directory only authentication property.

SELECT
properties
FROM azure.sql.managed_instance_azure_ad_only_authentications
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND managedInstanceName = '{{ managedInstanceName }}' -- required
AND authenticationName = '{{ authenticationName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

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

INSERT INTO azure.sql.managed_instance_azure_ad_only_authentications (
data__properties,
resourceGroupName,
managedInstanceName,
authenticationName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ managedInstanceName }}',
'{{ authenticationName }}',
'{{ subscriptionId }}'
RETURNING
properties
;

DELETE examples

Deletes an existing server Active Directory only authentication property.

DELETE FROM azure.sql.managed_instance_azure_ad_only_authentications
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND managedInstanceName = '{{ managedInstanceName }}' --required
AND authenticationName = '{{ authenticationName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;