I'm using the Jenkins azure-slave plugin, in attempt to configure slave nodes on Azure. I would like to create a custom VM to run CI. The steps I follow generally from
https://github.com/jenkinsci/azure-slave-plugin http://www.codeisahighway.com/how-to-capture-your-own-custom-virtual-machine-image-under-azure-resource-manager-api/ https://azure.microsoft.com/en-us/documentation/articles/azure-slave-plugin-for-jenkins/
In summary I would do these steps: 1. Create a VM with Windows 10 and Visual Studio 2015 Community. I have an MSDN subscription so the VM is created with this subscription. 2. Connect and install Java 3. Follow the instructions above to capture the image. 4. Follow the instructions above to configure Jenkins
Step 4 is where I hit my problem, when entering the parameters and then verify, the problem is:
1: Failed to validate the provided image family or image ID. Make sure to reference a image that is available.
I enter the image name in the Image Family or ID, trying different things, but still no luck. For example:
- template-osDisk.9ec53c94-78ac-4d11-8449-5d644b6f06f4.vhd
- template-osDisk.9ec53c94-78ac-4d11-8449-5d644b6f06f4
- https://continuousintegratio8738.blob.core.windows.net/system/Microsoft.Compute/Images/mytemplates/template-osDisk.9ec53c94-78ac-4d11-8449-5d644b6f06f4.vhd
- https://continuousintegratio8738.blob.core.windows.net/system/Microsoft.Compute/Images/mytemplates/template-osDisk.9ec53c94-78ac-4d11-8449-5d644b6f06f4
- WindowsCi0.vhd
The VM name is WindowsCi0, by the way.
Any help appreciated.
Some additional information:
I used Bitnami to launch the Jenkins master to Azure. By default, it created a "classic" storage account and within a container called "bitnami-images". Inside this container, there is an image named "bitnami-bitnami-jenkins-1.643-0-eastus-MY7DZGQ".
If I reference the Bitnami image in Jenkins and click "Verify Template", it is successful.
I went and perform a blob copy of my captured vhd file to the "bitnami-images" container. Jenkins still cannot validate it.
I noticed the image from Bitnami does not have the ".vhd" extension while the captured one does. Is there something in addition that must be done on he .vhd?