Azure VM扩展 [英] Azure VM Extensions
问题描述
如何在每次VM启动时使用VM Extensions运行自动化脚本?
How can I use VM Extensions to run an automation script every time a VM starts up?
我想在重新启动后运行一个脚本,该脚本从安全位置检索加密密钥并将该密钥放置在特定目录中.该脚本无法在VM上运行,因为该脚本将包含从中检索加密密钥的凭据. 安全位置.
I would like to run a script upon reboot that retrieves an encryption key from a secure location and places the key in a specific directory. The script can't live on the VM because it will contain credentials for retrieving the encryption key from the secure location.
推荐答案
您好,Colby,
Hi Colby,
您可以为任务编写Powershell或任何其他语言代码.请通过下面的链接在Azure VM中进行操作
You can write a powershell or any other language code for your task. Please go through the link below how to do it in Azure VM
https://docs.microsoft.com/zh-CN /azure/virtual-machines/extensions/custom-script-windows
这篇关于Azure VM扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!