Azure testScript中的Azure自动化变量 [英] Azure automation variable in Azure testScript

查看:114
本文介绍了Azure testScript中的Azure自动化变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好团队

我在Azure自动化中创建了几个变量,并且需要在DSC中使用此变量,这样我就不需要在每次事物值更改时都更改此值.

I have created few variables in Azure automation and need to use this variables in DSC , so that i no need to change this values every thing value change .

我已经使用以下所示的所有可能选项将代码记录到事件日志中,以记录事件,目前,我看到事件已记录在事件日志中,但没有变量值.

I have writen code to to log an event in event log using all possible options as shown below, currently i see event are logged in event log but with no value of variable.

示例代码:

请在下面提出建议:

1)我如何在DSC的Azure脚本资源模块中使用azure变量.

1) how can i use a azure variable in Azure script resource module of DSC.

2)我看到我们需要使用$ using:将值传递给脚本资源,即默认情况下,所有工作流都将在DSC中转换为inlinescript?我们不能使用任何Powershell工作流程功能,例如foreach -parallel吗?

2) i see we need to use $using: to pass value to script resource, i.e. by default all workflows will be converted in to inlinescript in DSC ? we cannot use any of powershell workflow feature like foreach -parallel ?

谢谢


sridhar v

sridhar v

推荐答案

Sridhar,请查看 这篇文章.让我知道这是否不能回答您的问题,我们将很乐意为您提供进一步的帮助.
Hi Sridhar, please review this post . Let me know if this doesn't answer your question and I will be happy to assist further.


这篇关于Azure testScript中的Azure自动化变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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