Delen via


ArmComputeModelFactory.ComputeResourceSku Method

Definition

Initializes a new instance of ComputeResourceSku.

public static Azure.ResourceManager.Compute.Models.ComputeResourceSku ComputeResourceSku (string resourceType = default, string name = default, string tier = default, string size = default, string family = default, string kind = default, Azure.ResourceManager.Compute.Models.ComputeResourceSkuCapacity capacity = default, System.Collections.Generic.IEnumerable<Azure.Core.AzureLocation> locations = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ComputeResourceSkuLocationInfo> locationInfo = default, System.Collections.Generic.IEnumerable<string> apiVersions = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ResourceSkuCosts> costs = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ComputeResourceSkuCapabilities> capabilities = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ComputeResourceSkuRestrictions> restrictions = default);
static member ComputeResourceSku : string * string * string * string * string * string * Azure.ResourceManager.Compute.Models.ComputeResourceSkuCapacity * seq<Azure.Core.AzureLocation> * seq<Azure.ResourceManager.Compute.Models.ComputeResourceSkuLocationInfo> * seq<string> * seq<Azure.ResourceManager.Compute.Models.ResourceSkuCosts> * seq<Azure.ResourceManager.Compute.Models.ComputeResourceSkuCapabilities> * seq<Azure.ResourceManager.Compute.Models.ComputeResourceSkuRestrictions> -> Azure.ResourceManager.Compute.Models.ComputeResourceSku
Public Shared Function ComputeResourceSku (Optional resourceType As String = Nothing, Optional name As String = Nothing, Optional tier As String = Nothing, Optional size As String = Nothing, Optional family As String = Nothing, Optional kind As String = Nothing, Optional capacity As ComputeResourceSkuCapacity = Nothing, Optional locations As IEnumerable(Of AzureLocation) = Nothing, Optional locationInfo As IEnumerable(Of ComputeResourceSkuLocationInfo) = Nothing, Optional apiVersions As IEnumerable(Of String) = Nothing, Optional costs As IEnumerable(Of ResourceSkuCosts) = Nothing, Optional capabilities As IEnumerable(Of ComputeResourceSkuCapabilities) = Nothing, Optional restrictions As IEnumerable(Of ComputeResourceSkuRestrictions) = Nothing) As ComputeResourceSku

Parameters

resourceType
String

The type of resource the SKU applies to.

name
String

The name of SKU.

tier
String

Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> Standard<br /><br /> Basic.

size
String

The Size of the SKU.

family
String

The Family of this particular SKU.

kind
String

The Kind of resources that are supported in this SKU.

capacity
ComputeResourceSkuCapacity

Specifies the number of virtual machines in the scale set.

locations
IEnumerable<AzureLocation>

The set of locations that the SKU is available.

locationInfo
IEnumerable<ComputeResourceSkuLocationInfo>

A list of locations and availability zones in those locations where the SKU is available.

apiVersions
IEnumerable<String>

The api versions that support this SKU.

costs
IEnumerable<ResourceSkuCosts>

Metadata for retrieving price info.

capabilities
IEnumerable<ComputeResourceSkuCapabilities>

A name value pair to describe the capability.

restrictions
IEnumerable<ComputeResourceSkuRestrictions>

The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.

Returns

A new ComputeResourceSku instance for mocking.

Applies to