AzureSqlElasticJobAdapter.GetServerLocationAndThrowIfAgentNotSupportedByServer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.