I am provisioning a Debian virtual machine on Azur...
# azure
b
I am provisioning a Debian virtual machine on Azure, utilizing
customData
with
cloud-init
for initial configuration and simultaneously deploying the Azure Monitor Agent VM extension. It appears that
cloud-init
continues its setup processes, including package installations via
dpkg
, in the background even after Azure signals the VM as "ready." Consequently, when the Azure platform attempts to install the Monitoring Agent extension, it also tries to use
dpkg
. This creates a conflict, as both processes attempt to acquire a lock on
dpkg
concurrently, leading to the failure of the Monitoring Agent extension installation. Are there any "hacks" for e.g. making pulumi wait with provisioing of the monitoring agent? I'm using pulumi-java 1.11 and azure-native 3.4.0