Comments on: Use Desired State Configuration to Snapshot the Configuration of Your Microsoft 365 Tenant https://practical365.com/dsc-snapshot-microsoft365-tenant/ Practical Office 365 News, Tips, and Tutorials Wed, 24 Aug 2022 15:23:10 +0000 hourly 1 https://wordpress.org/?v=6.3.2 By: Ricardo Silva https://practical365.com/dsc-snapshot-microsoft365-tenant/#comment-242312 Wed, 24 Aug 2022 15:23:10 +0000 https://practical365.com/?p=53848#comment-242312 For Conditional Access that uses TermsofUse PowerShell asked for the required roles: Agreement.Read.All, Agreement.ReadWrite.All

I had to run the following order to get it working.

Run Powershell as administrator
Install-Module Microsoft.Graph
Install-Module Microsoft365Dsc
Update-M365DSCDependencies -Force
Update-M365DSCAllowedGraphScopes -ResourceNameList @(“AADConditionalAccessPolicy”) -Type ‘Read’

]]>
By: Ricardo Silva https://practical365.com/dsc-snapshot-microsoft365-tenant/#comment-242310 Wed, 24 Aug 2022 15:20:25 +0000 https://practical365.com/?p=53848#comment-242310 For Conditional Access that uses TermsofUse PowerShell asked for the required roles: Agreement.Read.All, Agreement.ReadWrite.All

I had to run the following order to get it working.

Run Powershell as administrator
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module Microsoft.Graph
Install-Module Microsoft365Dsc
Update-M365DSCDependencies -Force
Update-M365DSCAllowedGraphScopes -ResourceNameList @(“AADConditionalAccessPolicy”) -Type ‘Read’

# Getting application information for Application + Secret authentication
$ApplicationId = Read-Host -Prompt ‘Application Id’
$ApplicationSecret = Read-Host -Prompt ‘Application Secret’
$TenantId = Read-Host -Prompt ‘Tenant Id’

# Exporting resources using application
Export-M365DSCConfiguration -Components @(“AADConditionalAccessPolicy”) -ApplicationId $ApplicationId -ApplicationSecret $ApplicationSecret -TenantId $TenantId

]]>
By: Ron https://practical365.com/dsc-snapshot-microsoft365-tenant/#comment-238139 Thu, 31 Mar 2022 01:15:06 +0000 https://practical365.com/?p=53848#comment-238139 Nice article, but it’s just the tip of the proverbial iceberg. The Help documentation on the M365DSC website is pretty poor as well, as it’s all over the place and not in the order it should be following considering I’ve just attempted to do a tenant to tenant config change – unsuccessfully so far. I’m stuck at the import stage, which you didn’t mention here. Any clues?

]]>
By: Tony Arnill https://practical365.com/dsc-snapshot-microsoft365-tenant/#comment-237884 Wed, 02 Mar 2022 05:42:38 +0000 https://practical365.com/?p=53848#comment-237884 In reply to Chris Blackburn.

Interested, wish there was a recording of the event and not just a powerpoint

]]>
By: Chris Blackburn https://practical365.com/dsc-snapshot-microsoft365-tenant/#comment-237039 Tue, 09 Nov 2021 14:11:50 +0000 https://practical365.com/?p=53848#comment-237039 Microsoft DSC is nice but there are gaps and areas to be desired. I copresented on this in session at MMS MIA 2021 and the deck that’s freely available goes into some detail around why!
https://mmsmiami.sched.com/event/nk4z/microsoft-365-lifecycle-management-using-configuration-as-code

]]>