salt icon indicating copy to clipboard operation
salt copied to clipboard

Can't deploy custom images in Azure

Open glopezmartin opened this issue 11 years ago • 3 comments

In the azure cloud connector its impossible to deploy an image a user has created making a snapshot of a running machine. In my case this will speedup the deployment as I don't have to install propietary software with no automation capabilities.

Instead of using 'os_virtual_hard_disk' for the vm parameters we could use VMImageName and MediaLocation to define the name of the image and the blob where its stored.

I could try to implement it but I need some guidance as it seems the connector just tries a bunch of stuff by trial-and-error (I imagine this is done to maintain compatibility) and I can't see very clearly how to pass the new parameters.

glopezmartin avatar Jul 06 '15 20:07 glopezmartin

@glamdisju, thanks for the report.

jfindlay avatar Jul 07 '15 20:07 jfindlay

When attempting to use a User image and not a Public image you'll receive the following error.

BadRequestOSImage tt-win-sysprep not found. If you are using a VM image, it must be specified as VMImageName for the role, not as SourceImageName for OSVirtualHardDisk.

salt-cloud 2015.5.2 (Lithium)

To get a list of User images available via Powershell

$images = get-azureVMImage | where ( $_.Category -eq "User" }
$images

trebortech avatar Jul 28 '15 22:07 trebortech

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Dec 22 '17 20:12 stale[bot]