Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

Use variables with M365DSC Blueprint files

Open YenNantes opened this issue 1 year ago • 0 comments

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!

YenNantes avatar Jan 18 '24 13:01 YenNantes