pulumi_wasm_providers_azure_mini::compute

Module gallery_application

source
Expand description

Manages a Gallery Application.

§Example Usage

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let example = resource_group::create(
        "example",
        ResourceGroupArgs::builder()
            .location("West Europe")
            .name("example-rg")
            .build_struct(),
    );
    let exampleGalleryApplication = gallery_application::create(
        "exampleGalleryApplication",
        GalleryApplicationArgs::builder()
            .gallery_id("${exampleSharedImageGallery.id}")
            .location("${example.location}")
            .name("example-app")
            .supported_os_type("Linux")
            .build_struct(),
    );
    let exampleSharedImageGallery = shared_image_gallery::create(
        "exampleSharedImageGallery",
        SharedImageGalleryArgs::builder()
            .location("${example.location}")
            .name("examplegallery")
            .resource_group_name("${example.name}")
            .build_struct(),
    );
}

§Import

Gallery Applications can be imported using the resource id, e.g.

$ pulumi import azure:compute/galleryApplication:GalleryApplication example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments