Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

How do you configure a VM image to run a custom script ONCE on startup?

$
0
0

Hello,

I am creating a Windows image that will be deployed to the VM depot: https://vmdepot.msopentech.com/List/Index

When the image is run for the first time, I'd like to run a custom script.  However, I only want this script to run the first time the VM is run (and never again).

How would I do this?

Thanks!

Matt


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>