The skript enables the role specified by roleName
for a duration given by activationDuration
and a reason given by activationReason
.
.\Enable-AzureAdminRole.ps1 -roleName [string] -activationReason [string] -activationDuration [int (1-8 Hours)]
.\Enable-AzureAdminRole.ps1 -roleName "Intune Administrator" -activationReason "Daily" -activationDuration 8