【问题标题】:How to install Desired State Configuration (DSC) in Azure Cloud Shell?如何在 Azure Cloud Shell 中安装 Desired State Configuration (DSC)?
【发布时间】:2018-10-16 12:48:19
【问题描述】:

是否可以在 Azure Cloud Shell 中安装和使用 Desired State Configuration (DSC),如果可以,如何安装?

如果我在 Azure Cloud Shell 提示符下运行以下命令:

Start-DscConfiguration

返回以下错误:

Start-DscConfiguration : The term 'Start-DscConfiguration' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Start-DscConfiguration
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Start-DscConfiguration:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

【问题讨论】:

  • DSC 是 VM 中自动化流程的扩展。我不认为bee可以安装在cloud shell中。

标签: azure dsc azure-cloud-shell


【解决方案1】:

您可以将 DCS 脚本放入 Azure 自动化中,以便在 Cloud Shell 中使用。

https://docs.microsoft.com/en-us/azure/automation/automation-dsc-getting-started

一旦进入 Azure 自动化,您就可以从 CloudShell 开始使用:

https://docs.microsoft.com/en-us/powershell/module/servicemanagement/azure/start-azureautomationrunbook?view=azuresmps-4.0.0

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-10-15
    • 1970-01-01
    • 2018-01-10
    • 2019-04-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多