LogoLogo
LogoLogo
  • Welcome
    • Navigation
  • RealmJoin Deployment
    • Onboarding
    • Required Permissions
    • Infrastructure Considerations
      • Multi User Devices
    • Migration to RealmJoin vNext
  • User, Group and Device Management
    • Overview
    • User Profile
    • Organization Details
    • User, Group and Device Lists
      • Advanced Search
      • User Details
      • Group Details
      • Device Details
    • User and Group Settings
      • Available RealmJoin Policies
  • App Management
    • Packages
      • Package Store
        • Application Store Details
      • Package Management
      • Package Details
      • Package Assignments
        • Package Migration
      • Package Settings
      • Packaging Requests
        • Organic Packages
    • AVD Templates
  • Automation
    • Connecting Azure Automation
      • Required Permissions
      • Runbook Parameters
    • Runbooks
      • Runbook Customization
      • Runbook Permissions
      • Naming Conventions
      • Runbook Scheduling
      • Runbook Logs
        • Runbook Job Details
      • Runbooks Changelog
    • Requirements
    • Remediation Scripts
  • RealmJoin Agent
    • Features
      • Local Admin Password Solution (LAPS)
        • KeyVault
        • Application Insights
      • Notifications
      • AnyDesk Integration
        • AnyDesk configuration
      • App Deployment using the Agent
        • RealmJoin ESP
    • Deploying the Agent
    • User Interface
  • Logs
    • Connecting Azure Log Analytics Workspace
    • Audit Log
  • RealmJoin Settings
    • Overview
    • General
    • Roles and Permissions
      • Pre-defined Roles
      • Custom Roles
        • Available Permissions
    • Group Namespaces
    • Workplace Cloud Storage
    • Self Service Forms
  • Developer Reference
    • RealmJoin API
      • Authentication
    • Interacting with Runbooks
    • Simulating a Runbook Environment
    • Local Admin Password Management
  • Other
    • FAQ
      • Security
    • Troubleshooting
      • Package Installation Issues
        • Collecting Logfiles
        • Logfiles Structure
        • Analysing chocolatey.log
        • Troubleshooting failed chocolatey packages
        • Troubleshooting failed craft packages
        • Fixes for common issues
        • Intunewin Debugging
      • LAPS Issues
        • LAPS account passwords cannot be retrieved
        • Requested LAPS Accounts are not being created
    • Changelog
  • Legal
    • Licensing
    • Support
  • RealmJoin Website
Powered by GitBook
On this page
  • Overview
  • Permissions
  • Managing templates
  • Creating a template
  • Add Applications to a Template
  • Remove Applications from a Template
  • Create a Token
  • Using a Template
  • AVD / Headless Provisioning
  • Logging and Traces

Was this helpful?

Edit on GitHub
  1. App Management

AVD Templates

Last updated 1 year ago

Was this helpful?

Overview

Using this feature you can define a set (aka template) of applications. This set of applications can then be applied to a computer in a headless / unattended fashion using RealmJoin Client.

This is intended for creating golden images for Azure Virtual Desktop multi-session pooled hosts.

Permissions

To enable the feature, you must define a and assign the role to a group or user.

Copy the following definition and make sure to change the GroupID accordingly.

{
  "Rules": [
    {
      "Name": "Allow admins to access the templating feature",
      "Groups": [
        "<Group ID of Admin Group>"
      ],
      "Permissions": [
        "CanReadTemplateTable",
        "CanReadTemplateDetails",
        "CanEditTemplate",
        "CanDeleteTemplate",
        "CanChangeTemplatePackages",
        "CanChangeTemplateTokens"
      ]
    }
  ]
}

Managing templates

Creating a template

Add Applications to a Template

  1. Open the template by clicking on its name.

  1. Once you are done, click the Close button.

Intune Packages can not be assigned using AVD templates.

Remove Applications from a Template

  1. Open the template by clicking on its name.

  2. If you want to remove applications, click on Unassign. If you want to define arguments overwriting those set on the package level, you can do so by clicking on Settings.

Create a Token

To use the template via RealmJoin Client, you also need a token.

Please handle the token with care. If you think the token might have been leaked, revoke it by hitting the Revoke button next to the token.

  1. Create a token, click on the Tokens tab.

Using a Template

AVD / Headless Provisioning

Collect the template ID and the token you want to use for deployment.

Run the following command from inside your system/VM you want to prepare as golden image:

  1. Download RealmJoin: Invoke-WebRequest -Uri "https://gkrealmjoin.s3.amazonaws.com/win-release/RealmJoin.exe" -OutFile "C:\temp\RealmJoin.exe"

  2. Install RealmJoin: Start-Process -FilePath "C:\temp\RealmJoin.exe" -ArgumentList "-install" -Wait

  3. Run headless deployment. Make sure to enter your individual template ID and token: Start-Process -FilePath "C:\Program Files\RealmJoin\RealmJoinService.exe" -ArgumentList " -avdprovision <Template ID> <Template Token>"

Logging and Traces

For both, RealmJoin installation and headless deployment, you can add an additional argument -trace to extend logging. To check the status/logs during headless deployment, open and periodically refresh realmjoin.log which can be found under C:\Windows\Logs\

Click on the "templates" icon or open the Templates section by entering the url:

Select the icon (1), enter a meaningful name (2) and Click "Save" (3).

To add packages to the template, click the icon.

Search for a package and hit the icon to add it to your template. The list represents all RealmJoin packages you have subscribed to in your environment.

Click the icon (1), enter a meaningful name (2) and click Save (3).

custom role
https://portal.realmjoin.com/templates
Templates List
Create a template
Add packages to a template - 1
Add packages to a template - 2
Remote packages from a template
Create a token
Find template ID and token