Skip to content

[AVM Module Issue]: Add option to ignore_change of the the gallery_application  #53

Open
@julienmongin-hcl

Description

@julienmongin-hcl

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Issue Type?

Feature Request

(Optional) Module Version

No response

(Optional) Correlation Id

No response

Description

Do you think you add an option to ignore the change for the gallery_application

Why : today we have a Azure policy to force the installation of applications via the VM application , so if we rerun the terraform script VM application will be remove

I try to use :

lifecycle {
ignore_changes = [
# Ignore changes to tags, e.g. because a management agent
# updates these based on some ruleset managed elsewhere.
gallery_application,
]
}

But there is no way for the caller of a module to force a new behavior on a resource inside that module...

Thanks
PS : documentation for gallery_applications format is not clear

in the doc

gallery_applications = [
  {
    version_id = "/subscriptions/{subscriptionId}/resourceGroups/<resource group>/providers/Microsoft.Compute/galleries/{gallery name}/applications/{application name}/versions/{version}"
    order      = 1
]

it should be

gallery_applications = [ {version_id = "/subscriptions/{subscriptionId}/resourceGroups/<resource group>/providers/Microsoft.Compute/galleries/{gallery name}/applications/{application name}/versions/{version}", order = 1 } ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language: Terraform 🌐This is related to the Terraform IaC languageStatus: Long Term ⏳We will do it, but will take a longer amount of time due to complexity/prioritiesType: Feature Request ➕New feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions