Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EXOArcConfig] Issue with Identity parameter #5061

Open
ykuijs opened this issue Sep 18, 2024 · 0 comments
Open

[EXOArcConfig] Issue with Identity parameter #5061

ykuijs opened this issue Sep 18, 2024 · 0 comments
Assignees
Labels
Bug Something isn't working Exchange Online

Comments

@ykuijs
Copy link
Member

ykuijs commented Sep 18, 2024

Description of the issue

This resource has both the IsSingleInstance and Identity parameter added:

[Parameter(Mandatory = $true)]
[System.String]
[ValidateSet('Yes')]
$IsSingleInstance,
[Parameter()]
[System.String]
$Identity,

This does not make much sense, especially since in the call to Set-ArcConfig, the Identity is hardcoded to Default:

When I run the unit tests locally, they fail on this specific line. But somehow the unit tests run fine when ran in GitHub Actions.

@namratagupta2024, since you created this resource: Could you please have a look at this issue?

Microsoft 365 DSC Version

Dev

Which workloads are affected

Exchange Online

The DSC configuration

N/A

Verbose logs showing the problem

[-] DSC Resource 'EXOArcConfig'.Configuration needs updating.Should call the Set method 73ms (71ms|2ms)
 ParameterBindingException: Cannot bind parameter because parameter 'Identity' is specified more than once. To provide multiple values to parameters that can accept multiple values, use the array syntax. For example, "-parameter value1,value2,value3".
 at Set-TargetResource, C:\src\Microsoft365DSC\Modules\Microsoft365DSC\DSCResources\MSFT_EXOArcConfig\MSFT_EXOArcConfig.psm1:186
 at <ScriptBlock>, C:\src\Microsoft365DSC\Tests\Unit\Microsoft365DSC\Microsoft365DSC.EXOArcConfig.Tests.ps1:72

Environment Information + PowerShell Version

PSv5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Exchange Online
Projects
None yet
Development

No branches or pull requests

3 participants