Closed ricmestre closed 2 months ago
Please update label to V1.23.705.1 since it also fails with latest version, tested it locally (not DevOps) with cert-based auth.
We get the same Bad Request error on 1.23.906.1 too.
This was not yet solved, so it actually happens on latest release 1.23.1018.1 as well.
Hi @ricmestre and @richardjgreen
The way this policy is managed in the API is tricky - I had issue while creating and testing this resource due to the OfferStartDateTimeInUTC - try changing this date manually in your export to the time of your run and it should work
@William-Francillette I just tested it and that doesn't solve the issue, both OfferStartDateTimeInUTC and OfferEndDateTimeInUTC from my export are dates in past so I tried first to change OfferEndDateTimeInUTC for a future date and got the same error message, after that then I also tried to change OfferStartDateTimeInUTC and still had the same behavior.
Do you get the same issue if you try with the Graph sdk for example ? When I tested it, it was very restrictive but can have another look in the evening
Yes, same issue using cmdlet New-MgBetaDeviceManagementWindowsFeatureUpdateProfile directly, but there's really something fishy happening with RolloutSettings property since if I remove the parameter I'm able to create the profile and of course also works with M365DSC if I remove that property from the export.
I'm not surprised this policy is very restrictive but this is more on the API side of things not even the sdk
Yep it definitely looks like a problem on the API side or we just didn't learn how to tame it yet :)
@peombwa Hi, could you please share your thoughts about this issue?
Any updates on this issue?
Details of the scenario you tried and the problem that is occurring
The exported blueprint, see below, can be redeployed to the same tenant since the Test succeeds, nevertheless trying to deploy it to another tenant fails with an error message when calling New-MgDeviceManagementWindowsFeatureUpdateProfile, also see below.
Verbose logs showing the problem
Suggested solution to the issue
N/A
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Win10
Version of the DSC module that was used ('dev' if using current dev branch)
1.23.628.1