Hello All
Today, When i try to Assign sensitivity labels to Microsoft 365 groups in Azure Active Directory
Install-Module AzureADPreview
Import-Module AzureADPreview
$grpUnifiedSetting = (Get-AzureADDirectorySetting | where -Property DisplayName -Value "Group.Unified" -EQ)
$Setting = $grpUnifiedSetting
$grpUnifiedSetting.Values
I got the below error
PS C:\WINDOWS\system32> Get-AzureADDirectorySetting
Get-AzureADDirectorySetting : The term 'Get-AzureADDirectorySetting' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install-Module azureadpreview
Import-Module azureadpreview
Resolution : The correct way to connect Azure AD Preview given below
PS C:\WINDOWS\system32> AzureADPreview\Connect-AzureAD
Account Environment TenantId TenantDomain AccountType
------- ----------- -------- ------------ -----------
ramki@cloudfield.onmicrosoft.com AzureCloud 55e63bcc-d6b0-4405-b191-9ff359cf8b02 cloudmonkeys.xyz User
PS C:\WINDOWS\system32> Get-AzureADDirectorySetting
Id DisplayName TemplateId Values
-- ----------- ---------- ------
2c6b61a6-ecc0-4c1e-bbf7-60167c9e16e2 Group.Unified 62375ab9-6b52-47ed-826b-58e47e0e304b {class SettingValue {...
Comments
Post a Comment