Skip to content

Commit

Permalink
Finished config now testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jahiskey committed Oct 11, 2024
1 parent c827687 commit ab301f6
Show file tree
Hide file tree
Showing 8 changed files with 1,131 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[ClassVersion("1.0.0.0"), FriendlyName("IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile")]
class MSFT_IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile : OMI_BaseResource
{
[Key, Description("Display name for the enrollment profile.")] String DisplayName;
[Write, Description("Unique GUID for the enrollment profile. Read-Only.)] String Id;

[Write, Description("Intune AccountId GUID the enrollment profile belongs to.")] String AccountId;
[Write, Description("Description for the enrollment profile.")] String Description;
[Write, Description("The enrollment mode of devices that use this enrollment profile."), ValueMap{"corporateOwnedDedicatedDevice", "corporateOwnedFullyManaged", "corporateOwnedWorkProfile", "corporateOwnedAOSPUserlessDevice", "corporateOwnedAOSPUserAssociatedDevice"}] String EnrollmentMode;
[Write, Description("The enrollment token type for an enrollment profile."), ValueMap{"default", "corporateOwnedDedicatedDeviceWithAzureADSharedMode", "deviceStaging"}] String EnrollmentTokenType;
[Write, Description("Date time the enrollment profile was created.")] DateTime CreatedDateTime;
[Write, Description("Date time the enrollment profile was last modified.")] DateTime LastModifiedDateTime;
[Write, Description("Value of the most recently created token for this enrollment profile.")] String TokenValue;
[Write, Description("Date time the most recently created token was created.")] DateTime TokenCreationDateTime;
[Write, Description("Date time the most recently created token will expire.")] DateTime TokenExpirationDateTime;
[Write, Description("Total number of Android devices that have enrolled using this enrollment profile.")] Int32 EnrolledDeviceCount;
[Write, Description("Total number of AOSP devices that have enrolled using the current token. Valid values 0 to 20000")] Int32 EnrollmentTokenUsageCount;
[Write, Description("String used to generate a QR code for the token.")] String QrCodeContent;
[Write, Description("String used to generate a QR code for the token.")] String QrCodeImage;
[Write, Description("List of Scope Tags for this Entity instance.")] String RoleScopeTagIds[];
[Write, Description("Boolean that indicates that the Wi-Fi network should be configured during device provisioning. When set to TRUE, device provisioning will use Wi-Fi related properties to automatically connect to Wi-Fi networks. When set to FALSE or undefined, other Wi-Fi related properties will be ignored. Default value is TRUE. Returned by default.")] Boolean ConfigureWifi;
[Write, Description("String that contains the wi-fi login ssid")] String WifiSsid;
[Write, Description("String that contains the wi-fi login password")] String WifiPassword;
[Write, Description("String that contains the wi-fi security type."), ValueMap{"none", "wpa", "wep"}] String WifiSecurityType;
[Write, Description("Boolean that indicates if hidden wifi networks are enabled")] Boolean WifiHidden;
[Write, Description("Boolean indicating if this profile is an Android AOSP for Teams device profile.")] Boolean IsTeamsDeviceProfile;

[Write, Description("Present ensures the instance exists, absent ensures it is removed."), ValueMap{"Present"}, Values{"Present"}] string Ensure;
[Write, Description("Credentials of the workload's Admin"), EmbeddedInstance("MSFT_Credential")] string Credential;
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
[Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
[Write, Description("Access token used for authentication.")] String AccessTokens[];
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

# IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile

## Description

Enrollment Profile used to enroll Android Enterprise devices using Google's Cloud Management.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"resourceName": "IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile",
"description": "Enrollment Profile used to enroll Android Enterprise devices using Google's Cloud Management.",
"permissions": {
"graph": {
"delegated": {
"read": [
{
"name": "DeviceManagementConfiguration.Read.All"
}
],
"update": [
{
"name": "DeviceManagementConfiguration.ReadWrite.All"
}
]
},
"application": {
"read": [
{
"name": "DeviceManagementConfiguration.Read.All"
}
],
"update": [
{
"name": "DeviceManagementConfiguration.ReadWrite.All"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<#
This example is used to test new resources and showcase the usage of new resources being worked on.
It is not meant to use as a production baseline.
#>

Configuration Example
{
param(
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)

Import-DscResource -ModuleName Microsoft365DSC
node localhost
{
IntuneDeviceManagementAndroidDeviceOwnerEnrollmentProfile 'CreateProfile'
{
Id = "164655f7-1232-4d56-ae8f-b095196a0309";
DisplayName = "Android Owner Enrollment Profile"
Description = "Profile for enrolling Android devices"
TokenExpirationDateTime = "2024-12-31T23:59:59Z"
TokenValue = "your-token-value"
EnrollmentMode = "corporateOwnedWorkProfile"
QrCodeContent = "your-qr-code-content"
WifiSsid = "your-wifi-ssid"
WifiPassword = "your-wifi-password"
WifiSecurityType = "wpa"
Ensure = "Present";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<#
This example is used to test new resources and showcase the usage of new resources being worked on.
It is not meant to use as a production baseline.
#>

Configuration Example
{
param(
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC
node localhost
{
IntuneDeviceManagementAndroidDeviceOwnerEnrollmentProfile 'UpdateProfile'
{
Id = "164655f7-1232-4d56-ae8f-b095196a0309";
DisplayName = "Updated Android Owner Enrollment Profile"
Description = "Updated Profile for enrolling Android devices"
TokenExpirationDateTime = "2024-12-31T23:59:59Z"
TokenValue = "your-updated-token-value"
EnrollmentMode = "corporateOwnedWorkProfile"
QrCodeContent = "your-updated-qr-code-content"
WifiSsid = "your-updated-wifi-ssid"
WifiPassword = "your-updated-wifi-password"
WifiSecurityType = "wpa"
Ensure = "Present";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<#
This example is used to test new resources and showcase the usage of new resources being worked on.
It is not meant to use as a production baseline.
#>

Configuration Example
{
param(
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC
node localhost
{
IntuneDeviceManagementAndroidDeviceOwnerEnrollmentProfile 'RemoveProfile'
{
Id = "164655f7-1232-4d56-ae8f-b095196a0309";
DisplayName = "Android Owner Enrollment Profile"
Ensure = "Absent"
}
}
}
Loading

0 comments on commit ab301f6

Please sign in to comment.