Home
Microsoft 365
Linux
Windows
Powershell
Cloud Computing
    Citrix Xendesktop
    Citrix XenApp
Useful links
About
  • Home
  • Microsoft 365
  • Linux
  • Windows
  • Powershell
  • Cloud Computing
    • Citrix Xendesktop
    • Citrix XenApp
  • Useful links
  • About
ajni.IT -
Azure•Cloud Computing•Powershell•Virtualization

Start an Azure VM with Azure Automation Webhooks

February 12, 2025 by AJNI No Comments

If you need a quick and dirty way to give a user the permission to start a VM without giving them access to the Azure Portal, Azure Automation Webhooks might help. You basically create a PowerShell script that starts the VM and then you configure the Webhook. The Webhook contains an URL which triggers the exceution of that script. Note that everyone with the URI is able to start the VM, which is not optimal.

Once you have created the Automation Account (easy), configure a new Runbook that starts the VM:

Disable-AzContextAutosave -Scope Process

$subscriptionID = Get-AutomationVariable -Name 'SubscriptionID'

Connect-AzAccount -Identity

Select-AzSubscription $SubscriptionId

Start-AzVM -ResourceGroupName "rgname" -name "vmname"

Configure the WebHook. You will get an URI. Save that URI somewhere, since you cannot view it after being created.

Afterwards, a user can run this line to start the VM:

Invoke-WebRequest -URI "https://xxxx.webhook.webhook.azure-automation.net/XXX" -Method POST -UseBasicParsing

Note: the automation account needs to have Virtual Machine Contributor rights on the resource group or subscription to start the VM.

References:

https://learnwithlenny.azurewebsites.net/2022/11/04/starting-an-azure-vm-using-webhook-powershell-exe/

Reading time: 1 min
Citrix XenApp•Citrix Xendesktop•Hyper-V•VDI•VMware•Windows Server

Citrix Workspace App Session freeze and high response time

October 2, 2024 by AJNI No Comments

If you are having issues with some users having freeze issues and high response time in Citrix Director, this registry key might help you. It happens in conjunction with dedicated GPUs on notebooks. The key disabled GPU acceleration for Citrix Workspace App.

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Citrix\ICA Client\Graphics Engine] “HWacceleration”=dword:00000000

References:

https://support.citrix.com/s/article/CTX297140-screen-freezes-and-takes-a-few-seconds-to-return-to-normal-apps-also-flicker-when-open?language=en_US

Reading time: 1 min
Citrix XenApp•Citrix Xendesktop•VDI•Virtualization•Windows Server

Citrix Virtual Apps and Desktops – Grey Screen after upgrading to newest VDA (Mostly Windows Server 2022)

January 22, 2024 by AJNI No Comments

Roughly a year ago I had an issue with grey screen on Windows Server 2022 with Citrix Virtual Apps and Desktops. A script helped clear out some registry key but there seem to still be problems with sessions with grey screens. Check out my post from last year: https://www.ajni.it/2023/03/citrix-virtual-apps-and-desktops-2203-grey-screen-connectionfailure-in-eventviewer/

There is a new fix that seems to be better and does not clear any registry keys. Instead it activates Citrix Universal DLL Injection. After upgrading the VDA, make sure this value is set:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CtxUvi]
“UviEnabled”=dword:00000001

This helped in my environment.

References:

https://discussions.citrix.com/topic/412451-just-grey-screen-instead-of-published-desktop/page/7/?sortby=votes

Reading time: 1 min
Virtualization•VMware

VMware Remove “Safely Remove Hardware” icon in a Windows Guest OS

December 27, 2023 by AJNI No Comments

As a normal user without admin rights, you can theoretically kill the Windows Guest OS (for example if you are connected through Citrix or Remote Desktop Services) by safely removing the VMXNET3 adapter on the bottom right. This is very bad and is apparently “by design”.

To hide the icon proceed as folow:

With the VM powered off, click Edit Settings > Options > General and configuration parameters. Add row and then type devices.hotplug. As a value insert FALSE. You can then power on your machine.

References:

https://communities.vmware.com/t5/ESXi-Discussions/Remove-quot-Safely-Remove-Hardware-quot-icon-in-a-Windows-guest/td-p/2495345

Reading time: 1 min
Citrix XenApp•VDI•VMware

Citrix Provisioning Services – Update VMware Tools on Masterimage / vDisk

August 24, 2023 by AJNI 2 Comments

Updating VMware Tools on a Citrix Provisioning Master Image used to be very time consuming. Nowadays it has gotten a little better, but you still have to do a few extra steps because of the vmxnet3 network adapter. Here are the steps that I took when upgrading to the newest Vmware Tools that came with ESXi 8.0 update.

  • Start the Master VM
  • Once booted up, add a new E1000E network card
  • Check in device manager if the E1000E/Intel network card can be seen
  • Shutdown VM
  • In the Provisioning console, change the mac address of the target device to that of the E1000E network card
  • Disconnect vmxnet3 NIC (uncheck connect on power on)
  • Start Master VM. Beware that the E1000E NIC is emulated and is painfully slow. I had instances where it took 15 minutes to boot up!
  • Once booted up, start VMware Tools upgrade through Vcenter (interactive)
  • Visual C++ Redistributable might be installed, you might need to reboot
  • Let boot
  • Start Vmware Tools upgrade again (interactive)
  • Run the installer
  • Shutdown VM
  • Disconnect E1000E NIC (uncheck connect on power on)
  • Connect vmxnet3 NIC (check connect on power on)
  • Boot
  • Once booted, fully remove E1000E fully
  • In device manager, show hidden devices and delete the greyed out Intel NIC

This time there are no references. I had to try and error myself.

Reading time: 1 min
Page 1 of 61234»...Last »

Like what you are reading? Buy me a coffee.

Tip Of the Day

  • Add Alias to Windows Fileserver (Server 2019, 2022, 2025)

    5 days ago

Keep in touch

Oh hi there!
It’s nice to meet you.

Sign up to receive awesome content in your inbox, every month.

Check your inbox or spam folder to confirm your subscription.

Categories

  • AI & Deep Learning (1)
  • Azure (20)
  • Citrix XenApp (21)
  • Citrix Xendesktop (13)
  • Cloud Computing (40)
  • Coding (1)
  • Hyper-V (10)
  • Linux (8)
  • Microsoft 365 (26)
  • Powershell (21)
  • Security (7)
  • VDI (16)
  • Virtualization (21)
  • VMware (12)
  • Windows (21)
  • Windows Client OS (39)
  • Windows Server (92)

Archives

  • May 2025
  • April 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • April 2023
  • March 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • December 2020
  • November 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019

ajni IT © 2019