Giter VIP home page Giter VIP logo

bicep-dsvm-sample's Introduction

Bicep sample (DSVM:Data Science Virtual Machine (Ubunt + Windows Server) + Bastion)

Preparation

  1. Install az cli
    https://docs.microsoft.com/ja-jp/cli/azure/install-azure-cli
  2. bicep install https://github.com/Azure/bicep/blob/main/docs/installing.md#windows-installer
  3. Edit parameter File
  • azuredeploy.parameters.dev.json
    • require
      xxx.xxx.xxx.xxx -> Your IP Address.
      xxx(vmpassword)(At least 12 characters (uppercase, lowercase, and numbers))
      xxxx (sshPublicKey)
    • option
      vmuser -> Your choice Virtual Machine User ID.
      Standard_NC6s_v3 -> Your choice Virtual Machine Size.
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "ipaddress": {
      "value": "xxx.xxx.xxx.xxx"
    },
    "dsvmLinuxSize": {
      "value": "Standard_NC6s_v3"
    },
    "dsvmWindowsSize": {
      "value": "Standard_NC6s_v3"
    },
    "vmuser": {
      "value": "adminuser"
    },    
    "vmpassword": {
      "value" : "xxx"
    },
    "sshPublicKey": {
      "value": "xxxx"
    }
  }
}

Usage

STEP 1

  1. Execute PowerShell Prompt
  2. Set Parameter(x)
set-variable -name TENANT_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -option constant
set-variable -name SUBSCRIPTOIN_GUID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -option constant
set-variable -name BICEP_FILE "main.bicep" -option constant
set-variable -name PARAMETER_FILE "azuredeploy.parameters.dev.json" -option constant

$resourceGroupName = "xxxxx"
$location = "xxxxx"
  1. Go to STEP2 (Azure CLI or PowerShell)

STEP 2 (Azure CLI)

  1. Azure Login
az login -t ${TENANT_ID} --verbose
  1. Set Subscription
az account set --subscription ${SUBSCRIPTOIN_GUID} --verbose
  1. Create Resource Group
az group create --name ${resourceGroupName} --location ${location} --verbose
  1. Deployment Create
az deployment group create --resource-group ${resourceGroupName} --template-file ${BICEP_FILE} --parameters ${PARAMETER_FILE} --verbose

STEP 2 (PowerShell)

  1. Azure Login
Connect-AzAccount -Tenant ${TENANT_ID} -Subscription ${SUBSCRIPTOIN_GUID}
  1. Create Resource Group
New-AzResourceGroup -Name ${resourceGroupName} -Location ${location} -Verbose
  1. Deployment Create
New-AzResourceGroupDeployment `
  -Name devenvironment `
  -ResourceGroupName ${resourceGroupName} `
  -TemplateFile ${BICEP_FILE} `
  -TemplateParameterFile ${PARAMETER_FILE} `
  -Verbose

bicep-dsvm-sample's People

Contributors

tsukashusan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.