azure-native.labservices.GalleryImage
Explore with Pulumi AI
Represents an image from the Azure Marketplace API Version: 2018-10-15.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:labservices:GalleryImage myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages/{galleryImageName} 
Create GalleryImage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GalleryImage(name: string, args: GalleryImageArgs, opts?: CustomResourceOptions);@overload
def GalleryImage(resource_name: str,
                 args: GalleryImageArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def GalleryImage(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 lab_account_name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 gallery_image_name: Optional[str] = None,
                 is_enabled: Optional[bool] = None,
                 is_override: Optional[bool] = None,
                 is_plan_authorized: Optional[bool] = None,
                 location: Optional[str] = None,
                 provisioning_state: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None,
                 unique_identifier: Optional[str] = None)func NewGalleryImage(ctx *Context, name string, args GalleryImageArgs, opts ...ResourceOption) (*GalleryImage, error)public GalleryImage(string name, GalleryImageArgs args, CustomResourceOptions? opts = null)
public GalleryImage(String name, GalleryImageArgs args)
public GalleryImage(String name, GalleryImageArgs args, CustomResourceOptions options)
type: azure-native:labservices:GalleryImage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GalleryImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GalleryImageArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GalleryImageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GalleryImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GalleryImageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeGalleryImageResource = new AzureNative.Labservices.GalleryImage("azure-nativeGalleryImageResource", new()
{
    LabAccountName = "string",
    ResourceGroupName = "string",
    GalleryImageName = "string",
    IsEnabled = false,
    IsOverride = false,
    IsPlanAuthorized = false,
    Location = "string",
    ProvisioningState = "string",
    Tags = 
    {
        { "string", "string" },
    },
    UniqueIdentifier = "string",
});
example, err := labservices.NewGalleryImage(ctx, "azure-nativeGalleryImageResource", &labservices.GalleryImageArgs{
	LabAccountName:    "string",
	ResourceGroupName: "string",
	GalleryImageName:  "string",
	IsEnabled:         false,
	IsOverride:        false,
	IsPlanAuthorized:  false,
	Location:          "string",
	ProvisioningState: "string",
	Tags: map[string]interface{}{
		"string": "string",
	},
	UniqueIdentifier: "string",
})
var azure_nativeGalleryImageResource = new GalleryImage("azure-nativeGalleryImageResource", GalleryImageArgs.builder()
    .labAccountName("string")
    .resourceGroupName("string")
    .galleryImageName("string")
    .isEnabled(false)
    .isOverride(false)
    .isPlanAuthorized(false)
    .location("string")
    .provisioningState("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .uniqueIdentifier("string")
    .build());
azure_native_gallery_image_resource = azure_native.labservices.GalleryImage("azure-nativeGalleryImageResource",
    lab_account_name=string,
    resource_group_name=string,
    gallery_image_name=string,
    is_enabled=False,
    is_override=False,
    is_plan_authorized=False,
    location=string,
    provisioning_state=string,
    tags={
        string: string,
    },
    unique_identifier=string)
const azure_nativeGalleryImageResource = new azure_native.labservices.GalleryImage("azure-nativeGalleryImageResource", {
    labAccountName: "string",
    resourceGroupName: "string",
    galleryImageName: "string",
    isEnabled: false,
    isOverride: false,
    isPlanAuthorized: false,
    location: "string",
    provisioningState: "string",
    tags: {
        string: "string",
    },
    uniqueIdentifier: "string",
});
type: azure-native:labservices:GalleryImage
properties:
    galleryImageName: string
    isEnabled: false
    isOverride: false
    isPlanAuthorized: false
    labAccountName: string
    location: string
    provisioningState: string
    resourceGroupName: string
    tags:
        string: string
    uniqueIdentifier: string
GalleryImage Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The GalleryImage resource accepts the following input properties:
- LabAccount stringName 
- The name of the lab Account.
- ResourceGroup stringName 
- The name of the resource group.
- GalleryImage stringName 
- The name of the gallery Image.
- IsEnabled bool
- Indicates whether this gallery image is enabled.
- IsOverride bool
- Indicates whether this gallery has been overridden for this lab account
- bool
- Indicates if the plan has been authorized for programmatic deployment.
- Location string
- The location of the resource.
- ProvisioningState string
- The provisioning status of the resource.
- Dictionary<string, string>
- The tags of the resource.
- UniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- LabAccount stringName 
- The name of the lab Account.
- ResourceGroup stringName 
- The name of the resource group.
- GalleryImage stringName 
- The name of the gallery Image.
- IsEnabled bool
- Indicates whether this gallery image is enabled.
- IsOverride bool
- Indicates whether this gallery has been overridden for this lab account
- bool
- Indicates if the plan has been authorized for programmatic deployment.
- Location string
- The location of the resource.
- ProvisioningState string
- The provisioning status of the resource.
- map[string]string
- The tags of the resource.
- UniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- labAccount StringName 
- The name of the lab Account.
- resourceGroup StringName 
- The name of the resource group.
- galleryImage StringName 
- The name of the gallery Image.
- isEnabled Boolean
- Indicates whether this gallery image is enabled.
- isOverride Boolean
- Indicates whether this gallery has been overridden for this lab account
- Boolean
- Indicates if the plan has been authorized for programmatic deployment.
- location String
- The location of the resource.
- provisioningState String
- The provisioning status of the resource.
- Map<String,String>
- The tags of the resource.
- uniqueIdentifier String
- The unique immutable identifier of a resource (Guid).
- labAccount stringName 
- The name of the lab Account.
- resourceGroup stringName 
- The name of the resource group.
- galleryImage stringName 
- The name of the gallery Image.
- isEnabled boolean
- Indicates whether this gallery image is enabled.
- isOverride boolean
- Indicates whether this gallery has been overridden for this lab account
- boolean
- Indicates if the plan has been authorized for programmatic deployment.
- location string
- The location of the resource.
- provisioningState string
- The provisioning status of the resource.
- {[key: string]: string}
- The tags of the resource.
- uniqueIdentifier string
- The unique immutable identifier of a resource (Guid).
- lab_account_ strname 
- The name of the lab Account.
- resource_group_ strname 
- The name of the resource group.
- gallery_image_ strname 
- The name of the gallery Image.
- is_enabled bool
- Indicates whether this gallery image is enabled.
- is_override bool
- Indicates whether this gallery has been overridden for this lab account
- bool
- Indicates if the plan has been authorized for programmatic deployment.
- location str
- The location of the resource.
- provisioning_state str
- The provisioning status of the resource.
- Mapping[str, str]
- The tags of the resource.
- unique_identifier str
- The unique immutable identifier of a resource (Guid).
- labAccount StringName 
- The name of the lab Account.
- resourceGroup StringName 
- The name of the resource group.
- galleryImage StringName 
- The name of the gallery Image.
- isEnabled Boolean
- Indicates whether this gallery image is enabled.
- isOverride Boolean
- Indicates whether this gallery has been overridden for this lab account
- Boolean
- Indicates if the plan has been authorized for programmatic deployment.
- location String
- The location of the resource.
- provisioningState String
- The provisioning status of the resource.
- Map<String>
- The tags of the resource.
- uniqueIdentifier String
- The unique immutable identifier of a resource (Guid).
Outputs
All input properties are implicitly available as output properties. Additionally, the GalleryImage resource produces the following output properties:
- string
- The author of the gallery image.
- CreatedDate string
- The creation date of the gallery image.
- Description string
- The description of the gallery image.
- Icon string
- The icon of the gallery image.
- Id string
- The provider-assigned unique ID for this managed resource.
- ImageReference Pulumi.Azure Native. Lab Services. Outputs. Gallery Image Reference Response 
- The image reference of the gallery image.
- LatestOperation Pulumi.Result Azure Native. Lab Services. Outputs. Latest Operation Result Response 
- The details of the latest operation. ex: status, error
- Name string
- The name of the resource.
- PlanId string
- The third party plan that applies to this image
- Type string
- The type of the resource.
- string
- The author of the gallery image.
- CreatedDate string
- The creation date of the gallery image.
- Description string
- The description of the gallery image.
- Icon string
- The icon of the gallery image.
- Id string
- The provider-assigned unique ID for this managed resource.
- ImageReference GalleryImage Reference Response 
- The image reference of the gallery image.
- LatestOperation LatestResult Operation Result Response 
- The details of the latest operation. ex: status, error
- Name string
- The name of the resource.
- PlanId string
- The third party plan that applies to this image
- Type string
- The type of the resource.
- String
- The author of the gallery image.
- createdDate String
- The creation date of the gallery image.
- description String
- The description of the gallery image.
- icon String
- The icon of the gallery image.
- id String
- The provider-assigned unique ID for this managed resource.
- imageReference GalleryImage Reference Response 
- The image reference of the gallery image.
- latestOperation LatestResult Operation Result Response 
- The details of the latest operation. ex: status, error
- name String
- The name of the resource.
- planId String
- The third party plan that applies to this image
- type String
- The type of the resource.
- string
- The author of the gallery image.
- createdDate string
- The creation date of the gallery image.
- description string
- The description of the gallery image.
- icon string
- The icon of the gallery image.
- id string
- The provider-assigned unique ID for this managed resource.
- imageReference GalleryImage Reference Response 
- The image reference of the gallery image.
- latestOperation LatestResult Operation Result Response 
- The details of the latest operation. ex: status, error
- name string
- The name of the resource.
- planId string
- The third party plan that applies to this image
- type string
- The type of the resource.
- str
- The author of the gallery image.
- created_date str
- The creation date of the gallery image.
- description str
- The description of the gallery image.
- icon str
- The icon of the gallery image.
- id str
- The provider-assigned unique ID for this managed resource.
- image_reference GalleryImage Reference Response 
- The image reference of the gallery image.
- latest_operation_ Latestresult Operation Result Response 
- The details of the latest operation. ex: status, error
- name str
- The name of the resource.
- plan_id str
- The third party plan that applies to this image
- type str
- The type of the resource.
- String
- The author of the gallery image.
- createdDate String
- The creation date of the gallery image.
- description String
- The description of the gallery image.
- icon String
- The icon of the gallery image.
- id String
- The provider-assigned unique ID for this managed resource.
- imageReference Property Map
- The image reference of the gallery image.
- latestOperation Property MapResult 
- The details of the latest operation. ex: status, error
- name String
- The name of the resource.
- planId String
- The third party plan that applies to this image
- type String
- The type of the resource.
Supporting Types
GalleryImageReferenceResponse, GalleryImageReferenceResponseArgs        
LatestOperationResultResponse, LatestOperationResultResponseArgs        
- ErrorCode string
- Error code on failure.
- ErrorMessage string
- The error message.
- HttpMethod string
- The HttpMethod - PUT/POST/DELETE for the operation.
- OperationUrl string
- The URL to use to check long-running operation status
- RequestUri string
- Request URI of the operation.
- Status string
- The current status of the operation.
- ErrorCode string
- Error code on failure.
- ErrorMessage string
- The error message.
- HttpMethod string
- The HttpMethod - PUT/POST/DELETE for the operation.
- OperationUrl string
- The URL to use to check long-running operation status
- RequestUri string
- Request URI of the operation.
- Status string
- The current status of the operation.
- errorCode String
- Error code on failure.
- errorMessage String
- The error message.
- httpMethod String
- The HttpMethod - PUT/POST/DELETE for the operation.
- operationUrl String
- The URL to use to check long-running operation status
- requestUri String
- Request URI of the operation.
- status String
- The current status of the operation.
- errorCode string
- Error code on failure.
- errorMessage string
- The error message.
- httpMethod string
- The HttpMethod - PUT/POST/DELETE for the operation.
- operationUrl string
- The URL to use to check long-running operation status
- requestUri string
- Request URI of the operation.
- status string
- The current status of the operation.
- error_code str
- Error code on failure.
- error_message str
- The error message.
- http_method str
- The HttpMethod - PUT/POST/DELETE for the operation.
- operation_url str
- The URL to use to check long-running operation status
- request_uri str
- Request URI of the operation.
- status str
- The current status of the operation.
- errorCode String
- Error code on failure.
- errorMessage String
- The error message.
- httpMethod String
- The HttpMethod - PUT/POST/DELETE for the operation.
- operationUrl String
- The URL to use to check long-running operation status
- requestUri String
- Request URI of the operation.
- status String
- The current status of the operation.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0