Skip to content

Commit

Permalink
fix: updated win_get examples (#282)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ShocOne authored Dec 31, 2024
1 parent 855d685 commit e54f1fc
Showing 1 changed file with 60 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit e54f1fc

Please sign in to comment.