HciExtensions.ValidateAsync 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.
Validates ownership vouchers. <item> Mocking. To mock this method, please mock ValidateAsync(AzureLocation, ValidateOwnershipVouchersContent, CancellationToken) instead. </item>
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Hci.Models.ValidateOwnershipVouchersResult>> ValidateAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Hci.Models.ValidateOwnershipVouchersContent content, System.Threading.CancellationToken cancellationToken = default);
static member ValidateAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * Azure.ResourceManager.Hci.Models.ValidateOwnershipVouchersContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Hci.Models.ValidateOwnershipVouchersResult>>
<Extension()>
Public Function ValidateAsync (resourceGroupResource As ResourceGroupResource, location As AzureLocation, content As ValidateOwnershipVouchersContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ValidateOwnershipVouchersResult))
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
- location
- AzureLocation
The name of the Azure region.
- content
- ValidateOwnershipVouchersContent
Ownership vouchers to be validated.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
resourceGroupResource is null.