Navigation
GuidesUpdated July 3, 2026

Adding Users to Servers

guideuser-managementazure-clisshaccess-controlserversazureautomation

Guide on how to add users to Servers in Epic on Azure system

This guide is dated 8 Nov 2024

Command Line Principles

CLI Usage should be always declarative, and the commands provided in documentation such as this ideally should be Idempotent, allowing for repeatability and automatability.

Examples

Generic Server and Username Examples

az vm user update --resource-group ${{ resource.group.name }} --name ${{ server.name }} --username ${{ user.name }} --subscription ${{ subscription.id }} --ssh-key-value "$(cat ~/${{ user.name }}.pub)"

Specific Server and Username Examples

NPD ODB Server - user: cland

az vm user update --resource-group ohemr-rg-west-epic_odb_train-npd-wus3-001 --name zwnltrnew001 --username cland --subscription OHEMR-SUB-EPIC-NPD-001 --ssh-key-value "$(cat ~/cland.pub)"

NPD ODB Server - user: refufabe

az vm user update --resource-group ohemr-rg-west-epic_odb_train-npd-wus3-001 --name zwnltrnew001 --username refufabe --subscription OHEMR-SUB-EPIC-NPD-001 --ssh-key-value "$(cat ~/refufabecke.pub)"

Shared Ansible Server - user: refufabe

az vm user update --resource-group ohemr-rg-west_epic_ansible-shared-wus3-001 --name zwplansew001 --username refufabe --subscription OHEMR-SUB-EPIC-SHARED-001 --ssh-key-value "$(cat ~/refufabecke.pub)"

Ansible Shared Server - user: cland

az vm user update --resource-group ohemr-rg-west_epic_ansible-shared-wus3-001 --name zwplansew001 --username cland --subscription OHEMR-SUB-EPIC-SHARED-001 --ssh-key-value "$(cat ~/cland.pub)"