如何向Azure虚拟机注入一些信息? [英] How to inject some info to azure VM ?

查看:90
本文介绍了如何向Azure虚拟机注入一些信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要探索很少的人员来创建蔚蓝的虚拟机

Need to explore few staff on created azure vms

1.就像在azure vm上运行一个小的agent(foo)一样,该代理需要在启动时需要来自server(foo)的一些信息.想知道,我怎样才能将很少的信息/消息注入到蔚蓝的vms中.

1. Like to run a small agent(foo) on azure vm which needs some information from the server(foo), while the agent boots up. Like to know , how can I inject few information/message in to the azure vms.

2.如何获得包装好的虚拟机?

2. How can I get handle of the crated VMs ?

任何示例代码都会有很大帮助.

Any sample code will help a lot.

推荐答案

你好!

有一些选项可以完成此操作.我个人的建议是使用 DSC  来创建具有某些参数的VM.您可以让它在VM初始化时运行Powershell,并且Powershell可以利用

There are a few options to accomplish this. My personal suggestion is to use DSC to create your VM with certain parameters. You can have it run Powershell upon VM initialization, and that Powershell can utilize a REST API or perform other commands to pull down the configuration you want. 


这篇关于如何向Azure虚拟机注入一些信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆