HybridComputeExtensions.GetHybridComputeLicenses 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.
Overloads
GetHybridComputeLicenses(ResourceGroupResource) |
Gets a collection of HybridComputeLicenseResources in the ResourceGroupResource. MockingTo mock this method, please mock GetHybridComputeLicenses() instead. |
GetHybridComputeLicenses(SubscriptionResource, CancellationToken) |
The operation to get all licenses of a non-Azure machine
|
GetHybridComputeLicenses(ResourceGroupResource)
- Source:
- HybridComputeExtensions.cs
- Source:
- HybridComputeExtensions.cs
Gets a collection of HybridComputeLicenseResources in the ResourceGroupResource. MockingTo mock this method, please mock GetHybridComputeLicenses() instead.
public static Azure.ResourceManager.HybridCompute.HybridComputeLicenseCollection GetHybridComputeLicenses (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetHybridComputeLicenses : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.HybridCompute.HybridComputeLicenseCollection
<Extension()>
Public Function GetHybridComputeLicenses (resourceGroupResource As ResourceGroupResource) As HybridComputeLicenseCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of HybridComputeLicenseResources and their operations over a HybridComputeLicenseResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetHybridComputeLicenses(SubscriptionResource, CancellationToken)
- Source:
- HybridComputeExtensions.cs
- Source:
- HybridComputeExtensions.cs
The operation to get all licenses of a non-Azure machine
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/licenses
- Operation Id: Licenses_ListBySubscription
- Default Api Version: 2024-07-10
- Resource: HybridComputeLicenseResource
public static Azure.Pageable<Azure.ResourceManager.HybridCompute.HybridComputeLicenseResource> GetHybridComputeLicenses (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetHybridComputeLicenses : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.HybridCompute.HybridComputeLicenseResource>
<Extension()>
Public Function GetHybridComputeLicenses (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of HybridComputeLicenseResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of HybridComputeLicenseResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET