你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

Restriction Class

The restriction because of which SKU cannot be used.

Constructor

Restriction(*args: Any, **kwargs: Any)

Variables

Name Description
type
str

The type of restrictions. As of now only possible value for this is location.

values_property

The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.

reason_code

The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Known values are: "QuotaId" and "NotAvailableForSubscription".

Attributes

reason_code

The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Known values are: "QuotaId" and "NotAvailableForSubscription".

reason_code: str | _models.ReasonCode | None

type

The type of restrictions. As of now only possible value for this is location.

type: str | None

values_property

The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.

values_property: list[str] | None