Skip to main content

ios_mam_policies

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

Overview

Nameios_mam_policies
TypeResource
Idazure_extras.intune.ios_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 iOSPolicies.
create_or_updateINSERThostName, policyNameCreates or updates iOSMAMPolicy.
deleteDELETEhostName, policyNameDelete Ios Policy

SELECT examples

Returns Intune iOSPolicies.

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

INSERT example

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

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

DELETE example

Deletes the specified ios_mam_policies resource.

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