Skip to content

Instantly share code, notes, and snippets.

@marrobi
marrobi / azuredeploy.json
Created Apr 10, 2017
DevTest Lab Template
View azuredeploy.json
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"newLabName": {
"type": "string",
"defaultValue": "MyDevTestLab",
"metadata": {
"description": "The name of the new lab instance to be created"
}
@marrobi
marrobi / installAdobeFlex.ps1
Last active Apr 10, 2017
installAdobeFlex.ps1
View installAdobeFlex.ps1
Function Get-RedirectedUrl
{
Param (
[Parameter(Mandatory=$true)]
[String]$URL
)
$urlRegex = '<a href="(?<Url>[^"]+)"'
$content = (New-Object System.Net.WebClient).DownloadString($url )
@marrobi
marrobi / artifact.json
Created Apr 10, 2017
Adobe Flex SDK artifact.json
View artifact.json
{
"$schema": "https://raw.githubusercontent.com/Azure/azure-devtestlab/master/schemas/2016-11-28/dtlArtifacts.json",
"title": "Adobe Flex SDK",
"description": "Installs Adobe Flex SDK, EULA: http://www.adobe.com/products/eulas/#flex_sdk",
"tags": [
"Windows",
"Adobe",
"Flex"
],
"iconUri": "https://github.com/Azure/azure-devtestlab/raw/master/Artifacts/windows-vscode/flex%20icon.png",
View InstallDocker.ps1
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProvider -Force
@marrobi
marrobi / artifact.json
Created Apr 6, 2017
Windows Docker Artifact.json
View artifact.json
{
"$schema": "https://raw.githubusercontent.com/Azure/azure-devtestlab/master/schemas/2016-11-28/dtlArtifacts.json",
"title": "Docker",
"description": "Installs Docker on Windows Server. Requires Windows Server 2016.",
"publisher": "Marcus Robinson",
"tags": [
"Windows",
"Docker"
],
"iconUri": "https://raw.githubusercontent.com/Azure/azure-devtestlab/master/Artifacts/windows-docker/docker-logo.png",
@marrobi
marrobi / executesql.ps1
Created Mar 9, 2017
Execute SQL on PostgreSQL
View executesql.ps1
Param
(
[string]$ServerHostName,
[int]$ServerPort = 5432,
[string]$User,
[string]$Password,
[string]$DBName,
[string]$SQLFilePath = "",
[string]$SQLCmd = ""
@marrobi
marrobi / changedb.ps1
Created Mar 9, 2017
Replace DB connections
View changedb.ps1
Param
(
[string]$ServerHostName,
[string]$User,
[string]$Password,
[string]$DBName,
[string]$GeoServerDataDir
)
View dockerextension.json
{
"type": "extensions",
"name": "DockerExtension",
"tags": {
"displayName": "DockerExtension"
},
"apiVersion": "2016-03-30",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Compute/virtualMachines/', variables('vmName'))]",
View dockerfile
FROM winsent/geoserver:2.10
COPY ./web.xml /opt/geoserver/webapps/geoserver/WEB-INF/web.xml
@marrobi
marrobi / customscript.sh
Created Mar 8, 2017
CusotmScript with auto mount
View customscript.sh
{
"name": "CustomScript",
"type": "extensions",
"location": "[resourceGroup().location]",
"apiVersion": "2016-03-30",
"dependsOn": [
"[resourceId('Microsoft.Compute/virtualMachines', variables('vmName'))]"
],
"tags": {
"displayName": "CustomScript"