ServiceGroupsExtensions.GetServiceGroup 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.
Get the details of the serviceGroup <item> Mocking. To mock this method, please mock GetServiceGroup(String, CancellationToken) instead. </item>
public static Azure.Response<Azure.ResourceManager.ServiceGroups.ServiceGroupResource> GetServiceGroup(this Azure.ResourceManager.Resources.TenantResource tenantResource, string serviceGroupName, System.Threading.CancellationToken cancellationToken = default);
static member GetServiceGroup : Azure.ResourceManager.Resources.TenantResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ServiceGroups.ServiceGroupResource>
<Extension()>
Public Function GetServiceGroup (tenantResource As TenantResource, serviceGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ServiceGroupResource)
Parameters
- tenantResource
- TenantResource
The TenantResource the method will execute against.
- serviceGroupName
- String
ServiceGroup Name.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
serviceGroupName is an empty string, and was expected to be non-empty.
tenantResource is null.