This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$subscriptionId = "---- ADD YOUR AZURE SUBSCRIPTION ID ----" | |
$tennantId = "---- ADD YOUR AZURE AD TENANT ID ----" | |
# Password for the service principal | |
$secret = "test!12345678910" | |
$secureStringPassword = ConvertTo-SecureString -String $secret -AsPlainText -Force | |
# $resource = "https://management.azure.com/" | |
$resource = "https://management.core.windows.net/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while ( ! (find /var/log/azure/Microsoft.Azure.Diagnostics.LinuxDiagnostic/*/extension.log | xargs grep "Start mdsd")); | |
do | |
echo "sleeping for 5" | |
sleep 5 | |
done | |
echo "updating apt pkgs" | |
sudo apt-get -y update | |
echo "installing openjdk9" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "installing packages" | |
until apt-get -y update && apt-get install -y aptdcon | |
do | |
sleep 2 | |
done | |
yes | aptdcon --hide-terminal --refresh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "installing packages" | |
until apt-get -y update && apt-get install -y openjdk-9-jre | |
do | |
echo "try again" | |
sleep 2 | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[Parameter(Mandatory=$false)] | |
[String] | |
$DownloadLocation | |
) | |
cls | |
# The script has been tested on Powershell 3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cls | |
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath | |
$rss = (new-object net.webclient) | |
#Set the username for windows auth proxy | |
#$rss.proxy.credentials=[system.net.credentialcache]::defaultnetworkcredentials | |
# TechEd NA 2013 | |
#$dataFeed = "http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/rss/mp4high/?sort=sequential&direction=desc&term=&r=Developer+Tools+%26+Application+Lifecycle+Management&r=Windows+Azure+Application+Development&y=Breakout&Media=true#fbid=FDnmapgI5Hf" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Error.Clear() | |
$BuildConfiguration = 'Debug' | |
Write-Host "*** Starting to build the project ***" | |
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe c:\Projects\MyApp\MyApp.ccproj ` | |
/p:Configuration=$BuildConfiguration ` | |
/t:CorePublish | |
if ($LASTEXITCODE -ne 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NOTE: This script is based on the Microsoft provided guidance example at | |
# https://www.windowsazure.com/en-us/develop/net/common-tasks/continuous-delivery/. | |
Param( | |
[parameter(Mandatory=$true)] | |
$serviceName, | |
[parameter(Mandatory=$true)] | |
$storageAccountName, | |
[parameter(Mandatory=$true)] | |
$storageAccountKey, |