Coder Social home page Coder Social logo

azureimagebuilderautomation's Introduction

Azure Image Builder Automation

This solution will deploy build automation to any existing Azure Image Builder image template. The build automation uses an Automation Runbook with a Schedule to check if a new Azure Marketplace image version has been released since you're last image template build. If the Marketplace image version is newer, a new build will be initiated on the Image Template. The role assignment given to the Automation Account is the minimum required, adhering to least privilege. However, currently Azure US Government does not support the role assignment and requires the Contributor role as a workaround.

If a resource ID for an existing Log Analytics Workspace is specified during deployment, the Automation Runbook's job logs and streams will be captured in the workspace. This will allow you to create alerts around the Image Template builds so you will know when a new Image Version has been added to your Compute Gallery or when a build fails.

Resources

The following resources are deployed with this solution:

  • Action Group
  • Automation Account
    • Diagnostic Setting
    • Job Schedule
    • Modules
    • Runbook
    • Schedule
  • Role Definitions
  • Role Assignments
  • Schedule Query Rules

Prerequisites

This solution assumes certain resources have already been deployed to your Azure environment:

Required:

  • Resource Group
  • Image Template

Optional:

  • Log Analytics Workspace

Deployment Options

To deploy this solution, the principal must have Owner privileges on the Azure subscription.

Azure Portal

Deploy to Azure Deploy to Azure Gov

PowerShell

New-AzDeployment `
    -Location '<Azure location>' `
    -TemplateFile 'https://raw.githubusercontent.com/jamasten/AzureImageBuilder/main/solution.json' `
    -Verbose

Azure CLI

az deployment sub create \
    --location '<Azure location>' \
    --template-uri 'https://raw.githubusercontent.com/jamasten/AzureImageBuilder/main/solution.json'

azureimagebuilderautomation's People

Contributors

jamasten avatar

Watchers

 avatar  avatar

azureimagebuilderautomation's Issues

Feedback: Change Networking for Blob Storage to be Public but only During a Build

Hey @jamasten -- had an idea with this unless it's too much overhead, but let's say for those customers who are using Custom Image Templates (CIT) and leverage Blob Storage to publicly host scripts. As a security alternative unless/until this behavior ever changes for CIT, maybe during the automated build you could use a MI to change the Blob Storage Networking temporarily to public so the scripts are accessible. Once the build completes, it turns it off and either disables it or sets to specific networks. I guess you could capture what it was previous set to, and set it back. Just something I thinking about that may offer up a better security approach. Hope this helps.

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.