title: How do I retrieve and update an azure configuration file for a service?
body: <p>i am completely new to Azure. I would like to be able to retrieve a services configuration file and then change the values within it. I am stuck at the very start as i do not know how go about editing the config file when it has been retrieved or what type (XMLDocument etc) it has to be set as to edit it. When i retrieve a services properties it returns the following XML</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;HostedService xmlns="http://schemas.microsoft.com/windowsazure"&gt;
    &lt;Url&gt;hosted-service-url&lt;/Url&gt;
    &lt;ServiceName&gt;hosted-service-name&lt;/ServiceName&gt;
    &lt;HostedServiceProperties&gt;
      &lt;Description&gt;description&lt;/Description&gt;
      &lt;Location&gt;location&lt;/Location&gt;
      &lt;AffinityGroup&gt;affinity-group&lt;/AffinityGroup&gt;
      &lt;Label&gt;base-64-encoded-name-of-the-service&lt;/Label&gt;
    &lt;/HostedServiceProperties&gt;
    &lt;Deployments&gt;
      &lt;Deployment&gt;
        &lt;Name&gt;deployment-name&lt;/Name&gt;
        &lt;DeploymentSlot&gt;deployment-slot&lt;/DeploymentSlot&gt;
        &lt;PrivateID&gt;deployment-id&lt;/PrivateID&gt;
        &lt;Status&gt;deployment-status&lt;/Status&gt;
        &lt;Label&gt;base64-encoded-deployment-label&lt;/Label&gt;
        &lt;Url&gt;deployment-url&lt;/Url&gt;
        &lt;Configuration&gt;base-64-encoded-configuration-file&lt;/Configuration&gt;
        &lt;RoleInstanceList&gt;
          &lt;RoleInstance&gt;
            &lt;RoleName&gt;role-name&lt;/RoleName&gt;
            &lt;InstanceName&gt;role-instance-name&lt;/InstanceName&gt;
            &lt;InstanceStatus&gt;instance-status&lt;/InstanceStatus&gt;
          &lt;/RoleInstance&gt;
        &lt;/RoleInstanceList&gt;
        &lt;UpgradeDomainCount&gt;upgrade-domain-count&lt;/UpgradeDomainCount&gt;
        &lt;RoleList&gt;
          &lt;Role&gt;
            &lt;RoleName&gt;role-name&lt;/RoleName&gt;
            &lt;OsVersion&gt;operating-system-version&lt;/OsVersion&gt;
          &lt;/Role&gt;
        &lt;/RoleList&gt;
        &lt;SdkVersion&gt;sdk-version-used-to-create-package&lt;/SdkVersion&gt;
        &lt;InputEndpointList&gt;
           &lt;InputEndpoint&gt;
              &lt;RoleName&gt;role-name&lt;/RoleName&gt;
              &lt;Vip&gt;virtual-ip-address&lt;/Vip&gt;
              &lt;Port&gt;port-number&lt;/Port&gt;
           &lt;/InputEndpoint&gt;
           …
        &lt;/InputEndpointList&gt;
        &lt;Locked&gt;deployment-write-allowed-status&lt;/Locked&gt;
        &lt;RollbackAllowed&gt;rollback-operation-allowed&lt;/RollbackAllowed&gt;
      &lt;/Deployment&gt;
    &lt;/Deployments&gt;
  &lt;/HostedService&gt;
  </code></pre>
  
  <p>So like i said,what i want to do is take the "base-64-encoded-configuration-file" from this XML and edit its values. But i cannot figure out how to take the configuration file out of the above XML.</p>
  
  <p>Any help or even a point in the right direction would be greatly appreciated, cheers.</p>