Skip to main content

android_mam_policies

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

Overview

Nameandroid_mam_policies
TypeResource
Idazure_extras.intune.android_mam_policies

Fields

NameDatatypeDescription
idstringResource Id
namestringResource name
locationstringResource Location
propertiesobjectIntune MAM iOS Policy Properties.
tagsobjectResource Tags
typestringResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECThostNameReturns Intune Android policies.
create_or_updateINSERThostName, policyNameCreates or updates AndroidMAMPolicy.
deleteDELETEhostName, policyNameDelete Android Policy

SELECT examples

Returns Intune Android policies.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_extras.intune.android_mam_policies
WHERE hostName = '{{ hostName }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.intune.android_mam_policies (
hostName,
policyName,
properties,
tags,
location
)
SELECT
'{{ hostName }}',
'{{ policyName }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

DELETE example

Deletes the specified android_mam_policies resource.

/*+ delete */
DELETE FROM azure_extras.intune.android_mam_policies
WHERE hostName = '{{ hostName }}'
AND policyName = '{{ policyName }}';