Thanks for visiting the Workplacedudes meetup! The slides can be found on my Github repository.
If you want help with your journey on using Microsoft365DSC, visit the product website. There, you can also find the whitepaper on integrating M365DSC with Azure DevOps.
Finaly, below are the code snippets used during my presentation
# Auth Settings
$CertificateThumbprint = "CertThumbprint goes here"
$ApplicationID = "App ID goes here"
$Tenantid = "<tenantname>.onmicrosoft.com"
# Exporting AADApplications using certificate
Export-M365DSCConfiguration -Components @("AADApplication") -ApplicationId $ApplicationId -CertificateThumbprint $CertificateThumbprint -TenantId $TenantId
# Combining options for export
Export-M365DSCConfiguration -Workloads "AAD" -ApplicationID $ApplicationID -CertificateThumbprint $CertificateThumbprint -TenantId $Tenantid -filename AAD.ps1 -configurationname AAD -Path c:\Demo\WorkplaceDudes
# Export configs of specific settings
Export-M365DSCConfiguration -Components 'AADConditionalAccessPolicy' -ApplicationId $ApplicationId -CertificateThumbprint $CertificateThumbprint -TenantId $TenantId -FileName ConditionalAccess.ps1 -Path c:\demo\workplacedudes
# Generate Delta
New-M365DSCDeltaReport -Source C:\demo\aad_baseline.ps1 -Destination C:\demo\workplacedudes\aad.ps1 -OutputPath c:\demo\workplacedudes\delta.html
# Generate a Configuration Report
New-M365DSCReportFromConfiguration -Type excel -ConfigurationPath C:\demo\workplacedudes\ConditionalAccess.ps1 -OutputPath c:\demo\workplacedudes\Report.xlsx
# Compiling the MOF file from Configuration export
set-location C:\demo\WorkplaceDudes
.\ConditionalAccess.ps1
# Applying the DSC Config
Start-DSCConfiguration -Path C:\demo\workplacedudes\conditionalaccess -Wait -Verbose -Force
# Stop Config
Stop-DSCConfiguration -Force
Remove-DSCConfigurationDocument -Stage Current
If you have any furhter questions, reach out to me on Twitter / X, LinkedIn, or by contacting me through my website.
Have fun managing your M365 setup as code!