Can I use cloud-init for azure windows VMs
Can I use cloud-init for azure windows VMs, please can you help with this query
Hello,
yes, you can use cloudbase-init for Azure Windows images.
You are required to enable the azure metadata service in the cloudbase-init configuration files:
[DEFAULT]
metadata_services=cloudbaseinit.metadata.services.azureservice.AzureService
Thanks,
Adrian
I have taken image of a azure windows virtual machine enabling cloudbase-init as you mentioned. Now, I want to start another azure windows instance from this image. I am not getting cloud config yaml to try out features of cloudbase-init. How do I provision from azure portal?
Hi Adrian Is there a new installer supporting this module, could you please help me with the version of it or where i could download it.
I tried this and getting error
2018-10-01 08:59:22.908 2848 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.metadata.services.azureservice.AzureService' loadclass c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\classloader.py:27 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell [-] No module named 'cloudbaseinit.metadata.services.azureservice' 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell Traceback (most recent call last): 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\shell.py", line 41, in main 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell init.InitManager().configurehost() 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\init.py", line 184, in configurehost 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell service = metadatafactory.getmetadataservice() 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\metadata\factory.py", line 30, in getmetadataservice 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell service = cl.loadclass(classpath)() 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\classloader.py", line 29, in load_class 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell module = import(parts[0], fromlist=parts[1]) 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell ImportError: No module named 'cloudbaseinit.metadata.services.azureservice' 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell 2018-10-01 08:59:23.198 2004 INFO cloudbaseinit.init [-] Process execution ended with exit code: 1
Thank you for your support. Venu
Asked: 2018-09-06 12:06:02 +0200
Seen: 1,886 times
Last updated: Oct 04 '18