Code Monkey home page Code Monkey logo

azure-create-adminvm's Introduction

Azure-create-adminVM

A packer template to build an Windows Administration VM on Azure

Builded image can be customized by providing a list of :

  • Chocolatey packages (separated by spaces)
  • Windows Features (Powershell Windows Features names separated by comma)
  • Powershell PSGallery Modules names separated by comma

Pre-requisite

An Azure Packer Infra : https://github.com/egazrigh/Azure-create-packer-infra.git

Usage

Can add a packer_variable.json file to configure theses variables :

{
    "subscription_id": "",
    "tenant_id": "",
    "client_id": "",
    "client_secret": "",
    "managed_image_resource_group_name": "Packer-Builded-Images",
    "location": "francecentral",
    "projectname" : "Packer",
    "owner" : "Eric",
    "billing" : "Bibi",
    "environment" : "Test",
    "build_date" : "2018_06_14",
    "choco_packages": "7zip putty.install sysinternals notepadplusplus git AzureStorageExplorer packer terraform vscode googlechrome AzurePowerShell poshgit pester",
    "windowsfeatures": "Web-Server,Remote-Desktop-Services,RSAT,RSAT-RDS-Tools,RSAT-File-Services,Web-Mgmt-Console",
    "powershell_psgallery_modules" : "PoshRSJob,Posh-SSH"
}

Then run :

packer build var-file .\packer_variables.json Win2016_Azure_AdminVM.json
or 
packer build var-file=.\packer_variables.json Win2016_Azure_AdminVM.json

ToDo

  • Resolve vscode extension that are not retained after sysprep
  • Add more customization eventually using a post install script -- Powershell profiles -- Git Profile -- Clone Git Repos

Notes

  • Some choco packages don't install well -- RSAT Windows feature -- poshgit Powershell module

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.