in arm-templates/sqlDwAutoScaler/SqlDwAutoScaler/Shared/DwManagementClient.cs [71:82]
public void Pause()
{
string pauseRestEndPoint = $"{restEndPointUrl}/pause?{apiVersion}";
HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, pauseRestEndPoint);
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", cloudCredentials.Token);
HttpResponseMessage response = httpClient.SendAsync(request).Result;
if (!response.IsSuccessStatusCode)
throw new WebException($"Pause Database operation failed with response from server {response.StatusCode}: {response.ReasonPhrase}");
string content = response.Content.ReadAsStringAsync().Result;
}