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.
# 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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment