title: Azure Management Service API gives deployment configuration in some Encrypted format
body: <p>I am using this code to get the deployment configurations. </p>
  
  <pre><code>X509Store certificateStore = new X509Store(StoreName.My, StoreLocation.LocalMachine);
  certificateStore.Open(OpenFlags.ReadOnly);
  X509Certificate2Collection certs = certificateStore.Certificates.Find(
       X509FindType.FindByThumbprint, certThumb, false);
  if (certs.Count == 0)
  {
      Console.WriteLine("Couldn't find the certificate with thumbprint:" + certThumb);
      return;
  }
  certificateStore.Close();
  
  HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(
      new Uri("https://management.core.windows.net/" + subID +
              "/services/hostedservices/" + hostedServiceName +
              "/deploymentslots/" + deploymentType));
  request.Method = "GET";
  request.ClientCertificates.Add(certs[0]);
  request.ContentType = "application/xml";
  request.Headers.Add("x-ms-version", "2009-10-01");
  using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
  {
      // Parse the web response.
      Stream responseStream = response.GetResponseStream();
      StreamReader reader = new StreamReader(responseStream);
  
      // Display the raw response.
      Console.WriteLine("Deployment Details:");
      string deployment = reader.ReadToEnd();
  
      // Close the resources no longer needed.
      responseStream.Close();
  }
  </code></pre>
  
  <p>But I am getting configuration in encrypted format.</p>
  
  <p>But if run azure powershell it gives me the configuration in plain text.</p>
  
  <pre><code>$deployment = Get-AzureDeployment -ServiceName $serviceName -Slot $slot
  $deployedConfig = $deployment.Configuration
  </code></pre>
  
  <p>Since I have to use service management API how can I do it?</p>