Sdílet prostřednictvím


AzureSqlElasticJobAdapter.GetServerLocationAndThrowIfAgentNotSupportedByServer Method

Definition

Gets the Location of the server. Throws an exception if the server does not support Azure SQL Database Agents.

public string GetServerLocationAndThrowIfAgentNotSupportedByServer (string resourceGroupName, string serverName);
member this.GetServerLocationAndThrowIfAgentNotSupportedByServer : string * string -> string
Public Function GetServerLocationAndThrowIfAgentNotSupportedByServer (resourceGroupName As String, serverName As String) As String

Parameters

resourceGroupName
String

The resource group the server is in

serverName
String

The name of the server

Returns

Remarks

These 2 operations (get location, throw if not supported) are combined in order to minimize round trips.

Applies to