IntuneDeviceComplianceNotificationMessageTemplate¶
Parameters¶
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| BrandingOptions | Write | String[] | The Message Template Branding Options. Branding is defined in the Intune Admin Console. Possible values are: none, includeCompanyLogo, includeCompanyName, includeContactInformation, includeCompanyPortalLink, includeDeviceDetails | none, includeCompanyLogo, includeCompanyName, includeContactInformation, includeCompanyPortalLink, includeDeviceDetails |
| LocalizedNotificationMessages | Write | MSFT_DeviceManagementNotificationMessageTemplate[] | The localized notification message templates. | |
| Description | Write | String | Display name for the Notification Message Template. | |
| DisplayName | Key | String | Display name for the Notification Message Template. | |
| RoleScopeTagIds | Write | String[] | List of Scope Tags for this Entity instance. | |
| Id | Write | String | The unique identifier for an entity. Read-only. | |
| Ensure | Write | String | Present ensures the policy exists, absent ensures it is removed. | Present, Absent |
| Credential | Write | PSCredential | Credentials of the Admin | |
| ApplicationId | Write | String | Id of the Azure Active Directory application to authenticate with. | |
| TenantId | Write | String | Id of the Azure Active Directory tenant used for authentication. | |
| ApplicationSecret | Write | PSCredential | Secret of the Azure Active Directory tenant used for authentication. | |
| CertificateThumbprint | Write | String | Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication. | |
| CertificatePassword | Write | PSCredential | Username can be made up to anything but password will be used for CertificatePassword | |
| CertificatePath | Write | String | Path to certificate used in service principal usually a PFX file. | |
| ManagedIdentity | Write | Boolean | Managed ID being used for authentication. | |
| AccessTokens | Write | String[] | Access token used for authentication. |
Embedded Instances¶
MSFT_DeviceManagementNotificationMessageTemplate¶
Parameters¶
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| IsDefault | Write | Boolean | If this is the default message template. | |
| Locale | Write | String | The locale of the message template. | ar-sa, bg-bg, cs-cz, da-dk, de-de, el-gr, en-gb, en-us, es-es, es-mx, et-ee, fi-fi, fr-ca, fr-fr, he-il, hr-hr, hu-hu, it-it, ja-jp, ko-kr, lt-lt, lv-lv, nb-no, nl-nl, pl-pl, pt-br, pt-pt, ro-ro, sk-sk, sl-si, ru-ru, sr-Latn-rs, sv-se, th-th, tr-tr, uk-ua, zh-cn, zh-tw |
| MessageTemplate | Write | String | The body of the message template | |
| Subject | Write | String | The subject of the message template. |
Description¶
Intune Device Compliance Notification Message Template
Permissions¶
Graph¶
To authenticate with the Graph API, this resource requires the following permissions:
Delegated permissions¶
- Read
-
DeviceManagementServiceConfig.Read.All, GroupMember.Read.All, DeviceManagementRBAC.Read.All
-
Update
- DeviceManagementServiceConfig.ReadWrite.All, GroupMember.Read.All, DeviceManagementRBAC.Read.All
Application permissions¶
- Read
-
DeviceManagementServiceConfig.Read.All, GroupMember.Read.All, DeviceManagementRBAC.Read.All
-
Update
- DeviceManagementServiceConfig.ReadWrite.All, GroupMember.Read.All, DeviceManagementRBAC.Read.All
Examples¶
Example 1¶
This example creates a new Device Compliance Notification Message Template.
Configuration Example
{
param
(
[Parameter()]
[System.String]
$ApplicationId,
[Parameter()]
[System.String]
$TenantId,
[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC
Node localhost
{
IntuneDeviceComplianceNotificationMessageTemplate 'IntuneDeviceComplianceNotificationMessageTemplate-Example'
{
BrandingOptions = @("includeCompanyName","includeContactInformation","includeCompanyPortalLink");
LocalizedNotificationMessages = @(
MSFT_DeviceManagementNotificationMessageTemplate{
MessageTemplate = "Ihr Gerät erfüllt die Sicherheitsrichtlinien von Contoso nicht. Bitte wenden Sie sich an den Service Desk."
IsDefault = $True
Subject = "Ihr Gerät ist nicht konform"
Locale = "de-de"
}
MSFT_DeviceManagementNotificationMessageTemplate{
MessageTemplate = "Your device does not meet the Contoso security policy. Please contact the Service Desk."
IsDefault = $False
Subject = "Your device is not compliant"
Locale = "en-us"
}
);
Description = "";
DisplayName = "Non-compliance Notification";
Ensure = "Present";
RoleScopeTagIds = @("0");
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Example 2¶
This example creates a new Device Enrollment Status Page.
Configuration Example
{
param
(
[Parameter()]
[System.String]
$ApplicationId,
[Parameter()]
[System.String]
$TenantId,
[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC
Node localhost
{
IntuneDeviceComplianceNotificationMessageTemplate 'IntuneDeviceComplianceNotificationMessageTemplate-Example'
{
BrandingOptions = @("includeCompanyName","includeContactInformation","includeCompanyPortalLink");
LocalizedNotificationMessages = @(
MSFT_DeviceManagementNotificationMessageTemplate{
MessageTemplate = "Ihr Gerät erfüllt die Sicherheitsrichtlinien von Contoso nicht. Bitte wenden Sie sich an den Service Desk."
IsDefault = $False # Updated Property
Subject = "Ihr Gerät ist nicht konform"
Locale = "de-de"
}
MSFT_DeviceManagementNotificationMessageTemplate{
MessageTemplate = "Your device does not meet the Contoso security policy. Please contact the Service Desk."
IsDefault = $True # Updated Property
Subject = "Your device is not compliant"
Locale = "en-us"
}
);
Description = "";
DisplayName = "Non-compliance Notification";
Ensure = "Present";
RoleScopeTagIds = @("0");
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Example 3¶
This example creates a new Device Enrollment Status Page.
Configuration Example
{
param
(
[Parameter()]
[System.String]
$ApplicationId,
[Parameter()]
[System.String]
$TenantId,
[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC
Node localhost
{
IntuneDeviceComplianceNotificationMessageTemplate 'IntuneDeviceComplianceNotificationMessageTemplate-Example'
{
DisplayName = "Non-compliance Notification";
Ensure = "Absent";
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}