This commit is contained in:
Gopi Kumar 2017-04-21 10:34:56 -07:00 коммит произвёл GitHub
Родитель d78598196d
Коммит 71094de919
1 изменённых файлов: 32 добавлений и 3 удалений

Просмотреть файл

@ -2,12 +2,14 @@ This directory will contain scripts and ARM templates to create DSVM with differ
Here is some helpful tips.
## Creating a DSVM for Linux (Ubuntu) using command line:
To create a Ubuntu DSVM using Azure CLI Version 2 (ARM template - UbuntuDSVM.json available in this directory and used below) use the steps below.
## Creating DSVM from command line
Pre-requisites: You need Azure CLI 2.0 on your desktop/laptop/VM. You can download it from [here](https://docs.microsoft.com/cli/azure/install-az-cli2). [DSVM automatically comes preinstalled with Azure CLI]
### Creating a DSVM for Linux (Ubuntu) using command line:
To create a Ubuntu DSVM using Azure CLI Version 2 (ARM template - azuredeploy.json available in the CreateDSVM/Ubuntu directory and used below) use the steps below.
Step 1: Create a Parameter file (JSON) for the DSVM you are going to deploy. The file looks like this:
````
@ -31,3 +33,30 @@ Step 2: Use Azure CLI to create the VM
az group create --name [[NAME OF RESOURCE GROUP]] --location [[ Data center. For eg: "West US 2"]
az group deployment create --resource-group [[NAME OF RESOURCE GROUP ABOVE]] --template-uri https://raw.githubusercontent.com/Azure/DataScienceVM/master/Scripts/CreateDSVM/Ubuntu/azuredeploy.json --parameters @[[PARAMETER JSON FILE]]
### Creating a DSVM for Windows using command line:
To create a Windows DSVM using Azure CLI Version 2 (ARM template - azuredeploy.json available in the CreateDSVM/Windows2012 directory and used below) use the steps below.
Step 1: Create a Parameter file (JSON) for the DSVM you are going to deploy. The file looks like this:
````
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": { "value" : "YOURUSERNAME FOR NEW DSVM"},
"adminPassword": { "value" : "PASSWORD FOR NEW DSVM"},
"vmName": { "value" : "HOSTNAME OF DSVM"},
"vmSize": { "value" : "VM SIZE For eg: Standard_DS2_v2"}
}
}
````
Replace the parameters with values you will use for your new DSVM you are creating. A list of allowed vmSize is found in the [Windows DSVM ARM template](CreateDSVM/Windows2012/azuredeploy.json).
Step 2: Use Azure CLI to create the VM
# Follow instructions of az login to signin to your Azure account. May need to select subscription if you have multiple
az login
az group create --name [[NAME OF RESOURCE GROUP]] --location [[ Data center. For eg: "West US 2"]
az group deployment create --resource-group [[NAME OF RESOURCE GROUP ABOVE]] --template-uri https://raw.githubusercontent.com/Azure/DataScienceVM/master/Scripts/CreateDSVM/Windows2012/azuredeploy.json --parameters @[[PARAMETER JSON FILE]]