Unsafe use of HttpClient per request
https://github.com/Azure/azure-powershell/blob/bbe5ee957de07032bcf7f9062bba91cceee62565/src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/RestClients/ResourceManagerRestClientBase.cs#L221
The proper usage is [finally] documented in the Remarks section here: https://msdn.microsoft.com/en-us/library/system.net.http.httpclient%28v=vs.110%29.aspx . Here's a sample report of what happens with per-request instance of HttpClient: https://aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/ .
@Tiano2017 @ravbhatnagar would you mind taking a look at this issue?
This is a valid ask. We'll create a work item to fix these.
:bell: Routing this issue to @act-identity-squad.
Thanks for the report, this is in the retired AzureRm module's REST client. Az.Resources uses the SDK's managed HttpClient which handles reuse correctly. Closing as obsolete.