Is there any power shell command to download file and place at Application Root in Windows Azure start-up task? I have geo location binary file(30Mb)which is downloaded from http://www.maxmind.com/app/geolitecity. I don't want to include binary file in my project, decided to place in blob storage for faster deployment purpose. I tried to read binary from URL using http://en.googlemaps.subgurim.net/, unfortunately no function to read from URL. So i'm finding the way to download that binary file and place in application root directory.
Thanks in advance!
maybe this can help:
$object = New-Object Net.WebClient
$url = 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz'
$local = "$pwd\GeoLiteCity.dat.gz" #path to save download file
$object.DownloadFile($url, $local)
In this case file is zipped, you need to unzip the dat file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With