New Question
0

Can I use cloud-init for azure windows VMs

asked 2018-09-06 12:06:02 +0300

sahebjade gravatar image

Can I use cloud-init for azure windows VMs, please can you help with this query

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2018-09-06 19:20:37 +0300

avladu gravatar image

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

edit flag offensive delete link more

Comments

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?

bsharma-2104 gravatar imagebsharma-2104 ( 2020-01-15 20:03:39 +0300 )edit
0

answered 2018-10-04 16:30:53 +0300

vgsandz gravatar image

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

edit flag offensive delete link more

Comments

Did you figure this out? getting same error.

bsharma-2104 gravatar imagebsharma-2104 ( 2020-01-17 12:34:17 +0300 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-09-06 12:06:02 +0300

Seen: 1,828 times

Last updated: Oct 04 '18