I wrote a bunch of Azure Powershell scripts which have all been working just fine against Azure proper. I then modified the subscription to be our Azure China subscription and Azure commands are failing 50% of the time. I have simplified my entire pipeline down to a single Stage with a single Azure Powershell script. I have specified my Azure China subscription and have an inline script with the following contents: "Get-AzureService"
50% of the time the script fails with the following error: 2019-08-08T22:12:51.3777403Z ##[error]An error occurred while sending the request.
I ran the job 8 times and every other time it failed. The 2nd, 4th, 6th and 8th time I ran it, I got the correct output which is all the azure services deployed in Azure China.
My azure classic service connection is setup with a management certificate and obviously the connection works since I do get the correct output 50% of the time. Any thoughts?