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.v2022_03_03.models._models_py3.PirCommunityGalleryResource
CommunityGalleryImage

Constructor

CommunityGalleryImage(*, unique_id: str | None = None, os_type: str | _models.OperatingSystemTypes | None = None, os_state: str | _models.OperatingSystemStateTypes | None = None, end_of_life_date: datetime | None = None, identifier: _models.CommunityGalleryImageIdentifier | None = None, recommended: _models.RecommendedMachineConfiguration | None = None, disallowed: _models.Disallowed | None = None, hyper_v_generation: str | _models.HyperVGeneration | None = None, features: List[_models.GalleryImageFeature] | None = None, purchase_plan: _models.ImagePurchasePlan | None = None, architecture: str | _models.Architecture | None = None, privacy_statement_uri: str | None = None, eula: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
unique_id
str

The unique id of this community gallery.

os_type

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. Known values are: "Windows" and "Linux".

os_state

This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Known values are: "Generalized" and "Specialized".

end_of_life_date

The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.

identifier

This is the community gallery image definition identifier.

recommended

The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.

disallowed

Describes the disallowed disk types.

hyper_v_generation

The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2".

features

A list of gallery image features.

purchase_plan

Describes the gallery image definition purchase plan. This is used by marketplace images.

architecture

The architecture of the image. Applicable to OS disks only. Known values are: "x64" and "Arm64".

privacy_statement_uri
str

Privacy statement uri for the current community gallery image.

eula
str

End-user license agreement for the current community gallery image.

Variables

Name Description
name
str

Resource name.

location
str

Resource location.

type
str

Resource type.

unique_id
str

The unique id of this community gallery.

os_type

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. Known values are: "Windows" and "Linux".

os_state

This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Known values are: "Generalized" and "Specialized".

end_of_life_date

The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.

identifier

This is the community gallery image definition identifier.

recommended

The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.

disallowed

Describes the disallowed disk types.

hyper_v_generation

The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2".

features

A list of gallery image features.

purchase_plan

Describes the gallery image definition purchase plan. This is used by marketplace images.

architecture

The architecture of the image. Applicable to OS disks only. Known values are: "x64" and "Arm64".

privacy_statement_uri
str

Privacy statement uri for the current community gallery image.

eula
str

End-user license agreement for the current community gallery image.