Update-AzPolicyAssignment has different behavior when run in Powershell vs Windows Powershell #27649
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
needs-team-attention
This issue needs attention from Azure service team or SDK team
Policy
Azure Resource Policy
Service Attention
This issue is responsible by Azure service team.
Description
I have a script that uses Update-AzPolicyAssignment to sync policies I have in Azure with my policy jsons I have in AuzreDevOps. But when I run the script in an Azure Powershell job environment I get the following error:
Test-Path : Illegal characters in path.
I also get this error locally if I try to run it in Windows Powershell. However if I use Powershell, Update-AzPolicyAssignment works as expected. All policies assignments that are fed to this function when run on Windows Powershell yield the same result. Some of the output I added below is shortened to remove lots of repeats.
If you need any more information let me know. Thank you in advance.
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: