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
Trying to create a new AutoSensitivityLabelPolicy based on an existing label fails on the Test-TargetResource (see logs below)
Creation of the same label using PowerShell works fine with just these values.
Microsoft 365 DSC Version
1.24.124.1
Which workloads are affected
Security & Compliance Center
The DSC configuration
# Generated with Microsoft365DSC version 1.24.124.1# For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSCparam (
)
ConfigurationSCAutoSensitivityLabelPolicy
{
param (
)
$OrganizationName=$ConfigurationData.NonNodeData.OrganizationNameImport-DscResource-ModuleName 'Microsoft365DSC'-ModuleVersion '1.24.124.1'
Node localhost
{
SCAutoSensitivityLabelPolicy "SCAutoSensitivityLabelPolicy-Inbound from External Domains"
{
ApplicationId =$ConfigurationData.NonNodeData.ApplicationId;
ApplySensitivityLabel ="SomeLabel99";
CertificateThumbprint =$ConfigurationData.NonNodeData.CertificateThumbprint;
Comment ="Auto Labelling policy to apply the label to inbound emails received from xx";
Ensure ="Present";
ExchangeLocation =@("All");
ExchangeSender =@();
ExchangeSenderException =@();
ExchangeSenderMemberOf =@();
ExchangeSenderMemberOfException =@();
Mode ="Enable";
Name ="Inbound from External Domains";
OneDriveLocation =@();
OneDriveLocationException =@();
Priority =0;
SharePointLocation =@();
SharePointLocationException =@();
TenantId =$OrganizationName;
}
}
}
SCAutoSensitivityLabelPolicy -ConfigurationData .\ConfigurationData.psd1
Verbose logs showing the problem
VERBOSE: An LCM method call arrived from computer PANTHER with user sid S-xxx.
VERBOSE: [SomePC]: LCM: [ StartSet ]
VERBOSE: [SomePC]: LCM: [ StartResource ] [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-InboundfromExternalDomains]
VERBOSE: [SomePC]: LCM: [ StartTest ] [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-InboundfromExternalDomains]
VERBOSE: [SomePC]: LCM: [ EndTest ] [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-InboundfromExternalDomains] in0.1110 seconds.
PowerShell DSC resource MSFT_SCAutoSensitivityLabelPolicy failed to execute Test-TargetResource functionality with error message: PowerShell Desired State Configuration
does not support execution of commands in an interactive mode. Please ensure that the underlying command is not prompting for user input, such as missing mandatory
parameter, confirmation prompt etc.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName : localhost
VERBOSE: [SomePC]: LCM: [ EndSet ]
The SendConfigurationApply function did not succeed.
+ CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 1+ PSComputerName : localhost
VERBOSE: Operation 'Invoke CimMethod' complete.
Environment Information + PowerShell Version
No response
The text was updated successfully, but these errors were encountered:
tayhall
changed the title
SCAutoSensitivityLabelPolicy - Create Labels fails with errors on Test-TargetResource
SCAutoSensitivityLabelPolicy - Create Auto Label Policy fails with errors on Test-TargetResource
Feb 2, 2024
Issue is caused by the fact that the Credential parameter is specified (incorrectly) as Mandatory in the Set and Test method. Submitting a PR to fix this now.
Description of the issue
Trying to create a new AutoSensitivityLabelPolicy based on an existing label fails on the Test-TargetResource (see logs below)
Creation of the same label using PowerShell works fine with just these values.
Microsoft 365 DSC Version
1.24.124.1
Which workloads are affected
Security & Compliance Center
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
No response
The text was updated successfully, but these errors were encountered: