I have a situation in which I need to trigger an azure function based on scale in or scale out events on some particular virtual machine scale set. My first idea was to use event grid triggers to trigger azure function based on resource modification on the vmss. However, it also triggers the function when any other editing event occurs besides scale in or scale out.
I also tried to specify the triggering method of the function to be http requests and specified the function URL in webhook section, as shown in the picture. However the function is not triggered.
How can I accomplish my intend?









