Microsoft365DSC
Microsoft365DSC copied to clipboard
Use variables with M365DSC Blueprint files
Hi, I would like to know if there is a way to use variables when using Assert-M365DSCBlueprint for comparing a tenant config with a blueprint file.
A lot of resources include properties that contain the tenant domain name or custom domain name. Those domain names are of course specific to each tenant.
For example: EXOManagementRole "EXOManagementRole-MyName" { ApplicationId = $ConfigurationData.NonNodeData.ApplicationId; CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint; Description = ""; Ensure = "Present"; Name = "MyName"; Parent = "xwyz.onmicrosoft.com\MyProfileInformation"; TenantId = $OrganizationName; }
Thanks!