Skip to content

Instantly share code, notes, and snippets.

@lmoxiel
Created June 22, 2020 20:35
Show Gist options
  • Select an option

  • Save lmoxiel/f1999c552b3890a46e5ee46f0a93229d to your computer and use it in GitHub Desktop.

Select an option

Save lmoxiel/f1999c552b3890a46e5ee46f0a93229d to your computer and use it in GitHub Desktop.

Revisions

  1. lmoxiel created this gist Jun 22, 2020.
    29 changes: 29 additions & 0 deletions hubble-build.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    # Add steps that build, run tests, deploy, and more:
    # https://aka.ms/yaml
    name: Hubble_Build_$(date:yyyyMMdd)$(rev:.r)

    trigger:
    - none

    pool:
    #name: 'Self-Hosted VS2017' (Self-hosted build agent)
    vmImage: 'ubuntu-latest' # (use this for the Microsoft-hosted build agent)

    steps:
    # Create the Hubble Linux VM image
    - task: PackerBuild@1
    displayName: 'Create Hubble image'
    inputs:
    templateType: 'builtin'
    ConnectedServiceName: 'Security Sandbox Connection (automatic)'
    isManagedImage: true
    managedImageName: $(imageName)
    location: 'eastus2'
    storageAccountName: 'azsandbox'
    azureResourceGroup: 'sandbox-images'
    baseImageSource: 'default'
    baseImage: 'Canonical:UbuntuServer:18.04-LTS:linux'
    packagePath: '$(System.DefaultWorkingDirectory)/sandbox'
    deployScriptPath: 'release/scripts/hello-world.ps1'
    imageUri: 'sandbox-vm-image1'
    imageId: 'sandbox-vm-image-resource-id'