CommunityGalleryImage Class
Specifies information about the gallery image definition that you want to create or update.
Variables are only populated by the server, and will be ignored when sending a request.
- Inheritance
-
azure.mgmt.compute.v2021_07_01.models._models_py3.PirCommunityGalleryResourceCommunityGalleryImage
Constructor
CommunityGalleryImage(*, unique_id: Optional[str] = None, os_type: Optional[Union[str, azure.mgmt.compute.v2021_07_01.models._compute_management_client_enums.OperatingSystemTypes]] = None, os_state: Optional[Union[str, azure.mgmt.compute.v2021_07_01.models._compute_management_client_enums.OperatingSystemStateTypes]] = None, end_of_life_date: Optional[datetime.datetime] = None, identifier: Optional[azure.mgmt.compute.v2021_07_01.models._models_py3.GalleryImageIdentifier] = None, recommended: Optional[azure.mgmt.compute.v2021_07_01.models._models_py3.RecommendedMachineConfiguration] = None, disallowed: Optional[azure.mgmt.compute.v2021_07_01.models._models_py3.Disallowed] = None, hyper_v_generation: Optional[Union[str, azure.mgmt.compute.v2021_07_01.models._compute_management_client_enums.HyperVGeneration]] = None, features: Optional[List[azure.mgmt.compute.v2021_07_01.models._models_py3.GalleryImageFeature]] = None, purchase_plan: Optional[azure.mgmt.compute.v2021_07_01.models._models_py3.ImagePurchasePlan] = None, **kwargs)
Parameters
- os_type
- str or OperatingSystemTypes
This property allows you to specify the type of the OS that is included in the
disk when creating a VM from a managed image. <br>``<br> Possible values are:
<br>``<br> Windows <br>``<br> Linux. Possible values
include: "Windows", "Linux".
- os_state
- str or OperatingSystemStateTypes
This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: "Generalized", "Specialized".
- end_of_life_date
- datetime
The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- recommended
- RecommendedMachineConfiguration
The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- hyper_v_generation
- str or HyperVGeneration
The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: "V1", "V2".
- purchase_plan
- ImagePurchasePlan
Describes the gallery image definition purchase plan. This is used by marketplace images.
Variables
- name
- str
Resource name.
- location
- str
Resource location.
- type
- str
Resource type.
Feedback
Submit and view feedback for