CapacityReservationGroupsOperationsExtensions.CreateOrUpdateAsync 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.
The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup> CreateOrUpdateAsync (this Microsoft.Azure.Management.Compute.ICapacityReservationGroupsOperations operations, string resourceGroupName, string capacityReservationGroupName, Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Compute.ICapacityReservationGroupsOperations * string * string * Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ICapacityReservationGroupsOperations, resourceGroupName As String, capacityReservationGroupName As String, parameters As CapacityReservationGroup, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CapacityReservationGroup)
Parameters
- operations
- ICapacityReservationGroupsOperations
The operations group for this extension method.
- resourceGroupName
- String
The name of the resource group.
- capacityReservationGroupName
- String
The name of the capacity reservation group.
- parameters
- CapacityReservationGroup
Parameters supplied to the Create capacity reservation Group.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Azure SDK for .NET