SqlVirtualMachineExtensions.GetSqlVmGroup Method

Definition

Gets a SQL virtual machine group. <item> Mocking. To mock this method, please mock GetSqlVmGroup(String, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.SqlVirtualMachine.SqlVmGroupResource> GetSqlVmGroup(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string sqlVmGroupName, System.Threading.CancellationToken cancellationToken = default);
static member GetSqlVmGroup : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SqlVirtualMachine.SqlVmGroupResource>
<Extension()>
Public Function GetSqlVmGroup (resourceGroupResource As ResourceGroupResource, sqlVmGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SqlVmGroupResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

sqlVmGroupName
String

Name of the SQL virtual machine group.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

sqlVmGroupName is an empty string, and was expected to be non-empty.

resourceGroupResource is null.

Applies to