Skip to content

Instantly share code, notes, and snippets.

@marrobi
marrobi / datadisk.json
Created March 8, 2017 11:21
Data Disk
"dataDisks": [
{
"lun": "1",
"name": "gwcdata",
"diskSizeGB": "1023",
"caching": "readwrite",
"managedDisk": {
"storageAccountType": "Premium_LRS"
},
"createOption": "empty"
@marrobi
marrobi / dockerextensionwithvolume.json
Created March 8, 2017 10:23
Docker extension with volume
{
"type": "extensions",
"name": "DockerExtension",
"tags": {
"displayName": "DockerExtension"
@marrobi
marrobi / mount_shares.sh
Created March 8, 2017 10:20
mount_shares.sh
mkdir /media/geoserverdatadir
mount -t cifs ${1} /media/geoserverdatadir -o vers=3.0,username=${2},password=${3},dir_mode=0777,file_mode=0777
@marrobi
marrobi / customscript.sh
Last active March 8, 2017 13:13
GeoServer Custom Script
{
"name": "CustomScript",
"type": "extensions",
"location": "[resourceGroup().location]",
"apiVersion": "2016-03-30",
"dependsOn": [
"[resourceId('Microsoft.Compute/virtualMachines', variables('vmName'))]"
],
"tags": {
"displayName": "CustomScript"
@marrobi
marrobi / dockerextension.json
Created March 8, 2017 09:38
Docker Extension
{
"type": "extensions",
"name": "DockerExtension",
"tags": {
"displayName": "DockerExtension"
},
"apiVersion": "2016-03-30",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
@marrobi
marrobi / outputs.json
Created February 24, 2017 12:10
AWSOutputs
"Outputs" : {
"LoginPage" : {
"Description" : "The Login URL to Oracle Vision eBusiness R12.2",
"Value" : { "Fn::Join" : ["", [ "https://VisionR122-", {"Ref" : CustomerId"}, ".xxxx.com" ]]}
},
"LoginPassword" : {
"Description" : "Your Password for the SYSADMIN account",
"Value" : { "Fn::GetAtt" : [ "WaitCondition", "Data" ]}
} }
@marrobi
marrobi / outputs.json
Created February 24, 2017 12:09
Temaplte Outputs
"outputs": {
"IPAddress": {
"type": "string",
"value": "[reference('PublicIP').ipAddress]"
},
"FQDN": {
"type": "string",
"value": "[reference('PublicIP').dnsSettings.fqdn]"
}
}
@marrobi
marrobi / CaptureVMImage.ps1
Last active February 23, 2017 14:22
Capture VM Image
Param
(
[Parameter(Mandatory=$true)]
$VMResourceGroupName,
[Parameter(Mandatory=$true)]
$ImageResourceGroupName,
[Parameter(Mandatory=$true)]
$VMName,
@marrobi
marrobi / AzureDNSARecord.json
Created February 14, 2017 16:11
Azure DNS A Record
{
"type": "Microsoft.Network/dnszones/A",
"name": "[variables('A_record_name')]",
"apiVersion": "2016-04-01",
"tags": {
"displayName": "Arecord"
},
"dependsOn": [
"[variables('ApplicationGatewayRef')]"
],
@marrobi
marrobi / AzureApplicationGateway.json
Created February 14, 2017 15:57
Azure Application Gateway
{
"type": "Microsoft.Network/applicationGateways",
"apiVersion": "2016-03-30",
"name": "ApplicationGateway",
"location": "[resourceGroup().location]",
"dependsOn": [
"[variables('ApplicationGatewayFrontEndIP')]"
],