Skip to main content

enterprise_policies

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

Overview

Nameenterprise_policies
TypeResource
Idazure_extras.power_platform.enterprise_policies

Fields

NameDatatypeDescription
encryptiontextfield from the properties object
enterprisePolicyNametextfield from the properties object
health_statustextfield from the properties object
identitytextThe identity of the EnterprisePolicy.
kindtextThe Kind (type) of Enterprise Policy
locationtextThe geo-location where the resource lives
lockboxtextfield from the properties object
network_injectiontextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
system_idtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTenterprisePolicyName, resourceGroupName, subscriptionIdGet information about an EnterprisePolicy
list_by_resource_groupSELECTresourceGroupName, subscriptionIdRetrieve a list of EnterprisePolicies within a given resource group
list_by_subscriptionSELECTsubscriptionIdRetrieve a list of EnterprisePolicies within a subscription
create_or_updateINSERTenterprisePolicyName, resourceGroupName, subscriptionId, data__kindCreates an EnterprisePolicy
deleteDELETEenterprisePolicyName, resourceGroupName, subscriptionIdDelete an EnterprisePolicy
updateUPDATEenterprisePolicyName, resourceGroupName, subscriptionIdUpdates an EnterprisePolicy

SELECT examples

Retrieve a list of EnterprisePolicies within a subscription

SELECT
encryption,
enterprisePolicyName,
health_status,
identity,
kind,
location,
lockbox,
network_injection,
resourceGroupName,
subscriptionId,
system_data,
system_id,
tags
FROM azure_extras.power_platform.vw_enterprise_policies
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.power_platform.enterprise_policies (
enterprisePolicyName,
resourceGroupName,
subscriptionId,
data__kind,
tags,
location,
identity,
kind,
properties,
systemData
)
SELECT
'{{ enterprisePolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ tags }}',
'{{ location }}',
'{{ identity }}',
'{{ kind }}',
'{{ properties }}',
'{{ systemData }}'
;

UPDATE example

Updates a enterprise_policies resource.

/*+ update */
UPDATE azure_extras.power_platform.enterprise_policies
SET
tags = '{{ tags }}',
location = '{{ location }}',
identity = '{{ identity }}',
kind = '{{ kind }}',
properties = '{{ properties }}',
systemData = '{{ systemData }}'
WHERE
enterprisePolicyName = '{{ enterprisePolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified enterprise_policies resource.

/*+ delete */
DELETE FROM azure_extras.power_platform.enterprise_policies
WHERE enterprisePolicyName = '{{ enterprisePolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';