From e54f1fc540368183230afed9dfe0e214ba99b353 Mon Sep 17 00:00:00 2001 From: ShocOne <62835948+ShocOne@users.noreply.github.com> Date: Tue, 31 Dec 2024 17:58:32 +0000 Subject: [PATCH] fix: updated win_get examples (#282) * feat: added option to populate metadata manually for winget app * feat: enhance WinGet app resource to support base64 icon decoding and improve schema descriptions * feat:updated win_get example --- .../resource.tf | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/examples/microsoft365_graph_beta/microsoft365_graph_beta_device_and_app_management_win_get_app/resource.tf b/examples/microsoft365_graph_beta/microsoft365_graph_beta_device_and_app_management_win_get_app/resource.tf index a0657541..d7ff934a 100644 --- a/examples/microsoft365_graph_beta/microsoft365_graph_beta_device_and_app_management_win_get_app/resource.tf +++ b/examples/microsoft365_graph_beta/microsoft365_graph_beta_device_and_app_management_win_get_app/resource.tf @@ -1,3 +1,63 @@ +resource "microsoft365_graph_beta_device_and_app_management_win_get_app" "whatsapp" { + package_identifier = "9NKSQGP7F2NH" # The unique identifier for the app obtained from msft app store + automatically_generate_metadata = true + + # Install experience settings + install_experience = { + run_as_account = "user" # Can be 'system' or 'user' + } + + role_scope_tag_ids = ["0"] + + # Optional fields + is_featured = true + privacy_information_url = "https://privacy.example.com" + information_url = "https://info.example.com" + owner = "example-owner" + developer = "example-developer" + notes = "Some relevant notes for this app." + + # Optional: Define custom timeouts + timeouts = { + create = "10m" + update = "10m" + delete = "5m" + } +} + +resource "microsoft365_graph_beta_device_and_app_management_win_get_app" "Adobe_Acrobat_Reader_DC" { + package_identifier = "xpdp273c0xhqh2" # The unique identifier for the app obtained from msft app store + automatically_generate_metadata = false + display_name = "Adobe Acrobat Reader DC" + description = "Adobe Acrobat Reader DC is the free, trusted standard for viewing, printing, signing, and annotating PDFs. It's the only PDF viewer that can open and interact with all types of PDF content – including forms and multimedia." + publisher = "Adobe Inc." + large_icon = { + type = "image/png" + value = filebase64("${path.module}/Adobe_Reader_XI_icon.png") + } + # Install experience settings + install_experience = { + run_as_account = "user" # Can be 'system' or 'user' + } + + role_scope_tag_ids = ["0"] + + # Optional fields + is_featured = true + privacy_information_url = "https://privacy.example.com" + information_url = "https://info.example.com" + owner = "example-owner" + developer = "example-developer" + notes = "Some relevant notes for this app." + + # Optional: Define custom timeouts + timeouts = { + create = "10m" + update = "10m" + delete = "5m" + } +} + resource "microsoft365_graph_beta_device_and_app_management_win_get_app" "visual_studio_code" { package_identifier = "XP9KHM4BK9FZ7Q" # The unique identifier for the app obtained from msft app store