Register-AzureRmAutomationDscNode cmdlet的功能是否与Azure门户功能完全相同?

时间:2017-08-25 15:10:37

标签: azure azure-automation

我们看到Register-AzureRmAutomationDscNode存在问题,并且想知道它是否按预期工作,或者我们对它应该做的事情的理解是不正确的。

当我们通过门户将Azure VM作为Azure自动化DSC节点登录时,一切都按预期工作。 VM已加入,并且已应用配置。

当我们尝试通过Register-AzureRmAutomationDscNode执行相同操作时,cmdlet似乎成功,但VM永远不会在门户中或通过Get-AzureRmAutomationDscNode命令显示为DSC节点。

我们已经验证了我们通过门户网站中的UI传递的参数,并且通过cmdlet是相同的。在这两种情况下,我们还看到VM在具有相同输入和输出的情况下成功部署。

cmdlet的输出是:

DeploymentName          : 20170825085614
ResourceGroupName       : 36ddce91
ProvisioningState       : Succeeded
Timestamp               : 8/25/2017 2:57:17 PM
Mode                    : Incremental
TemplateLink            :
                          Uri            : https://eus2oaasibizamarketprod1.blob.core.windows.net/automationdscpreview/azuredeployV2.json
                          ContentVersion : 1.0.0.0

Parameters              :
                          Name             Type                       Value
                          ===============  =========================  ==========
                          vmName           String                     Windows-VM
                          location         String                     East US
                          modulesUrl       String                     https://eus2oaasibizamarketprod1.blob.core.windows.net/automationdscpreview/RegistrationMetaConfigV2.zip
                          configurationFunction  String                     RegistrationMetaConfigV2.ps1\RegistrationMetaConfigV2
                          registrationKey  SecureString
                          registrationUrl  String                     https://eus2-agentservice-prod-1.azure-automation.net/accounts/8b6a1713-dc00-4ae1-a513-c582def16380
                          nodeConfigurationName  String                     RemoteManagement.36ddce91
                          configurationMode  String                     ApplyAndMonitor
                          configurationModeFrequencyMins  Int                        15
                          refreshFrequencyMins  Int                        30
                          rebootNodeIfNeeded  Bool                       True
                          actionAfterReboot  String                     ContinueConfiguration
                          allowModuleOverwrite  Bool                       True
                          timestamp        String                     8/25/2017 2:56:14 PM

Outputs                 :
DeploymentDebugLogLevel :

Register-AzureRmAutomationDscNode是否存在问题,或者是否通过门户网站启动虚拟机执行Register-AzureRmAutomationDscNode未涵盖的其他操作?

0 个答案:

没有答案