src/ServiceManagement/ServiceManagementRestProxy.php
public function walkUpgradeDomain(
        $name, $upgradeDomain, GetDeploymentOptions $options)
    {
        Validate::isString($name, 'name');
        Validate::notNullOrEmpty($name, 'name');
        Validate::isInteger($upgradeDomain, 'upgradeDomain');
        Validate::notNullOrEmpty($options, 'options');

        $body = $this->_createRequestXml(
            [Resources::XTAG_UPGRADE_DOMAIN => $upgradeDomain],
            Resources::XTAG_WALK_UPGRADE_DOMAIN
        );
        $context = new HttpCallContext();
        $context->setMethod(Resources::HTTP_POST);
        $context->setPath($this->_getDeploymentPath($name, $options).'/');
        $context->addStatusCode(Resources::STATUS_ACCEPTED);
        $context->addQueryParameter(
            Resources::QP_COMP,
            Resources::QPV_WALK_UPGRADE_DOMAIN
        );
        $context->setBody($body);
        $context->addHeader(
            Resources::CONTENT_TYPE,
            Resources::XML_CONTENT_TYPE
        );

        assert(Utilities::endsWith($context->getPath(), '/'));
        $response = $this->sendHttpContext($context);

        return AsynchronousOperationResult::create(HttpClient::getResponseHeaders($response));
    }
public function walkUpgradeDomain(
        $name, $upgradeDomain, GetDeploymentOptions $options)
    {
        Validate::isString($name, 'name');
        Validate::notNullOrEmpty($name, 'name');
        Validate::isInteger($upgradeDomain, 'upgradeDomain');
        Validate::notNullOrEmpty($options, 'options');

        $body = $this->_createRequestXml(
            [Resources::XTAG_UPGRADE_DOMAIN => $upgradeDomain],
            Resources::XTAG_WALK_UPGRADE_DOMAIN
        );
        $context = new HttpCallContext();
        $context->setMethod(Resources::HTTP_POST);
        $context->setPath($this->_getDeploymentPath($name, $options).'/');
        $context->addStatusCode(Resources::STATUS_ACCEPTED);
        $context->addQueryParameter(
            Resources::QP_COMP,
            Resources::QPV_WALK_UPGRADE_DOMAIN
        );
        $context->setBody($body);
        $context->addHeader(
            Resources::CONTENT_TYPE,
            Resources::XML_CONTENT_TYPE
        );

        assert(Utilities::endsWith($context->getPath(), '/'));
        $response = $this->sendHttpContext($context);

        return AsynchronousOperationResult::create(HttpClient::getResponseHeaders($response));
    }
public function walkUpgradeDomain ( $ name , $ upgradeDomain , GetDeploymentOptions $ options ) { Validate :: isString ( $ name , 'name' ) ; Validate :: notNullOrEmpty ( $ name , 'name' ) ; Validate :: isInteger ( $ upgradeDomain , 'upgradeDomain' ) ; Validate :: notNullOrEmpty ( $ options , 'options' ) ; $ body = $ this -> _createRequestXml ( [ Resources :: XTAG_UPGRADE_DOMAIN => $ upgradeDomain ] , Resources :: XTAG_WALK_UPGRADE_DOMAIN ) ; $ context = new HttpCallContext ( ) ; $ context -> setMethod ( Resources :: HTTP_POST ) ; $ context -> setPath ( $ this -> _getDeploymentPath ( $ name , $ options ) . '/' ) ; $ context -> addStatusCode ( Resources :: STATUS_ACCEPTED ) ; $ context -> addQueryParameter ( Resources :: QP_COMP , Resources :: QPV_WALK_UPGRADE_DOMAIN ) ; $ context -> setBody ( $ body ) ; $ context -> addHeader ( Resources :: CONTENT_TYPE , Resources :: XML_CONTENT_TYPE ) ; assert ( Utilities :: endsWith ( $ context -> getPath ( ) , '/' ) ) ; $ response = $ this -> sendHttpContext ( $ context ) ; return AsynchronousOperationResult :: create ( HttpClient :: getResponseHeaders ( $ response ) ) ; }
Specifies the next upgrade domain to be walked during manual in-place upgrade
or configuration change.

Note that you can walk an upgrade domain either by specifying the deployment
environment (staging or production), or by specifying the deployment's unique
name.

@param string               $name          The hosted service name
@param int                  $upgradeDomain The integer value that identifies the upgrade domain to walk. Upgrade
domains are identified with a zero-based index: the first upgrade
domain has an ID of 0, the second has an ID of 1, and so on
@param GetDeploymentOptions $options       The optional parameters

@return AsynchronousOperationResult

@see http://msdn.microsoft.com/en-us/library/windowsazure/ee460800.aspx
Specifies the next upgrade domain to be walked during manual in - place upgrade or configuration change .