Before this fix, when System.TeamFoundationCollectionUri="https://myorg.visualstudio.com/", $urlBase for reading identities becomes https://myorg.vssps.dev.azure.com/ which doesn't work. This change converts $serverUrl from https://myorg.visualstudio.com/ to https://dev.azure.com/myorg/.
Before this fix, when
System.TeamFoundationCollectionUri="https://myorg.visualstudio.com/"
,$urlBase
for reading identities becomeshttps://myorg.vssps.dev.azure.com/
which doesn't work. This change converts$serverUrl
fromhttps://myorg.visualstudio.com/
tohttps://dev.azure.com/myorg/
.