You can use or edit [CloudServiceClient.GetStorageServiceConnectionString](https://github.com/WindowsAzure/azure-sdk-tools/blob/dev/WindowsAzurePowershell/src/Management.Utilities/CloudService/CloudServiceClient.cs#L835) to do this work.