Open BatmanAMA opened 1 year ago
Out of interest, if the check is dumb, have you tried to add a dummy get parameter like so:
https://azurepolicyartifacts.blob.core.windows.net/installers/WindowsSensor-651.exe?skoid=<clipped for privacy>&dummy=myexe.msi
Maybe that's enough of a workaround for now and the blob will ignore that unknown 'dummy' parameter. Otherwise, I think that check is not really "modern" and should either be removed, or have a way to be ignored.
fantastic workaround, thank you
Problem description
Hi! I'm trying to use the xPackage resource to install packages that are accessed from Azure Storage using a SAS uri and it fails saying that the file doesn't "appear" to be an exe or msi.
Verbose logs
DSC configuration
Suggested solution
it would seem to me that changing the test to strip off anything after a ? is the simple answer with converting it into a uri and using the localpath property the (lower performance) more slick option.
https://github.com/dsccommunity/xPSDesiredStateConfiguration/blob/main/source/DSCResources/DSC_xPackageResource/DSC_xPackageResource.psm1#L1092
Operating system the target node is running
PowerShell version and build the target node is running
xPSDesiredStateConfiguration version