It's well documented and very useful feature in aws and it also exists in gcloud, although gcloud documentation is not as good^1.
It only becomes a vulnerability if you don't read the documentation AND don't follow best practices^2.
I don't know if azure provides this feature.
^1 I use gcloud now and have used aws in the past.
^2 Don't run unknown code without proper sandboxing