Open JimMoyle opened 4 years ago
@JimMoyle Thank you for your feedback and suggestions.
As far saving time goes, it doesn't save a whole lot of time by doing these operations just once because DSC simply takes longer to start and stop which is something we don't control. The only time consuming operation is importing the RD module which as I explained happens the very first time.
@lintFan FYI & in case you want to add anything here.
I'd say it's not just about time savings (though that was the only justification I put in the original issue) , but also API calls to the control plane.
It might be worth combining all these calls to one function if you think they are needed:
Test-WvdIsValidForTest returns bool Test- WvdIsValidForSet resturns bool
Might make things easier
The WVD configuration.ps1 script runs these actions multiple times
By running ValidateServicePrincipal, ImportRDPSMod, AuthenticateRdsAccount and SetTenantGroupContextAndValidate from the functions.ps1 file.
To deploy 2 hosts it looks like we run this validation ~8 times, it's even in a DSC test script.
Can we run once and set a flag to save time?