ArmComputeModelFactory.CapacityReservationGroupData 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.
public static Azure.ResourceManager.Compute.CapacityReservationGroupData CapacityReservationGroupData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ComputeSubResourceData> capacityReservationResources = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ComputeSubResourceData> associatedVirtualMachineResources = default, Azure.ResourceManager.Compute.Models.CapacityReservationGroupInstanceView instanceView = default, Azure.ResourceManager.Compute.Models.CapacityReservationType? reservationType = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData> sharingSubscriptionResources = default, System.Collections.Generic.IEnumerable<string> zones = default);
static member CapacityReservationGroupData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * seq<Azure.ResourceManager.Compute.Models.ComputeSubResourceData> * seq<Azure.ResourceManager.Compute.Models.ComputeSubResourceData> * Azure.ResourceManager.Compute.Models.CapacityReservationGroupInstanceView * Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationType> * seq<Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData> * seq<string> -> Azure.ResourceManager.Compute.CapacityReservationGroupData
Public Shared Function CapacityReservationGroupData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional capacityReservationResources As IEnumerable(Of ComputeSubResourceData) = Nothing, Optional associatedVirtualMachineResources As IEnumerable(Of ComputeSubResourceData) = Nothing, Optional instanceView As CapacityReservationGroupInstanceView = Nothing, Optional reservationType As Nullable(Of CapacityReservationType) = Nothing, Optional sharingSubscriptionResources As IEnumerable(Of ComputeWriteableSubResourceData) = Nothing, Optional zones As IEnumerable(Of String) = Nothing) As CapacityReservationGroupData
Parameters
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
- name
- String
The name of the resource.
- resourceType
- ResourceType
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
- systemData
- SystemData
Azure Resource Manager metadata containing createdBy and modifiedBy information.
- tags
- IDictionary<String,String>
Resource tags.
- location
- AzureLocation
The geo-location where the resource lives.
- capacityReservationResources
- IEnumerable<ComputeSubResourceData>
A list of all capacity reservation resource ids that belong to capacity reservation group.
- associatedVirtualMachineResources
- IEnumerable<ComputeSubResourceData>
A list of references to all virtual machines associated to the capacity reservation group.
- instanceView
- CapacityReservationGroupInstanceView
The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group.
- reservationType
- Nullable<CapacityReservationType>
Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity reservations and 'Targeted' for reservations that enable a VM to consume a specific capacity reservation when a capacity reservation group is provided. The reservation type is immutable and cannot be changed after it is assigned.
- sharingSubscriptionResources
- IEnumerable<ComputeWriteableSubResourceData>
Specifies an array of subscription resource IDs that capacity reservation group is shared with. Block Capacity Reservations does not support sharing across subscriptions. Note: Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.
- zones
- IEnumerable<String>
The availability zones.
Returns
A new CapacityReservationGroupData instance for mocking.