Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.62 KB

File metadata and controls

54 lines (40 loc) · 1.62 KB
page_title subcategory description
citrix_desktop_icon Resource - citrix
CVAD
Resource for managing desktop icons. -> Note Please use just one icon resource per icon. Having multiple icon resources with the same icon data will result in inconsistencies.

citrix_desktop_icon (Resource)

Resource for managing desktop icons.

-> Note Please use just one icon resource per icon. Having multiple icon resources with the same icon data will result in inconsistencies.

Example Usage

resource "citrix_desktop_icon" "example-desktop-icon" {
  raw_data                    = filebase64("path/to/desktopicon.ico")
}
# Use filebase64 to encode a file's content in base64 format.

Schema

Optional

  • file_path (String) Path to the icon file. Exactly one of raw_data and file_path is required.
  • raw_data (String, Sensitive) Prepare an icon in ICO format and convert its binary raw data to base64 encoding. Use the base64 encoded string as the value of this attribute. Exactly one of raw_data and file_path is required.

Read-Only

  • id (String) GUID identifier of the desktop icon.

Import

Import is supported using the following syntax:

# Desktop icon can be imported by specifying the ID
terraform import citrix_desktop_icon.example-desktop-icon 1

Generating Raw Data of an icon

To generate in Linux/Mac terminal use the command:

base64 fileName.ico

To generate in Powershell:

[System.Convert]::ToBase64String(Get-Content fileName.ico -Encoding Byte)