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
EXOManagementRoleAssignment Test-TargetResource returned False if you want to update or create the EXOManagementRoleAssignment with the same settings
#2524
Details of the scenario you tried and the problem that is occurring
EXOManagementRoleAssignment is not working as it was supposed to.
Testcase 1: First I have created a new EXOManagementRoleAssignment and it's working fine. Testcase 2: Second I have created the same EXOmanagementRoleAssignment with the same settings but it throw an error please have a look below.
When I run the following commands in the Power-ShellEXOManagementRoleAssignment throw an error.:
Testcase 1: EXOManagementRoleAssignment was created
PS C:\Users\src\MOFs> Publish-DscConfiguration -Path C:\Users\src\MOFs\MainConfig -Force
PS C:\Users\src\MOFs> Start-DscConfiguration -UseExisting -Force -Verbose -Wait
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = ApplyConfiguration,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: Vom Computer '' mit Benutzer-SID 'S-1-5-21-3768120332-928546867-543785711-4813' ist ein LCM-Methodenaufruf eingegangen.
VERBOSE: []: [] Das Konsistenzmodul wird gestartet.
VERBOSE: []: LCM: [ StartenRessource] [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff]
VERBOSE: []: LCM: [ StartenTesten ] [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff]
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Testing Management Role Assignment for Organization Management Role Adjustment
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Getting Management Role Assignment for Organization Management Role Adjustment
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Ex6FF57D|Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|Der Vorgang konnte nicht ausgeführt werden, weil das Objekt 'Organization Management Role Adjustment' nicht auf
'.COM' gefunden wurde. Überprüfen Sie den Namen der Verwaltungsrollenzuweisung, und versuchen Sie es erneut. Sie können den Namen der Verwaltungsrollenzuweisung mit dem Cmdlet "Get-ManagementRoleAssignment" abrufen.
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Current Values: ApplicationId=***; CertificateThumbprint=; Ensure=Absent; Name=Organization Management Role Adjustment; Role=Address Lists; SecurityGroup=Organization Management;
TenantId=***; Verbose=True
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Target Values: ApplicationId=***; CertificateThumbprint=; Ensure=Present; Name=Organization Management Role Adjustment; Role=Address Lists; SecurityGroup=Organization Management;
TenantId=***; Verbose=True
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Test-TargetResource returned False
VERBOSE: []: LCM: [ BeendenTesten ] [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] in 34.1330 Sekunden.
VERBOSE: []: LCM: [ StartenFestlegen] [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff]
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Setting Management Role Assignment for Organization Management Role Adjustment
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Getting Management Role Assignment for Organization Management Role Adjustment
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Ex6FF57D|Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|Der Vorgang konnte nicht ausgeführt werden, weil das Objekt 'Organization Management Role Adjustment' nicht auf
'.COM' gefunden wurde. Überprüfen Sie den Namen der Verwaltungsrollenzuweisung, und versuchen Sie es erneut. Sie können den Namen der Verwaltungsrollenzuweisung mit dem Cmdlet "Get-ManagementRoleAssignment" abrufen.
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Management Role Assignment'Organization Management Role Adjustment' does not exist but it should. Create and configure it.
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Returning precomputed version info: 3.0.0
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] POST https://outlook.office365.com/adminapi/beta/53023a1c-2c85-4bfc-92e4-c5d9ed23fdfc/InvokeCommand with -1-byte payload
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] received 1167-byte response of content type application/json;charset=utf-8
VERBOSE: []: LCM: [ BeendenFestlegen] [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] in 0.9790 Sekunden.
VERBOSE: []: LCM: [ BeendenRessource] [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff]
VERBOSE: []: LCM: [ StartenRessource] [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3]
VERBOSE: []: LCM: [ StartenTesten ] [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3]
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Testing Address List configuration for All Equipments
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Getting configuration of AddressList for All Equipments
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Current Values: ApplicationId=***; CertificateThumbprint=; Ensure=Absent; Name=All Equipments; RecipientFilter=(Alias -ne $null) -and (RecipientTypeDetails -eq 'EquipmentMailbox'); TenantId=***;
Verbose=True
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Target Values: ApplicationId=***; CertificateThumbprint=; Ensure=Present; Name=All Equipments; RecipientFilter=(Alias -ne $null) -and (RecipientTypeDetails -eq 'EquipmentMailbox'); TenantId=***;
Verbose=True
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Test-TargetResource returned False
VERBOSE: []: LCM: [ BeendenTesten ] [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] in 0.7860 Sekunden.
VERBOSE: []: LCM: [ StartenFestlegen] [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3]
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Setting Address List configuration for All Equipments
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Getting configuration of AddressList for All Equipments
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] You can't use RecipientFilter and precanned filters at the same time. All precanned filters will be ignored.
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] You can't use RecipientFilter and precanned filters at the same time. All precanned filters will be ignored.
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] The Address List 'All Equipments' does not exist but it should. Creating Address List.
Die Benennung "New-AddressList" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.
+ CategoryInfo : ObjectNotFound: (New-AddressList:) [], CimException
+ FullyQualifiedErrorId : CommandNotFoundException
+ PSComputerName : localhost
VERBOSE: []: LCM: [ BeendenFestlegen] [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] in 2.7950 Sekunden.
Die PowerShell DSC-Ressource "[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3" mit SourceInfo "::332::3::EXOAddressList" hat beim Ausführen der Funktion "Set-TargetResource" mindestens einen Fehler ohne Abbruch ausgegeben. Diese Fehler werden im ETW-Kanal namens "Microsoft-Windows-DSC/Operational" protokolliert. Weitere Informationen finden
Sie in diesem Kanal.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
VERBOSE: []: [] Die Konsistenzprüfung ist abgeschlossen.
Mindestens eine der partiellen Konfigurationen konnte nicht angewendet werden. Es konnte keine Konfiguration erstellt werden. Der lokale Konfigurations-Manager (LCM) konnte Desired State Configuration nicht manuell starten.
+ CategoryInfo : ObjectNotFound: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 6
+ PSComputerName : localhost
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 40.177 seconds
When I run the following commands in the Power-ShellEXOManagementRoleAssignment throw an error.:
Testcase 2: EXOManagementRoleAssignment throw an error
PS C:\Users\src\MOFs> Publish-DscConfiguration -Path C:\Users\src\MOFs\MainConfig -Force
PS C:\Users\src\MOFs> Start-DscConfiguration -UseExisting -Force -Verbose -Wait
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = ApplyConfiguration,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'. VERBOSE: Vom Computer '' mit Benutzer-SID 'S-1-5-21-3768120332-928546867-543785711-4813' ist ein LCM-Methodenaufruf eingegangen. VERBOSE: []: [] Das Konsistenzmodul wird gestartet. VERBOSE: []: LCM: [ StartenRessource] [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] VERBOSE: []: LCM: [ StartenTesten ] [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Testing Management Role Assignment for Organization Management Role Adjustment VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Getting Management Role Assignment for Organization Management Role Adjustment VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Found Management Role Assignment Organization Management Role Adjustment VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Current Values: ApplicationId=***; CertificatePassword=$null; CertificatePath=***; CertificateThumbprint=; Credential=$null; CustomRecipientWriteScope=$null; CustomResourceScope=$null;
Ensure=Present; ExclusiveRecipientWriteScope=$null; Managedidentity=False; Name=Organization Management Role Adjustment; RecipientAdministrativeUnitScope=$null; RecipientOrganizationalUnitScope=$null; RecipientRelativeWriteScope=$null; Role=Address Lists; TenantId=***
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Test-TargetResource returned False
VERBOSE: []: LCM: [ BeendenTesten ] [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] in 37.7820 Sekunden.
VERBOSE: []: LCM: [ StartenFestlegen] [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff]
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Setting Management Role Assignment for Organization Management Role Adjustment
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Getting Management Role Assignment for Organization Management Role Adjustment
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Found Management Role Assignment Organization Management Role Adjustment
VERBOSE: []: [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] Management Role Assignment'Organization Management Role Adjustment' already exists, but needs updating.
Es wurde kein Parameter gefunden, der dem Parameternamen "SecurityGroup" entspricht.
+ CategoryInfo : InvalidArgument: (:) [], CimException
+ FullyQualifiedErrorId : NamedParameterNotFound,Set-ManagementRoleAssignment
+ PSComputerName : localhost
VERBOSE: []: LCM: [ BeendenFestlegen] [[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff] in 0.8750 Sekunden.
Die PowerShell DSC-Ressource "[EXOManagementRoleAssignment]Container-230-73e02091-7473-474b-8f2b-392a33dce6ff" mit SourceInfo "::322::3::EXOManagementRoleAssignment" hat beim Ausführen der Funktion "Set-TargetResource" mindestens einen Fehler ohne Abbruch ausgegeben.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
VERBOSE: []: LCM: [ StartenRessource] [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3]
VERBOSE: []: LCM: [ StartenTesten ] [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3]
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Testing Address List configuration for All Equipments
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Getting configuration of AddressList for All Equipments
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Address List All Equipments does not exist.
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Current Values: ApplicationId=***; CertificateThumbprint=; Ensure=Absent; Name=All Equipments; RecipientFilter=(Alias -ne $null) -and (RecipientTypeDetails -eq 'EquipmentMailbox'); TenantId=***;
Verbose=True
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Target Values: ApplicationId=***; CertificateThumbprint=; Ensure=Present; Name=All Equipments; RecipientFilter=(Alias -ne $null) -and (RecipientTypeDetails -eq 'EquipmentMailbox'); TenantId=***;
Verbose=True
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Test-TargetResource returned False
VERBOSE: []: LCM: [ BeendenTesten ] [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] in 1.5940 Sekunden.
VERBOSE: []: LCM: [ StartenFestlegen] [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3]
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Setting Address List configuration for All Equipments
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Getting configuration of AddressList for All Equipments
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] Address List All Equipments does not exist.
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] You can't use RecipientFilter and precanned filters at the same time. All precanned filters will be ignored.
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] You can't use RecipientFilter and precanned filters at the same time. All precanned filters will be ignored.
VERBOSE: []: [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] The Address List 'All Equipments' does not exist but it should. Creating Address List.
VERBOSE: []: LCM: [ BeendenFestlegen] [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3] in 1.7810 Sekunden.
VERBOSE: []: LCM: [ BeendenRessource] [[EXOAddressList]Container-231-55113867-ee8d-4256-af39-163df34354d3]
VERBOSE: []: [] Die Konsistenzprüfung ist abgeschlossen.
Mindestens eine der partiellen Konfigurationen konnte nicht angewendet werden. Es konnte keine Konfiguration erstellt werden. Der lokale Konfigurations-Manager (LCM) konnte Desired State Configuration nicht manuell starten.
+ CategoryInfo : ObjectNotFound: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 6
+ PSComputerName : localhost
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 44.002 seconds
The DSC configuration that is used to reproduce the issue (as detailed as possible)
#### The operating system the target node is running
<!--
Please provide as much as possible about the target node, for example
edition, version, build and language.
On OS with WMF 5.1 the following command can help get this information.
OsName : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage : en-US
OsMuiLanguages : {en-US, de-DE}
-->
#### Version of the DSC module that was used ('dev' if using current dev branch)
1.22.1109.1
The text was updated successfully, but these errors were encountered:
atdheekurteshi
changed the title
EXOManagementRoleAssignment Test-TargetResource returned False if you want to update/create a new EXOManagementRoleAssignment
EXOManagementRoleAssignment Test-TargetResource returned False if you want to update or create the EXOManagementRoleAssignment with the same settings
Nov 10, 2022
Details of the scenario you tried and the problem that is occurring
EXOManagementRoleAssignment is not working as it was supposed to.
Testcase 1: First I have created a new EXOManagementRoleAssignment and it's working fine.
Testcase 2: Second I have created the same EXOmanagementRoleAssignment with the same settings but it throw an error please have a look below.
When I run the following commands in the Power-Shell EXOManagementRoleAssignment throw an error.:
Testcase 1: EXOManagementRoleAssignment was created
When I run the following commands in the Power-Shell EXOManagementRoleAssignment throw an error.:
Testcase 2: EXOManagementRoleAssignment throw an error
The DSC configuration that is used to reproduce the issue (as detailed as possible)
MOF file extract:
The text was updated successfully, but these errors were encountered: