Restriction Class

Definition

The restrictions preventing this SKU from being used.

public class Restriction
type Restriction = class
Public Class Restriction
Inheritance
Restriction

Constructors

Restriction()

Initializes a new instance of the Restriction class.

Restriction(String, IList<String>, String)

Initializes a new instance of the Restriction class.

Properties

ReasonCode

Gets or sets the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". "QuotaId" is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. "NotAvailableForSubscription" is related to capacity at the datacenter. Possible values include: 'QuotaId', 'NotAvailableForSubscription'

Type

Gets the type of restrictions. In this version, the only possible value for this is location.

Values

Gets the value of restrictions. If the restriction type is set to location, then this would be the different locations where the SKU is restricted.

Applies to