ProvisionIntuneDevicesV5
1.7
These are the objects created by this script:
AdminRole-OB. Intune Role created for users OB, with specific permissions copied from a custom Role
RoleAssigment-OB. Role assignment of the role AdminRole-OB.
These are the objects created by this script:
AdminRole-OB. Intune Role created for users OB, with specific permissions copied from a custom Role
RoleAssigment-OB. Role assignment of the role AdminRole-OB.
The assignment contains the following:
AdminGroup-OB. Scope (Groups). Group that contains the users that has the assignment of that OB. This group will have permission to administer the devices
ScopeGroup-OB. Members. Scope Dynamic group that contains all the users that has the ‘State’ AAD field filled with the OB’s name. This group is the scope of the assignment
Tag-TG. Scope (Tags). Tag created for every OB. The assignment has this Tag as its scope.
The script generates logs that are stored in an storage account in Azure as well as uploaded to a workspace in Log Analytics.
This script in intended to be run as a runbook in Azure
References
https://github.com/Azure/azure-powershell/issues/8486 No way to read passord with the Get-AzAutomationCredential
https://github.com/microsoft/Intune-PowerShell-SDK/blob/master/README.md
https://github.com/microsoft/Intune-PowerShell-Management/tree/master/Samples
OB Office Branch
Required modules:
Microsoft.Graph.Intune 6.1907.1.0
AzureADPreview 2.0.2.62
Az.OperationalInsights 1.3.4
AZ.Accounts 1.7.1
Installation Options
Owners
Copyright
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
Package Details
Author(s)
- Raúl Carboneras. racarb@microsoft.com
Tags
Functions
Log-Event Log-ErrorEvent Write-ResultstoHashTable Test-CompanyScopeTag Get-CompanyScopeTag New-CompanyScopeTag Test-CompanyRBACRole Get-CompanyRBACRole New-CompanyRBACRole Test-RoleAssignment Get-RoleAssignment New-RoleAssignment Update-RoleAssignmentScopeTag Update-DeviceScopeTag Build-Signature Post-LogAnalyticsData
Dependencies
This script has no dependencies.
FileList
- ProvisionIntuneDevicesV5.nuspec
- ProvisionIntuneDevicesV5.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
1.7 (current version) | 144 | 2/27/2020 |
1.5 | 20 | 2/19/2020 |