-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,131 additions
and
0 deletions.
There are no files selected for viewing
699 changes: 699 additions & 0 deletions
699
...OwnerEnrollmentProfile/MSFT_IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile.psm1
Large diffs are not rendered by default.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...nrollmentProfile/MSFT_IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile.schema.mof
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[]; | ||
}; |
6 changes: 6 additions & 0 deletions
6
...sources/MSFT_IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
32 changes: 32 additions & 0 deletions
32
.../DSCResources/MSFT_IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile/settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
.../Examples/Resources/IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile/1-Create.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
.../Examples/Resources/IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile/2-Update.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
.../Examples/Resources/IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile/3-Remove.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
Oops, something went wrong.