Skip to main content

jit_network_access_policies

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

Overview

Namejit_network_access_policies
TypeResource
Idazure.security.jit_network_access_policies

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
ascLocationtextfield from the properties object
jitNetworkAccessPolicyNametextfield from the properties object
kindtextKind of the resource
locationtextLocation where the resource is stored
provisioning_statetextfield from the properties object
requeststextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type
virtual_machinestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTascLocation, jitNetworkAccessPolicyName, resourceGroupName, subscriptionIdPolicies for protecting resources using Just-in-Time access control for the subscription, location
listSELECTsubscriptionIdPolicies for protecting resources using Just-in-Time access control.
list_by_regionSELECTascLocation, subscriptionIdPolicies for protecting resources using Just-in-Time access control for the subscription, location
list_by_resource_groupSELECTresourceGroupName, subscriptionIdPolicies for protecting resources using Just-in-Time access control for the subscription, location
list_by_resource_group_and_regionSELECTascLocation, resourceGroupName, subscriptionIdPolicies for protecting resources using Just-in-Time access control for the subscription, location
create_or_updateINSERTascLocation, jitNetworkAccessPolicyName, resourceGroupName, subscriptionId, data__propertiesCreate a policy for protecting resources using Just-in-Time access control
deleteDELETEascLocation, jitNetworkAccessPolicyName, resourceGroupName, subscriptionIdDelete a Just-in-Time access control policy.
initiateEXECascLocation, jitNetworkAccessPolicyInitiateType, jitNetworkAccessPolicyName, resourceGroupName, subscriptionId, data__virtualMachinesInitiate a JIT access from a specific Just-in-Time policy configuration.

SELECT examples

Policies for protecting resources using Just-in-Time access control.

SELECT
id,
name,
ascLocation,
jitNetworkAccessPolicyName,
kind,
location,
provisioning_state,
requests,
resourceGroupName,
subscriptionId,
type,
virtual_machines
FROM azure.security.vw_jit_network_access_policies
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.security.jit_network_access_policies (
ascLocation,
jitNetworkAccessPolicyName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
kind
)
SELECT
'{{ ascLocation }}',
'{{ jitNetworkAccessPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ kind }}'
;

DELETE example

Deletes the specified jit_network_access_policies resource.

/*+ delete */
DELETE FROM azure.security.jit_network_access_policies
WHERE ascLocation = '{{ ascLocation }}'
AND jitNetworkAccessPolicyName = '{{ jitNetworkAccessPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';