简体   繁体   English

在ARM模板中以SecureExecution运行Azure自定义脚本扩展

[英]Run Azure custom script extension in an ARM template as SecureExecution

The PowerShell command Set-AzureRmVMCustomScriptExtension gives the possibility to set the parameter -SecureExecution, it allows to do not write the command who will be run in the log CustomScriptHandler. PowerShell命令Set-AzureRmVMCustomScriptExtension提供了设置参数-SecureExecution的可能性,它允许不编写将在日志CustomScriptHandler中运行的命令。 It is mandatory when you passed some credentials to your script. 当您向脚本传递一些凭据时,这是强制性的。 I would like to know if there is the same mean when I deploy a custom script extension with an ARM template. 我想知道在使用ARM模板部署自定义脚本扩展时是否有相同的意思。 The only documented parameters are the following : "protectedSettings": { "commandToExecute": "myExecutionCommand", "storageAccountName": "myStorageAccountName", "storageAccountKey": "myStorageAccountKey" } 唯一记录的参数如下"protectedSettings": { "commandToExecute": "myExecutionCommand", "storageAccountName": "myStorageAccountName", "storageAccountKey": "myStorageAccountKey" }

"commandToExecute" is the parameter you are looking for. "commandToExecute"是您要查找的参数。 it defines what gets passed to the extension. 它定义了传递给扩展的内容。

ps. ps。 everything under protected settings gets uncrypted before execution 受保护的设置下的所有内容在执行前都会被解密

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM