Microsoft365DSC
Microsoft365DSC copied to clipboard
SCAutoSensitivityLabelPolicy - creation error
Description of the issue
The export for AutoSensitivityLabelPolicy gives out an Enable value, but when creating them in a another it won't accept this input. Neither does it TestwithNotification. the values "Disable" and "TestwithoutNotification" sadly time out with a notification to contact MS if this remains.
Microsoft 365 DSC Version
1.24.424.1
Which workloads are affected
Security & Compliance Center
The DSC configuration
SCAutoSensitivityLabelPolicy "SCAutoSensitivityLabelPolicy-SSB AutoLabeling Restrictions"
{
ApplicationId = $ConfigurationData.NonNodeData.ApplicationId;
ApplySensitivityLabel = "Label-03B";
CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
Comment = "SSB Autolabeling policy restriction sensitive data GDPR (AVG)";
Ensure = "Present";
ExchangeLocation = @("All");
ExchangeSender = @();
ExchangeSenderException = @();
ExchangeSenderMemberOf = @();
ExchangeSenderMemberOfException = @();
Mode = "Enable";
Name = "SSB AutoLabeling Restrictions";
OneDriveLocation = @("All");
OneDriveLocationException = @();
Priority = 0;
SharePointLocation = @("All");
SharePointLocationException = @();
TenantId = $OrganizationName;
}
SCAutoSensitivityLabelPolicy "SCAutoSensitivityLabelPolicy-SSB AutoLabeling High Restrictions"
{
ApplicationId = $ConfigurationData.NonNodeData.ApplicationId;
ApplySensitivityLabel = "Label-03C";
CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
Comment = "SSB Autolabeling restriction sensitive data High Restrictions.";
Ensure = "Present";
ExchangeLocation = @("All");
ExchangeSender = @();
ExchangeSenderException = @();
ExchangeSenderMemberOf = @();
ExchangeSenderMemberOfException = @();
Mode = "Enable";
Name = "SSB AutoLabeling High Restrictions";
OneDriveLocation = @("All");
OneDriveLocationException = @();
Priority = 1;
SharePointLocation = @("All");
SharePointLocationException = @();
TenantId = $OrganizationName;
}
Verbose logs showing the problem
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling Restrictions] Setting configuration of Sensitivity label policy for SSB AutoLabeling Restrictions VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling Restrictions] Getting configuration of Auto sensitivity Label Policy for SSB AutoLabeling Restrictions
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Auto Sensitivity label policy SSB AutoLabeling Restrictions does not exist.
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Creating new Auto Sensitivity label policy SSB AutoLabeling Restrictions.
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Returning precomputed version info: 3.4.0
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] POST with -1-byte payload
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Query 1 failed.
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Getting message from error object
|Microsoft.Exchange.Management.UnifiedPolicy.ModeNotSupportedByMipCmdletForGivenWorkloadException|Mode Enable isn't supported for this
cmdlet for the SharePoint locations.
+ CategoryInfo : NotSpecified: (:) [], CimException
+ FullyQualifiedErrorId : [TimeStamp=Thu, 02 May 2024 13:14:29 GMT],Write-ErrorMessage
+ PSComputerName : localhost
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Returning precomputed version info: 3.4.0
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] POST with -1-byte payload
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Query 1 failed.
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Getting message from error object
|Microsoft.Exchange.Management.UnifiedPolicy.ErrorPolicyNotFoundException|Policy "SSB AutoLabeling Restrictions" wasn't found. Make
sure you typed the policy name correctly.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : [TimeStamp=Thu, 02 May 2024 13:14:34 GMT],Write-ErrorMessage
+ PSComputerName : localhost
VERBOSE: [DESKTOP-UOVT50U]: LCM: [ End Set ] [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] in 53.8440 seconds.
The PowerShell DSC resource '[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling Restrictions' with SourceInfo
'C:\M365DSC\Export\SC\RWO-V-SC.ps1::968::3::SCAutoSensitivityLabelPolicy' threw one or more non-terminating errors while running the
Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this
channel for more details.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
VERBOSE: [DESKTOP-UOVT50U]: LCM: [ Start Resource ] [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling High
Restrictions]
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Setting configuration of Sensitivity label policy for SSB AutoLabeling Restrictions
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Getting configuration of Auto sensitivity Label Policy for SSB AutoLabeling Restrictions
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Auto Sensitivity label policy SSB AutoLabeling Restrictions does not exist.
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Creating new Auto Sensitivity label policy SSB AutoLabeling Restrictions.
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Returning precomputed version info: 3.4.0
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] POST with -1-byte payload
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Query 1 failed.
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Getting message from error object
|Microsoft.Exchange.Management.UnifiedPolicy.ModeNotSupportedByMipCmdletException|Mode TestWithNotifications isn't supported for this
cmdlet.
+ CategoryInfo : NotSpecified: (:) [], CimException
+ FullyQualifiedErrorId : [TimeStamp=Thu, 02 May 2024 13:20:36 GMT],Write-ErrorMessage
+ PSComputerName : localhost
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Returning precomputed version info: 3.4.0
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] POST with -1-byte payload
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Query 1 failed.
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] Getting message from error object
|Microsoft.Exchange.Management.UnifiedPolicy.ErrorPolicyNotFoundException|Policy "SSB AutoLabeling Restrictions" wasn't found. Make
sure you typed the policy name correctly.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : [TimeStamp=Thu, 02 May 2024 13:20:42 GMT],Write-ErrorMessage
+ PSComputerName : localhost
VERBOSE: [DESKTOP-UOVT50U]: LCM: [ End Set ] [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling
Restrictions] in 18.0740 seconds.
The PowerShell DSC resource '[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling Restrictions' with SourceInfo
'C:\M365DSC\Export\SC\RWO-V-SC.ps1::17::3::SCAutoSensitivityLabelPolicy' threw one or more non-terminating errors while running the
Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this
channel for more details.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
VERBOSE: [DESKTOP-UOVT50U]: LCM: [ Start Resource ] [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling High
Restrictions]
VERBOSE: [DESKTOP-UOVT50U]: LCM: [ Start Test ] [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling High
Restrictions]
VERBOSE: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling High
Restrictions] Importing the module MSFT_SCAutoSensitivityLabelPolicy in force mode.
WARNING: [DESKTOP-UOVT50U]: [[SCAutoSensitivityLabelPolicy]SCAutoSensitivityLabelPolicy-SSB AutoLabeling High
Environment Information + PowerShell Version
OsName : Microsoft Windows 11 Pro
OsOperatingSystemSKU : 48
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 22621.1.amd64fre.ni_release.220506-1250
OsLanguage : en-US
OsMuiLanguages : {en-US, en-GB}
Name Value
---- -----
PSVersion 5.1.22621.2506
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.2506
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
the issue here is encryption, it can't handle that, Microsoft said the backend can't handle user defined encryption