microsoft / Microsoft365DSC

Manages, configures, extracts and monitors Microsoft 365 tenant configurations
https://aka.ms/M365DSC
MIT License
1.59k stars 500 forks source link

Unable to retrieve SharePoint Admin Url. Check if the Graph can be contacted successfully. #2183

Closed harsh-shahinm closed 2 years ago

harsh-shahinm commented 2 years ago

Details of the scenario you tried and the problem that is occurring

I am trying to Export the current configuration from a tenant and being hit by the below error regarding SPO. At this point the temp file is also not being created as well.

Verbose logs showing the problem

VERBOSE: {DSCParser} version 1.3.0.5 VERBOSE: Populating RepositorySourceLocation property for module DSCParser. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\DSCParser\1.3.0.5\modules\DSCParser.psm1'. VERBOSE: {ExchangeOnlineManagement} version 2.0.5 VERBOSE: Populating RepositorySourceLocation property for module ExchangeOnlineManagement. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5.\netFramework\Exchange OnlineManagement.psm1'. VERBOSE: {Microsoft.Graph.Applications} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Applications. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Applications\1.11.0./Microsoft.Graph. Applications.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Applications. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Applications\1.10.0./Microsoft.Graph. Applications.psm1'. VERBOSE: {Microsoft.Graph.Authentication} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Authentication. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Authentication\1.11.0./Microsoft.Grap h.Authentication.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Authentication. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Authentication\1.10.0./Microsoft.Grap h.Authentication.psm1'. VERBOSE: {Microsoft.Graph.DeviceManagement} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.DeviceManagement. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.DeviceManagement\1.10.0./Microsoft.Gr aph.DeviceManagement.psm1'. VERBOSE: {Microsoft.Graph.DeviceManagement.Administration} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.DeviceManagement.Administration. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.DeviceManagement.Administration\1.10.0 ./Microsoft.Graph.DeviceManagement.Administration.psm1'. VERBOSE: {Microsoft.Graph.DeviceManagement.Enrolment} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.DeviceManagement.Enrolment. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.DeviceManagement.Enrolment\1.10.0./Mi crosoft.Graph.DeviceManagement.Enrolment.psm1'. VERBOSE: {Microsoft.Graph.Devices.CorporateManagement} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Devices.CorporateManagement. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Devices.CorporateManagement\1.11.0./M icrosoft.Graph.Devices.CorporateManagement.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Devices.CorporateManagement. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Devices.CorporateManagement\1.10.0./M icrosoft.Graph.Devices.CorporateManagement.psm1'. VERBOSE: {Microsoft.Graph.Groups} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Groups. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Groups\1.10.0./Microsoft.Graph.Groups .psm1'. VERBOSE: {Microsoft.Graph.Identity.DirectoryManagement} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Identity.DirectoryManagement. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Identity.DirectoryManagement\1.10.0./ Microsoft.Graph.Identity.DirectoryManagement.psm1'. VERBOSE: {Microsoft.Graph.Identity.Governance} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Identity.Governance. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Identity.Governance\1.10.0./Microsoft .Graph.Identity.Governance.psm1'. VERBOSE: {Microsoft.Graph.Identity.SignIns} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Identity.SignIns. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Identity.SignIns\1.10.0./Microsoft.Gr aph.Identity.SignIns.psm1'. VERBOSE: {Microsoft.Graph.Planner} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Planner. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Planner\1.10.0./Microsoft.Graph.Plann er.psm1'. VERBOSE: {Microsoft.Graph.Teams} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Teams. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Teams\1.10.0./Microsoft.Graph.Teams.p sm1'. VERBOSE: {Microsoft.Graph.Users} version 1.10.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Users. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Users\1.11.0./Microsoft.Graph.Users.p sm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Microsoft.Graph.Users. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Users\1.10.0./Microsoft.Graph.Users.p sm1'. VERBOSE: {Microsoft.PowerApps.Administration.PowerShell} version 2.0.150 VERBOSE: Populating RepositorySourceLocation property for module Microsoft.PowerApps.Administration.PowerShell. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.PowerApps.Administration.PowerShell\2.0.150\ Microsoft.PowerApps.Administration.Powershell.psm1'. VERBOSE: {MicrosoftTeams} version 4.5.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module MicrosoftTeams. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\4.5.0./MicrosoftTeams.psm1'. VERBOSE: {MSCloudLoginAssistant} version 1.0.87 VERBOSE: Populating RepositorySourceLocation property for module MSCloudLoginAssistant. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.87\ConnectionProfile.psm1'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.87\Workloads\Azure.psm1'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.87\Workloads\AzureAD.psm1'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.87\Workloads\ExchangeOnline. psm1'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.87\Workloads\Intune.psm1'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.87\Workloads\MicrosoftGraph. psm1'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.87\Workloads\PnP.psm1'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.87\Workloads\PowerPlatform.p sm1'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.87\Workloads\SecurityComplia nce.psm1'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.87\Workloads\Teams.psm1'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.0.87\MSCloudLoginAssistant.psm 1'. VERBOSE: {PnP.PowerShell} version 1.11.0 VERBOSE: Cannot verify the Microsoft .NET Framework version 4.6.1 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module PnP.PowerShell. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PnP.PowerShell\1.11.0\Framework\PnP.PowerShell.dll'. VERBOSE: {ReverseDSC} version 2.0.0.11 VERBOSE: Populating RepositorySourceLocation property for module ReverseDSC. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\ReverseDSC\2.0.0.11\ReverseDSC.Core.psm1'. Disconnect-MgGraph : No application to sign out from. At C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\modules\M365DSCUtil.psm1:1080 char:9

WARNING: Unable to resolve package source 'https://www.powershellgallery.com/api/v2'. No match was found for the specified search criteria and module name 'Microsoft365DSC'. Try Get-PSRepository to see all available registered module repositories.

VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_AADApplic ation\MSFT_AADApplication.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_AADAuthor izationPolicy\MSFT_AADAuthorizationPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_AADCondit ionalAccessPolicy\MSFT_AADConditionalAccessPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_AADGroup\ MSFT_AADGroup.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_AADGroupL ifecyclePolicy\MSFT_AADGroupLifecyclePolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_AADGroups NamingPolicy\MSFT_AADGroupsNamingPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_AADGroups Settings\MSFT_AADGroupsSettings.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_AADNamedL ocationPolicy\MSFT_AADNamedLocationPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_AADRoleDe finition\MSFT_AADRoleDefinition.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_AADSecuri tyDefaults\MSFT_AADSecurityDefaults.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_AADTenant Details\MSFT_AADTenantDetails.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_AADTokenL ifetimePolicy\MSFT_AADTokenLifetimePolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOAccept edDomain\MSFT_EXOAcceptedDomain.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOActive SyncDeviceAccessRule\MSFT_EXOActiveSyncDeviceAccessRule.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOAddres sBookPolicy\MSFT_EXOAddressBookPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOAddres sList\MSFT_EXOAddressList.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOAntiPh ishPolicy\MSFT_EXOAntiPhishPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOAntiPh ishRule\MSFT_EXOAntiPhishRule.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOApplic ationAccessPolicy\MSFT_EXOApplicationAccessPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOAtpPol icyForO365\MSFT_EXOAtpPolicyForO365.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOAuthen ticationPolicy\MSFT_EXOAuthenticationPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOAuthen ticationPolicyAssignment\MSFT_EXOAuthenticationPolicyAssignment.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOAvaila bilityAddressSpace\MSFT_EXOAvailabilityAddressSpace.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOAvaila bilityConfig\MSFT_EXOAvailabilityConfig.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOCASMai lboxPlan\MSFT_EXOCASMailboxPlan.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOCASMai lboxSettings\MSFT_EXOCASMailboxSettings.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOClient AccessRule\MSFT_EXOClientAccessRule.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXODataCl assification\MSFT_EXODataClassification.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXODataEn cryptionPolicy\MSFT_EXODataEncryptionPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXODistri butionGroup\MSFT_EXODistributionGroup.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXODkimSi gningConfig\MSFT_EXODkimSigningConfig.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOEmailA ddressPolicy\MSFT_EXOEmailAddressPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOGlobal AddressList\MSFT_EXOGlobalAddressList.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOHosted ConnectionFilterPolicy\MSFT_EXOHostedConnectionFilterPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOHosted ContentFilterPolicy\MSFT_EXOHostedContentFilterPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOHosted ContentFilterRule\MSFT_EXOHostedContentFilterRule.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOHosted OutboundSpamFilterPolicy\MSFT_EXOHostedOutboundSpamFilterPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOHosted OutboundSpamFilterRule\MSFT_EXOHostedOutboundSpamFilterRule.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOInboun dConnector\MSFT_EXOInboundConnector.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOIntraO rganizationConnector\MSFT_EXOIntraOrganizationConnector.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOIRMCon figuration\MSFT_EXOIRMConfiguration.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOJourna lRule\MSFT_EXOJournalRule.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOMailbo xPlan\MSFT_EXOMailboxPlan.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOMailTi ps\MSFT_EXOMailTips.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOMalwar eFilterPolicy\MSFT_EXOMalwareFilterPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOMalwar eFilterRule\MSFT_EXOMalwareFilterRule.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOMessag eClassification\MSFT_EXOMessageClassification.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOMobile DeviceMailboxPolicy\MSFT_EXOMobileDeviceMailboxPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOOfflin eAddressBook\MSFT_EXOOfflineAddressBook.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOOMECon figuration\MSFT_EXOOMEConfiguration.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOOnPrem isesOrganization\MSFT_EXOOnPremisesOrganization.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOOrgani zationConfig\MSFT_EXOOrganizationConfig.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOOrgani zationRelationship\MSFT_EXOOrganizationRelationship.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOOutbou ndConnector\MSFT_EXOOutboundConnector.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOOwaMai lboxPolicy\MSFT_EXOOwaMailboxPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOPartne rApplication\MSFT_EXOPartnerApplication.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOPerime terConfiguration\MSFT_EXOPerimeterConfiguration.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOPolicy TipConfig\MSFT_EXOPolicyTipConfig.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOQuaran tinePolicy\MSFT_EXOQuarantinePolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXORemote Domain\MSFT_EXORemoteDomain.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOResour ceConfiguration\MSFT_EXOResourceConfiguration.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXORoleAs signmentPolicy\MSFT_EXORoleAssignmentPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOSafeAt tachmentPolicy\MSFT_EXOSafeAttachmentPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOSafeAt tachmentRule\MSFT_EXOSafeAttachmentRule.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOSafeLi nksPolicy\MSFT_EXOSafeLinksPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOSafeLi nksRule\MSFT_EXOSafeLinksRule.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOShared Mailbox\MSFT_EXOSharedMailbox.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOSharin gPolicy\MSFT_EXOSharingPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOTransp ortConfig\MSFT_EXOTransportConfig.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_EXOTransp ortRule\MSFT_EXOTransportRule.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneAnt ivirusPolicyWindows10SettingCatalog\MSFT_IntuneAntivirusPolicyWindows10SettingCatalog.psm1'. VERBOSE: Importing function 'Compare-M365DSCComplexObject'. VERBOSE: Importing function 'Convert-M365DSCDRGComplexTypeToHashtable'. VERBOSE: Importing function 'Convert-M365DSCParamsToSettingInstance'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Format-M365DSCIntuneSettingCatalogPolicySettings'. VERBOSE: Importing function 'Get-DeviceManagementConfigurationSettingInstanceValue'. VERBOSE: Importing function 'Get-M365DSCAdditionalProperties'. VERBOSE: Importing function 'Get-M365DSCDRGComplexTypeToHashtable'. VERBOSE: Importing function 'Get-M365DSCDRGComplexTypeToString'. VERBOSE: Importing function 'Get-M365DSCDRGSimpleObjectTypeToString'. VERBOSE: Importing function 'Get-MgDeviceManagementConfigurationPolicy'. VERBOSE: Importing function 'Get-MgDeviceManagementConfigurationPolicyAssignments'. VERBOSE: Importing function 'Get-MgDeviceManagementConfigurationPolicySetting'. VERBOSE: Importing function 'Get-MgDeviceManagementConfigurationSettingDefinition'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'New-MgDeviceManagementConfigurationPolicy'. VERBOSE: Importing function 'Remove-MgDeviceManagementConfigurationPolicy'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-M365DSCComplexObjectHasValues'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Importing function 'Update-MgDeviceManagementConfigurationPolicy'. VERBOSE: Importing function 'Update-MgDeviceManagementConfigurationPolicyAssignments'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneApp ConfigurationPolicy\MSFT_IntuneAppConfigurationPolicy.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneApp licationControlPolicyWindows10\MSFT_IntuneApplicationControlPolicyWindows10.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneApp ProtectionPolicyAndroid\MSFT_IntuneAppProtectionPolicyAndroid.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneApp ProtectionPolicyiOS\MSFT_IntuneAppProtectionPolicyiOS.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneASR RulesPolicyWindows10\MSFT_IntuneASRRulesPolicyWindows10.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneAtt ackSurfaceReductionRulesPolicyWindows10ConfigManager\MSFT_IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceAndAppManagementAssignmentFilter\MSFT_IntuneDeviceAndAppManagementAssignmentFilter.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceCategory\MSFT_IntuneDeviceCategory.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceCompliancePolicyAndroid\MSFT_IntuneDeviceCompliancePolicyAndroid.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceCompliancePolicyAndroidDeviceOwner\MSFT_IntuneDeviceCompliancePolicyAndroidDeviceOwner.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceCompliancePolicyAndroidWorkProfile\MSFT_IntuneDeviceCompliancePolicyAndroidWorkProfile.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceCompliancePolicyiOs\MSFT_IntuneDeviceCompliancePolicyiOs.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceCompliancePolicyMacOS\MSFT_IntuneDeviceCompliancePolicyMacOS.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceCompliancePolicyWindows10\MSFT_IntuneDeviceCompliancePolicyWindows10.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-M365DSCAssignmentsAsHashtable'. VERBOSE: Importing function 'Get-M365DSCAssignmentsAsString'. VERBOSE: Importing function 'Get-M365DSCIntuneDeviceCompliancePolicyWindows10AdditionalProperties'. VERBOSE: Importing function 'Get-MgDeviceManagementPolicyAssignments'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Importing function 'Update-MgDeviceManagementPolicyAssignments'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceConfigurationPolicyAndroidDeviceOwner\MSFT_IntuneDeviceConfigurationPolicyAndroidDeviceOwner.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceConfigurationPolicyAndroidWorkProfile\MSFT_IntuneDeviceConfigurationPolicyAndroidWorkProfile.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceConfigurationPolicyiOS\MSFT_IntuneDeviceConfigurationPolicyiOS.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceConfigurationPolicyWindows10\MSFT_IntuneDeviceConfigurationPolicyWindows10.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceEnrollmentLimitRestriction\MSFT_IntuneDeviceEnrollmentLimitRestriction.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneDev iceEnrollmentPlatformRestriction\MSFT_IntuneDeviceEnrollmentPlatformRestriction.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneExp loitProtectionPolicyWindows10SettingCatalog\MSFT_IntuneExploitProtectionPolicyWindows10SettingCatalog.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_IntuneSet tingCatalogASRRulesPolicyWindows10\MSFT_IntuneSettingCatalogASRRulesPolicyWindows10.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_O365Admin AuditLogConfig\MSFT_O365AdminAuditLogConfig.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_O365OrgCu stomizationSetting\MSFT_O365OrgCustomizationSetting.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.720.1\DSCResources\MSFT_ODSetting s\MSFT_ODSettings.psm1'. VERBOSE: Importing function 'Export-TargetResource'. VERBOSE: Importing function 'Get-TargetResource'. VERBOSE: Importing function 'Set-TargetResource'. VERBOSE: Importing function 'Test-TargetResource'. Connecting to {ExchangeOnline}...✅ Connecting to {MicrosoftGraph}...✅ Connecting to {PnP}...❌ Unable to retrieve SharePoint Admin Url. Check if the Graph can be contacted successfully. Partial Export file was saved at: C:\Users!c14846\AppData\Local\Temp\462ed34b-7c39-45d6-8859-b8b505e82990.partial.ps1

Suggested solution to the issue

N/A

The DSC configuration that is used to reproduce the issue (as detailed as possible)


# insert configuration here
```Export-M365DSCConfiguration -Components @("AADApplication", "AADAuthorizationPolicy", "AADConditionalAccessPolicy", "AADGroup", "AADGroupLifecyclePolicy", "AADGroupsNamingPolicy", "AADGroupsSettings", "AADNamedLocationPolicy", "AADRoleDefinition", "AADSecurityDefaults", "AADTenantDetails", "AADTokenLifetimePolicy", "EXOAcceptedDomain", "EXOActiveSyncDeviceAccessRule", "EXOAddressBookPolicy", "EXOAddressList", "EXOAntiPhishPolicy", "EXOAntiPhishRule", "EXOApplicationAccessPolicy", "EXOAtpPolicyForO365", "EXOAuthenticationPolicy", "EXOAuthenticationPolicyAssignment", "EXOAvailabilityAddressSpace", "EXOAvailabilityConfig", "EXOCASMailboxPlan", "EXOCASMailboxSettings", "EXOClientAccessRule", "EXODataClassification", "EXODataEncryptionPolicy", "EXODistributionGroup", "EXODkimSigningConfig", "EXOEmailAddressPolicy", "EXOGlobalAddressList", "EXOHostedConnectionFilterPolicy", "EXOHostedContentFilterPolicy", "EXOHostedContentFilterRule", "EXOHostedOutboundSpamFilterPolicy", "EXOHostedOutboundSpamFilterRule", "EXOInboundConnector", "EXOIntraOrganizationConnector", "EXOIRMConfiguration", "EXOJournalRule", "EXOMailboxPlan", "EXOMailTips", "EXOMalwareFilterPolicy", "EXOMalwareFilterRule", "EXOMessageClassification", "EXOMobileDeviceMailboxPolicy", "EXOOfflineAddressBook", "EXOOMEConfiguration", "EXOOnPremisesOrganization", "EXOOrganizationConfig", "EXOOrganizationRelationship", "EXOOutboundConnector", "EXOOwaMailboxPolicy", "EXOPartnerApplication", "EXOPerimeterConfiguration", "EXOPolicyTipConfig", "EXOQuarantinePolicy", "EXORemoteDomain", "EXOResourceConfiguration", "EXORoleAssignmentPolicy", "EXOSafeAttachmentPolicy", "EXOSafeAttachmentRule", "EXOSafeLinksPolicy", "EXOSafeLinksRule", "EXOSharedMailbox", "EXOSharingPolicy", "EXOTransportConfig", "EXOTransportRule", "IntuneAntivirusPolicyWindows10SettingCatalog", "IntuneAppConfigurationPolicy", "IntuneApplicationControlPolicyWindows10", "IntuneAppProtectionPolicyAndroid", "IntuneAppProtectionPolicyiOS", "IntuneASRRulesPolicyWindows10", "IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager", "IntuneDeviceAndAppManagementAssignmentFilter", "IntuneDeviceCategory", "IntuneDeviceCompliancePolicyAndroid", "IntuneDeviceCompliancePolicyAndroidDeviceOwner", "IntuneDeviceCompliancePolicyAndroidWorkProfile", "IntuneDeviceCompliancePolicyiOs", "IntuneDeviceCompliancePolicyMacOS", "IntuneDeviceCompliancePolicyWindows10", "IntuneDeviceConfigurationPolicyAndroidDeviceOwner", "IntuneDeviceConfigurationPolicyAndroidWorkProfile", "IntuneDeviceConfigurationPolicyiOS", "IntuneDeviceConfigurationPolicyWindows10", "IntuneDeviceEnrollmentLimitRestriction", "IntuneDeviceEnrollmentPlatformRestriction", "IntuneExploitProtectionPolicyWindows10SettingCatalog", "IntuneSettingCatalogASRRulesPolicyWindows10", "O365AdminAuditLogConfig", "O365OrgCustomizationSetting", "ODSettings") -Credential $Credential -Path "E:\Scripts\DSCConfiguration\" -Verbose

#### The operating system the target node is running
<!--
    Please provide as much as possible about the target node, for example
    edition, version, build and language.
    On OS with WMF 5.1 the following command can help get this information.

    Get-ComputerInfo -Property @(
        'OsName',
        'OsOperatingSystemSKU',
        'OSArchitecture',
        'WindowsVersion',
        'WindowsBuildLabEx',
        'OsLanguage',
        'OsMuiLanguages')
-->

OsName               : Microsoft Windows Server 2016 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture       : 64-bit
WindowsBuildLabEx    : 14393.5246.amd64fre.rs1_release.220701-1744
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

#### Version of the DSC module that was used ('dev' if using current dev branch)
andikrueger commented 2 years ago

Did you grant the permissions for the Graph and PnP PowerShell within your tenant?

harsh-shahinm commented 2 years ago

Below are the Graph permissions Agreement.Read.All Application.Read.All Application.ReadWrite.All Channel.Delete.All ChannelSettings.Read.All DeviceManagementApps.ReadWrite.All DeviceManagementConfiguration.ReadWrite.All DeviceManagementManagedDevices.ReadWrite.All DeviceManagementServiceConfig.ReadWrite.All Directory.Read.All Directory.ReadWrite.All Domain.Read.All Group.Read.All Group.ReadWrite.All openid Organization.Read.All Organization.ReadWrite.All Policy.Read.All Policy.ReadWrite.ApplicationConfiguration Policy.ReadWrite.ConditionalAccess profile RoleManagement.Read.Directory RoleManagement.ReadWrite.Directory Sites.FullControl.All Tasks.Read Tasks.ReadWrite TeamsTab.Read.All User.Read User.Read.All User.ReadWrite.All email

PnP Permissions are also fine. anything specific around PnP permissions that I am looking at?

andikrueger commented 2 years ago

Hmm. This looks good. Could you split the export into smaller parts to see, which resource causes the error?

harsh-shahinm commented 2 years ago

I have tried the export for AAD, EXO, Teams separately. This works fine. But when I execute the below

Export-M365DSCConfiguration -Credential $Global:Credenttial -Workloads SPO -Path "E:\Scripts\DSCConfiguration\" -FileName "m365_spo_only.ps1" -Verbose

Error recvd Connecting to {PnP}...❌ Unable to retrieve SharePoint Admin Url. Check if the Graph can be contacted successfully. Partial Export file was saved at: C:\Users\xxxxxx\AppData\Local\Temp\3\3cb73618-abd5-477a-b2a6-94be7f99c1da.partial.ps1

Further to that when I run the below

Export-M365DSCConfiguration -Credential $Global:Credenttial -Workloads O365 -Path "E:\Scripts\DSCConfiguration\" -FileName "inm-m365_O35Administration_only.ps1" -Verbose

Result I get One or more errors occurred. Partial Export file was saved at: C:\Users\xxxxxx\AppData\Local\Temp\3\33e81116-d39f-4000-bd07-7b5c57b9b53e.partial.ps1

Checking the location no file is generated..

andikrueger commented 2 years ago

You are missing the domain.read.all permission for the Get-MgDomain call within the MSCloudLoginAssistant to retrieve the SPO Admin URL.

Please make sure to have the latest set of permissions: https://microsoft.github.io/Microsoft365DSC/user-guide/get-started/authentication-and-permissions/#Determine-Required-Permissions

and request those by using the update-M365DSCAllowedGraphScopes cmdLet

harsh-shahinm commented 2 years ago

Hi,

I have checked and under the GRaph

Read domains. Resource application Microsoft Graph Claim value Domain.Read.All Permission display name Read domains. Permission description Allows the app to read all domain properties on behalf of the signed-in user. Permission type Delegated. Delegated type means that this application may act on behalf of a user as the user him or herself for this particular permission. Permissions granted through User Consent. A permission granted through user consent means a user signed in to this application with his or her organizational credentials and granted it the particular permission. Granted by 1 total user(s)

andikrueger commented 2 years ago

This function with MSCloudLoginAssistant is causing your issue: https://github.com/microsoft/MSCloudLoginAssistant/blob/Dev/Modules/MSCloudLoginAssistant/MSCloudLoginAssistant.psm1#L299-L397

Could you try to run the following commands and share the output:

Connect-M365Tenant -Workload 'MicrosoftGraph' -Credential $Credential
[Array]$defaultDomain = Get-MgDomain | Where-Object { $_.Id -like "*.onmicrosoft.com" -and $_.IsInitial -eq $true } 
harsh-shahinm commented 2 years ago

PS C:\Windows\system32> Connect-M365Tenant -Workload 'MicrosoftGraph' -Credential $Credential [Array]$defaultDomain = Get-MgDomain | Where-Object { $.Id -like "*.onmicrosoft.com" -and $.IsInitial -eq $true } Get-MgDomain : One or more errors occurred. At line:2 char:1

andikrueger commented 2 years ago

Could you try to run the following:

connect-msgraph -scopes “Domain.Read.All”
Get-MgDomain
harsh-shahinm commented 2 years ago

Getting the same error.

Checked the perms and see the below

PS C:\Windows\system32> $scopes Agreement.Read.All,Application.Read.All,Application.ReadWrite.All,Channel.Delete.All,ChannelSettings.Read.All,DeviceManagementApps.R eadWrite.All,DeviceManagementConfiguration.ReadWrite.All,DeviceManagementManagedDevices.ReadWrite.All,DeviceManagementServiceConfig. ReadWrite.All,Directory.Read.All,Directory.ReadWrite.All,Domain.Read.All,Group.Read.All,Group.ReadWrite.All,openid,Organization.Read .All,Organization.ReadWrite.All,Policy.Read.All,Policy.ReadWrite.ApplicationConfiguration,Policy.ReadWrite.ConditionalAccess,profile ,RoleManagement.Read.Directory,RoleManagement.ReadWrite.Directory,Sites.FullControl.All,Tasks.Read,Tasks.ReadWrite,TeamsTab.Read.All ,User.Read,User.Read.All,User.ReadWrite.All,email

PS C:\Windows\system32> $details

ClientId : 14d82eec-204b-4c2f-b7e8-296a70dab67e TenantId : 43eba056-5ca4-4871-89ac-bdd09160ce7e CertificateThumbprint : Scopes : {Agreement.Read.All, Application.Read.All, Application.ReadWrite.All, Channel.Delete.All...} AuthType : Delegated AuthProviderType : InteractiveAuthenticationProvider CertificateName : Account : xxxxxxxxxxxxxxxxxxxxxxxxxxx AppName : Microsoft Graph PowerShell ContextScope : CurrentUser Certificate : PSHostVersion : 5.1.14393.5127 ClientTimeout : 00:05:00

Appreciate all your guidance and help,

hoiber commented 2 years ago

having the same issue as well

SMEA-KM commented 2 years ago

I too, and the Partial Export File was not created

`PS C:\Users\xxxxx> Export-M365DSCConfiguration -Components @("AADApplication", "AADAuthorizationPolicy", "AADConditionalAccessPolicy", "AADGroup", "AADGroupLifecyclePolicy", "AADGroupsNamingPolicy", "AADGroupsSettings", "AADNamedLocationPolicy", "AADRoleDefinition", "AADSecurityDefaults", "AADServicePrincipal", "AADTenantDetails", "AADTokenLifetimePolicy", "EXOAcceptedDomain", "EXOActiveSyncDeviceAccessRule", "EXOAddressBookPolicy", "EXOAddressList", "EXOAntiPhishPolicy", "EXOAntiPhishRule", "EXOApplicationAccessPolicy", "EXOAtpPolicyForO365", "EXOAuthenticationPolicy", "EXOAuthenticationPolicyAssignment", "EXOAvailabilityAddressSpace", "EXOAvailabilityConfig", "EXOCASMailboxPlan", "EXOCASMailboxSettings", "EXOClientAccessRule", "EXODataClassification", "EXODataEncryptionPolicy", "EXODistributionGroup", "EXODkimSigningConfig", "EXOEmailAddressPolicy", "EXOGlobalAddressList", "EXOHostedConnectionFilterPolicy", "EXOHostedContentFilterPolicy", "EXOHostedContentFilterRule", "EXOHostedOutboundSpamFilterPolicy", "EXOHostedOutboundSpamFilterRule", "EXOInboundConnector", "EXOIntraOrganizationConnector", "EXOIRMConfiguration", "EXOJournalRule", "EXOMailboxPlan", "EXOMailboxSettings", "EXOMailTips", "EXOMalwareFilterPolicy", "EXOMalwareFilterRule", "EXOManagementRole", "EXOMessageClassification", "EXOMobileDeviceMailboxPolicy", "EXOOfflineAddressBook", "EXOOMEConfiguration", "EXOOnPremisesOrganization", "EXOOrganizationConfig", "EXOOrganizationRelationship", "EXOOutboundConnector", "EXOOwaMailboxPolicy", "EXOPartnerApplication", "EXOPerimeterConfiguration", "EXOPolicyTipConfig", "EXOQuarantinePolicy", "EXORemoteDomain", "EXOResourceConfiguration", "EXORoleAssignmentPolicy", "EXOSafeAttachmentPolicy", "EXOSafeAttachmentRule", "EXOSafeLinksPolicy", "EXOSafeLinksRule", "EXOSharedMailbox", "EXOSharingPolicy", "EXOTransportConfig", "EXOTransportRule", "ODSettings", "SCAuditConfigurationPolicy", "SCCaseHoldPolicy", "SCCaseHoldRule", "SCComplianceCase", "SCComplianceSearch", "SCComplianceSearchAction", "SCComplianceTag", "SCDeviceConditionalAccessPolicy", "SCDeviceConfigurationPolicy", "SCDLPCompliancePolicy", "SCDLPComplianceRule", "SCFilePlanPropertyAuthority", "SCFilePlanPropertyCategory", "SCFilePlanPropertyCitation", "SCFilePlanPropertyDepartment", "SCFilePlanPropertyReferenceId", "SCFilePlanPropertySubCategory", "SCLabelPolicy", "SCRetentionCompliancePolicy", "SCRetentionComplianceRule", "SCRetentionEventType", "SCSensitivityLabel", "SCSupervisoryReviewPolicy", "SCSupervisoryReviewRule", "TeamsCallingPolicy", "TeamsChannel", "TeamsChannelsPolicy", "TeamsChannelTab", "TeamsClientConfiguration", "TeamsEmergencyCallingPolicy", "TeamsEmergencyCallRoutingPolicy", "TeamsFederationConfiguration", "TeamsGuestCallingConfiguration", "TeamsGuestMeetingConfiguration", "TeamsGuestMessagingConfiguration", "TeamsMeetingBroadcastConfiguration", "TeamsMeetingBroadcastPolicy", "TeamsMeetingConfiguration", "TeamsMeetingPolicy", "TeamsMessagingPolicy", "TeamsPstnUsage", "TeamsTeam", "TeamsTenantDialPlan", "TeamsUpdateManagementPolicy", "TeamsUpgradeConfiguration", "TeamsUpgradePolicy", "TeamsUser", "TeamsVoiceRoute", "TeamsVoiceRoutingPolicy") -Credential $Credential Updating dependency {MicrosoftTeams} to version {4.5.0}...✅ [WARNING] Based on the provided Authentication parameters, the following resources cannot be extracted: TeamsChannelTab Connecting to {ExchangeOnline}...✅ Connecting to {MicrosoftGraph}...✅ Connecting to {MicrosoftTeams}...✅ Connecting to {PnP}...❌

Unable to retrieve SharePoint Admin Url. Check if the Graph can be contacted successfully.

Partial Export file was saved at: C:\Users\xxxxxx\AppData\Local\Temp\667e7f7e-b932-4c13-a907-35591bce1f2e.partial.ps1

PS C:\Users\xxxxx>`

andikrueger commented 2 years ago

@SMEA-KM MEA-KM could you try to run the following command and share if there is an additional request for permission consent

connect-msgraph -scopes “Domain.Read.All”
Get-MgDomain
SMEA-KM commented 2 years ago

Hello @andikrueger ,

The commands cannot be executed with me, even after I have manually installed the module.

By a colleague we could fix it with the subsequent installation of Microsoft.graph.

At my System it now generates even more errors, so before.

I'm going to rebuild it.

TofailWagidHosain commented 2 years ago

Hi, had the same problem but solved now by running Update-M365DSCAllowedGraphScopes -All -Type Read -Environment 'Global' and selecting the checkbox Consent on behalf of your organization.

This can also be done in the Azure AD portal under Enterprise Apps -> Microsoft Graph PowerShell -> Permissions -> Grant Admin Consent

SirThomsalot commented 2 years ago

Hey, i was able to solve the problem by manually reinstalling the microsoft.graph module. Somehow some modules were missing and this blocked the access to the spo admin url. Now it works :)