你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Plan Class
Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.
- Inheritance
-
azure.mgmt.compute._serialization.ModelPlan
Constructor
Plan(*, name: str | None = None, publisher: str | None = None, product: str | None = None, promotion_code: str | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
name
|
The plan ID. |
publisher
|
The publisher ID. |
product
|
Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. |
promotion_code
|
The promotion code. |
Variables
Name | Description |
---|---|
name
|
The plan ID. |
publisher
|
The publisher ID. |
product
|
Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. |
promotion_code
|
The promotion code. |