public function ResumeServer(DBServer $DBServer)
{
$env = $DBServer->GetEnvironmentObject();
$azure = $env->azure();
try {
$res = $azure->compute->virtualMachine->start($env->keychain(SERVER_PLATFORMS::AZURE)->properties[CloudCredentialsProperty::AZURE_SUBSCRIPTION_ID], $DBServer->GetProperty(\AZURE_SERVER_PROPERTIES::RESOURCE_GROUP), $DBServer->GetProperty(\AZURE_SERVER_PROPERTIES::SERVER_NAME));
if ($res) {
parent::ResumeServer($DBServer);
return true;
} else {
//TODO: Throw Exception
}
} catch (NotFoundException $e) {
throw new InstanceNotFoundException($e->getMessage(), $e->getCode(), $e);
}
}