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

AdfsFarmNode: SqlConnectionString and PrimaryComputerName/Port Should be Mutually Exclusive #8

Open
X-Guardian opened this issue Nov 6, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@X-Guardian
Copy link
Owner

Details of the scenario you tried and the problem that is occurring

The SqlConnectionString and PrimaryComputerName/Port parameters of the AdfsFarmNode resource should be mutually exclusive.

@X-Guardian X-Guardian added the bug Something isn't working label Nov 18, 2019
@CoreyLivingston
Copy link

Hi @X-Guardian - We're running into an issue and we were wondering if it's related this bug as well.

Here is some background info on our use case:

We are not using SQL with ADFS.
We are using chef to call these ADFS DSC modules.

Running the recipe the first time, everything works fine but converging a second time after ADFS has been installed/configured we get the following error:

Chef::PowerShell::CommandFailed
 -------------------------------
Unexpected exit in PowerShell command: ["PowerShell DSC resource MSFT_AdfsFarmNode  

failed to execute Set-TargetResource functionality with error message: System.InvalidOperationException: 
Unable to determine the SQL database state. 
An AD FS configuration database with the same name already exists; 
specify that the existing database is to be overwritten. "]

We were surprised to see that the module was attempting to validate the SQL DB state.

I can dig into this a bit further but was wondering if you think this is related.

Thanks

@X-Guardian
Copy link
Owner Author

X-Guardian commented Apr 17, 2021

Hi @CoreyLivingston, this would only be an issue if you were specifying both a SqlConnectionString and PrimaryComputerName/Port parameter in your Dsc Config.

The message you are seeing looks like output from the Get-AdfsSyncProperties cmdlet which the Get function of the AdfsFarmNode resource uses. I would need to see the Dsc verbose logs to help you further.

@CoreyLivingston
Copy link

Ah ok, thank you. I think our issue is different. I'll do a bit more research on my end.

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

No branches or pull requests

2 participants