Skip to content

Instantly share code, notes, and snippets.

@alexeldeib
Last active March 29, 2019 08:58
Show Gist options
  • Save alexeldeib/5b8a6135f795c787af154337db922007 to your computer and use it in GitHub Desktop.
Save alexeldeib/5b8a6135f795c787af154337db922007 to your computer and use it in GitHub Desktop.
AKS Engine Custom VM Images from different subscription

Custom VM Images from different subscription

Required changes

  • add subscriptionId to customImage type
  • add subscription id to template
  • either always set subId (whether provided or not), or only put sub in arm template when provided

Test cases

  • Providing Master custom image in another subscription should work
  • Providing Agent custom image in another subscription should work
  • Both agent and master custom images should work
  • Should work with master VMSS
  • Should work with master VMAS
  • Should work with agent VMAS
  • Should work with master VMSS
  • Don't regress existing behavior. Add validation for RG only if it doesn't exist.
  • Add validation that specified RG is in the sub (?)
  • Using mismatched locations should fail fast (?)

Shared Image Gallery (v2) implementation

  • Add gallery, imageVersion to types and serialization/conversion
  • Fail fast if SP does not have access to resource (?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment