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

Azure virtual machine - send script using custom data

$
0
0

created a azure VM (window) using the below script , the script is getting stored in customdata.bin in the VM that is created , Instead of storing in customdata.bin, i need to execute those script in VM

azure vm create rwww a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-R2-201403.01-en.us-127GB.vhd --location "East US" <username> <password> --vm-size extrasmall --custom-data C:\Users\username\Desktop\azure.txt

azure.txt contains

<powershell>

Set-ExecutionPolicy Unrestricted -Forcemkdir C:\custom

mkdir C:\custom
 
</powershell>

Please help in resolving this issue .


Viewing all articles
Browse latest Browse all 12545

Trending Articles



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