Skip to main content

server_connection_policies

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

Overview

Nameserver_connection_policies
TypeResource
Idazure.sql.server_connection_policies

Fields

NameDatatypeDescription
connectionPolicyNametextfield from the properties object
connection_typetextfield from the properties object
kindtextMetadata used for the Azure portal experience.
locationtextResource location.
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTconnectionPolicyName, resourceGroupName, serverName, subscriptionIdGets a server connection policy
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdLists connection policy
create_or_updateINSERTconnectionPolicyName, resourceGroupName, serverName, subscriptionIdUpdates a server connection policy

SELECT examples

Lists connection policy

SELECT
connectionPolicyName,
connection_type,
kind,
location,
resourceGroupName,
serverName,
subscriptionId
FROM azure.sql.vw_server_connection_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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