Last active
July 27, 2017 01:49
-
-
Save ericmaino/a18fea350186e0d7b120ed268c0f6142 to your computer and use it in GitHub Desktop.
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
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"prefix": { | |
"type": "string", | |
"maxLength": 20, | |
"metadata": { | |
"description": "A short identifier to distinguish resources for this deployment" | |
} | |
}, | |
"deploymentToken": { | |
"type": "securestring", | |
"metadata": { | |
"description": "A token issued by the Lexington team which can be used to access the necessary resources for deployment" | |
} | |
}, | |
"databasePassword": { | |
"type": "securestring", | |
"metadata": { | |
"description": "The password used for the database. It's must be complex or the database deployment will fail" | |
} | |
}, | |
"activeDirectoryClientId": { | |
"type": "string", | |
"metadata": { | |
"description": "AAD ID of service principal." | |
} | |
}, | |
"adminGroupId": { | |
"type": "string", | |
"metadata": { | |
"description": "active directory group id for administrators of this application" | |
} | |
}, | |
"activeDirectoryTenant": { | |
"type": "string", | |
"metadata": { | |
"description": "Name of AAD tenant containing the service principal." | |
} | |
}, | |
"username": { | |
"type": "string", | |
"metadata": { | |
"description": "Admin username on all VMs." | |
}, | |
"defaultValue": "azureuser" | |
}, | |
"sshPublicKey": { | |
"type": "string", | |
"metadata": { | |
"description": "ssh public key for connecting to VMs." | |
}, | |
"defaultValue": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAiHwazvZxsaPOb5tXc9x6FKzpwkwEFxoj6Bo5hoJKZwn8AcEBZ8pcH1CuX5NvyMpyRFpJjdUe1Ey6WBFHGR3e+qxxtMflp6YGJzLjRJFUboJJtD3NBncOD8vZKzXunXg5Q9/h7oVMzoVKAIwUwvRJAWfLnGUlQ1B5CijWziT6RKYbqyPzocnlxIhNq5UbmHaNDD5U4jewcN26QD3/Ca88o7MwRe+aBnJ3YqIt59ckCUTVJP74anQIoq/0O71zLs70aDh24hqWQ0LM6N4uL9am75IpvpKEWZot68x6CioBi8HBw9PskGcBaFXXCXiXKEYN/IOeeQl1rHyPVc33j4XsPw== poc" | |
}, | |
"keyVaultActiveDirectoryTenantId": { | |
"type": "string", | |
"metadata": { | |
"description": "ID of AAD tenant for the KeyVault's subscription." | |
}, | |
"defaultValue": "72f988bf-86f1-41af-91ab-2d7cd011db47" | |
}, | |
"keyVaultActiveDirectoryClientId": { | |
"type": "string", | |
"metadata": { | |
"description": "ID of AAD service principal for KeyVault." | |
}, | |
"defaultValue": "258311bb-7664-452a-a7d1-9b1577690411" | |
}, | |
"networkConfiguration": { | |
"type": "secureObject", | |
"metadata": { | |
"description": "" | |
}, | |
"defaultValue": { | |
"NetworkId": "12345", | |
"DashboardSecret": "12345", | |
"CoinbaseAccount": "0x8fa18d96a3a791062812a4fcee4befe3a761b2c2", | |
"TxNodes": 3, | |
"MinerNodes": 2 | |
} | |
}, | |
"websiteOverride": { | |
"type": "string", | |
"defaultValue": "", | |
"metadata": { | |
"description": "" | |
} | |
} | |
}, | |
"variables": { | |
"vstsRootItemUrl": "[concat('https://lex-proxy.azurewebsites.net/vs/', parameters('deploymentToken') ,'?Type=Lexington&Path=')]", | |
"lexingtonDeployment": "[concat(variables('vstsRootItemUrl'), '/src/arm-templates/deployment.json')]" | |
}, | |
"resources": [ | |
{ | |
"apiVersion": "2015-01-01", | |
"name": "Lexington.Deployment", | |
"type": "Microsoft.Resources/deployments", | |
"properties": { | |
"mode": "Incremental", | |
"templateLink": { | |
"uri": "[variables('lexingtonDeployment')]", | |
"contentVersion": "1.0.0.0" | |
}, | |
"parameters": { | |
"pocName": { | |
"value": "[parameters('prefix')]" | |
}, | |
"username": { | |
"value": "[parameters('username')]" | |
}, | |
"sshPublicKey": { | |
"value": "[parameters('sshPublicKey')]" | |
}, | |
"activeDirectoryClientId": { | |
"value": "[parameters('activeDirectoryClientId')]" | |
}, | |
"adminGroupId": { | |
"value": "[parameters('adminGroupId')]" | |
}, | |
"activeDirectoryTenant": { | |
"value": "[parameters('activeDirectoryTenant')]" | |
}, | |
"keyVaultActiveDirectoryTenantId": { | |
"value": "[parameters('keyVaultActiveDirectoryTenantId')]" | |
}, | |
"keyVaultActiveDirectoryClientId": { | |
"value": "[parameters('keyVaultActiveDirectoryClientId')]" | |
}, | |
"databasePassword": { | |
"value": "[parameters('databasePassword')]" | |
}, | |
"networkConfiguration": { | |
"value": "[parameters('networkConfiguration')]" | |
}, | |
"deploymentToken": { | |
"value": "[parameters('deploymentToken')]" | |
}, | |
"websiteOverride": { | |
"value": "[parameters('websiteOverride')]" | |
} | |
} | |
} | |
} | |
], | |
"outputs": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment