question

AB-9435 avatar image
0 Votes"
AB-9435 asked ·

Deploy custom policies with Azure Pipelines changing the charset encoding

I'm following this article to deploy my custom policies. I have enabled localisation in policies and providing translations for English and Spanish. By deploying manually there is no issues. But while using pipeline to deploy, my Spanish translation getting some issue:

My actual text is 4681-1.png but after deployment it is 4691-2.png


I found that this statement is making the issue:

 $response = Invoke-RestMethod -Uri $graphuri -Method Put -Body $policycontent -Headers $headers

So tried to pass content-type as utf-8 in header too, but that doesn't worked. When i generate the file and stores into a blob storage everything is fine, i have the text without any problem.


azure-ad-b2c
1.png (838 B)
2.png (1.0 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JamieVaughan-4866 avatar image
0 Votes"
JamieVaughan-4866 answered ·

I also had this issue. However, using the new Azure Powershell cmdlets worked as expected.

· 2 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

That is working fine, i tried that. But i'm trying to implement CI/CD using pipelines, i guess cmdlets requires user interaction for login.

0 Votes 0 · ·

@JamieVaughan-4866 Is there any way to use the cmdlets in azure devops pipeline?

0 Votes 0 · ·