...
There are two ways to modify administrator information:
...
Through the VSS-CLI commands
...
Table of Contents | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Using VSS-CLI commands
For this example we will use the of test.user
...
Open a web browser and log into the VSS Cloud Portal
Select the virtual machine you wish to update by clicking on the edit icon.
Navigate to the ADMIN tab and proceed to update the email address in the Admin email text field.
Click UPDATE button.
Click CONFIRM button to apply and save the changes.
To update the email addresses of other virtual machines, simply repeat the steps outlined above for each machine that requires an update. This will ensure that all virtual machines have up-to-date contact information and are receiving important updates from the ITS Private Cloud Portal.
Bulk update
Bulk update can be achieved with the vss-cli
and bash
as follows:
Code Block |
---|
#!/bin/bash # Define the vss-cli command to update the admin UPDATE_ADMIN_CMD="vss-cli compute vm set" # Define the VM IDs to update VM_IDS=`vss-cli --columns moref --table-format plain --no-headers compute vm ls -f admin=oldadmin@mutoronto.ca` # Define the admin details to update ADMIN_NAME="John Doe" ADMIN_EMAIL="john.doe@example.com" ADMIN_PHONE="123-456-7890" # Loop through each VM ID and update the admin for VM_ID in "${VM_IDS[@]}"; do echo "Updating admin on VM $VM_ID..." $UPDATE_ADMIN_CMD $VM_ID admin "$ADMIN_NAME" "$ADMIN_EMAIL" "$ADMIN_PHONE" echo "Admin updated on VM $VM_ID." done |
\uD83D\uDCCB Related articles
...