Skip to main content

dev_ops_policy_assignments

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

Overview

Namedev_ops_policy_assignments
TypeResource
Idazure.security.dev_ops_policy_assignments

Fields

NameDatatypeDescription
assigned_attextfield from the properties object
descendant_behaviortextfield from the properties object
policytextfield from the properties object
policyAssignmentIdtextfield from the properties object
provisioning_statetextfield from the properties object
provisioning_status_messagetextfield from the properties object
provisioning_status_update_time_utctextfield from the properties object
resourceGroupNametextfield from the properties object
resourceIdtextfield from the properties object
resource_idtextfield from the properties object
securityConnectorNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTpolicyAssignmentId, resourceGroupName, securityConnectorName, subscriptionId
listSELECTresourceGroupName, resourceId, securityConnectorName, subscriptionId
create_or_updateINSERTpolicyAssignmentId, resourceGroupName, securityConnectorName, subscriptionId
deleteDELETEpolicyAssignmentId, resourceGroupName, securityConnectorName, subscriptionId
updateUPDATEpolicyAssignmentId, resourceGroupName, securityConnectorName, subscriptionId

SELECT examples

SELECT
assigned_at,
descendant_behavior,
policy,
policyAssignmentId,
provisioning_state,
provisioning_status_message,
provisioning_status_update_time_utc,
resourceGroupName,
resourceId,
resource_id,
securityConnectorName,
subscriptionId,
system_data
FROM azure.security.vw_dev_ops_policy_assignments
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceId = '{{ resourceId }}'
AND securityConnectorName = '{{ securityConnectorName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.security.dev_ops_policy_assignments (
policyAssignmentId,
resourceGroupName,
securityConnectorName,
subscriptionId,
systemData,
properties
)
SELECT
'{{ policyAssignmentId }}',
'{{ resourceGroupName }}',
'{{ securityConnectorName }}',
'{{ subscriptionId }}',
'{{ systemData }}',
'{{ properties }}'
;

UPDATE example

Updates a dev_ops_policy_assignments resource.

/*+ update */
UPDATE azure.security.dev_ops_policy_assignments
SET
systemData = '{{ systemData }}',
properties = '{{ properties }}'
WHERE
policyAssignmentId = '{{ policyAssignmentId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND securityConnectorName = '{{ securityConnectorName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified dev_ops_policy_assignments resource.

/*+ delete */
DELETE FROM azure.security.dev_ops_policy_assignments
WHERE policyAssignmentId = '{{ policyAssignmentId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND securityConnectorName = '{{ securityConnectorName }}'
AND subscriptionId = '{{ subscriptionId }}';