We have a Azure function to start and stop VMs based on info about VM, its RG and Subscription it reads from Azure storage table when it invocates, and then sets the context to the respective subscription to take action on the VM, however it leaks the context and stays with the context from previous VM and now it cant find that VM in that subscription, which leads to issues.
We have a Azure function to start and stop VMs based on info about VM, its RG and Subscription it reads from Azure storage table when it invocates, and then sets the context to the respective subscription to take action on the VM, however it leaks the context and stays with the context from previous VM and now it cant find that VM in that subscription, which leads to issues.
Seems to not work well with parallel threads.