/** * Unregister a subscription from a resource provider. * * @param string $subscriptionId subscription::subscriptionId value of one of user's subscriptions * @param string $resourceProvider The namespace of the resource provider with which you want to unregister from your subscription * @return ProviderData * @throws AzureException */ public function unregisterSubscription($subscriptionId, $resourceProvider) { $result = null; $path = '/subscriptions/' . $subscriptionId . '/providers/' . $resourceProvider . '/unregister'; $request = $this->getClient()->prepareRequest($path, 'POST', self::SUBSCRIPTION_API_VERSION, self::URL_MANAGEMENT_WINDOWS); $response = $this->getClient()->call($request); if (!$response->hasError()) { $result = ProviderData::initArray($response->getResult()); } return $result; }