You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to have a severity level added when a resource is missing with Assert-M365DSCBlueprint.
I am able to get the severity level metadata added when a property of a resource is not configured but I have not found how to do it when the whole resource is missing.
Microsoft 365 DSC Version
1.24.424.1
Which workloads are affected
other
The DSC configuration
# Generated with Microsoft365DSC version 1.23.1220.1orig# For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSCparam (
)
ConfigurationM365TenantConfig
{
param (
)
$OrganizationName=$ConfigurationData.NonNodeData.OrganizationNameImport-DscResource-ModuleName 'Microsoft365DSC'-ModuleVersion '1.23.1220.1'
Node localhost
{
AADAuthenticationContextClassReference "AADAuthenticationContextClassReference-Require Trusted Endpoint"
{
DisplayName ="Require Trusted"; ###L3|Mandatory requirement for FAMS
Ensure ="Present"; ###L3|Mandatory requirement for FAMS
Id ="c1"; ###L3|Mandatory requirement for FAMS
IsAvailable =$True;
}
AADAuthenticationContextClassReference "AADAuthenticationContextClassReference-Require MFA"
{
DisplayName ="Require MFA"; ###L3|Mandatory requirement for FAMS
Ensure ="Present"; ###L3|Mandatory requirement for FAMS
Id ="c2"; ###L3|Mandatory requirement for FAMS
IsAvailable =$True;
}
AADAuthenticationContextClassReference "AADAuthenticationContextClassReference-Require re-authenticate every one hour"
{
DisplayName ="Require re-authenticate every one hour"; ###L3|Mandatory requirement for FAMS
Ensure ="Present"; ###L3|Mandatory requirement for FAMS
Id ="c3"; ###L3|Mandatory requirement for FAMS
IsAvailable =$True;
}
}
}
M365TenantConfig -ConfigurationData .\ConfigurationData.psd1
Verbose logs showing the problem
Here is the json outcome. The "C1" auth context exit but name is not correct. The sensitivity is correctly added.
The second one is missing, no severity is added despite the fact that I added on on the base line for the "Ensure"="present" property.
[
{
"ResourceName": "AADAuthenticationContextClassReference","Key": "Id","KeyValue": "c1","Properties": [
{
"_Metadata_Level": "###L3","ValueInDestination": "Require Trusted","ParameterName": "DisplayName","ValueInSource": "Require Trusted Endpoint","_Metadata_Info": "Mandatory requirement for FAMS"
}
],"ResourceInstanceName": "AADAuthenticationContextClassReference-Require Trusted Endpoint"
},
{
"ResourceName": "AADAuthenticationContextClassReference","Key": [
"Id"
],"KeyValue": "c3","Properties": [
{
"ValueInDestination": "Present","ParameterName": "_IsInConfiguration_","ValueInSource": "Absent"
}
],"ResourceInstanceName": "AADAuthenticationContextClassReference-Require re-authenticate every one hour"
}
]
Environment Information + PowerShell Version
No response
The text was updated successfully, but these errors were encountered:
Description of the issue
Is there a way to have a severity level added when a resource is missing with Assert-M365DSCBlueprint.
I am able to get the severity level metadata added when a property of a resource is not configured but I have not found how to do it when the whole resource is missing.
Microsoft 365 DSC Version
1.24.424.1
Which workloads are affected
other
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
No response
The text was updated successfully, but these errors were encountered: