Skip to main content

scope_assignments

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

Overview

Namescope_assignments
TypeResource
Idazure.managed_network.scope_assignments

Fields

NameDatatypeDescription
assigned_managed_networktextfield from the properties object
etagtextfield from the properties object
provisioning_statetextfield from the properties object
scopetextfield from the properties object
scopeAssignmentNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTscope, scopeAssignmentNameGet the specified scope assignment.
listSELECTscopeGet the specified scope assignment.
create_or_updateINSERTscope, scopeAssignmentNameCreates a scope assignment.
deleteDELETEscope, scopeAssignmentNameDeletes a scope assignment.

SELECT examples

Get the specified scope assignment.

SELECT
assigned_managed_network,
etag,
provisioning_state,
scope,
scopeAssignmentName
FROM azure.managed_network.vw_scope_assignments
WHERE scope = '{{ scope }}';

INSERT example

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

/*+ create */
INSERT INTO azure.managed_network.scope_assignments (
scope,
scopeAssignmentName,
properties
)
SELECT
'{{ scope }}',
'{{ scopeAssignmentName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified scope_assignments resource.

/*+ delete */
DELETE FROM azure.managed_network.scope_assignments
WHERE scope = '{{ scope }}'
AND scopeAssignmentName = '{{ scopeAssignmentName }}';