登录VM时出现DSC错误 [英] DSC Error when onboarding VM

查看:71
本文介绍了登录VM时出现DSC错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Experts,

Hello Experts,

当我尝试将Azure VM安装到DSC配置时,我遇到了错误。

I'm facing an error when I try to onboard an Azure VM to a DSC configuration.

我的DSC配置是这个 

My DSC configuration is this 

configuration AccountPolicies
{
    Import-DscResource -ModuleName SecurityPolicyDsc
 
    node localhost
    {
        AccountPolicy AccountPolicies
        {
            Name = 'PasswordPolicies'
            Enforce_password_history = 15
            Maximum_Password_Age = 12
            Minimum_Password_Age = 2
            Minimum_Password_Length = 8
            Password_must_meet_complexity_requirements = 'Enabled'
            Store_passwords_using_reversible_encryption = 'Disabled'
 
        }
    }
}

之后,DSC脚本成功了,我想登录VM我收到以下错误:

After, the DSC script is successfully and I want to Onboard the VM I receive the following the errors below:

     "message": "[2019-03-12 01:42:56Z] Updating execution status (HKLM:\\SOFTWARE\\Microsoft\\Azure\\DSC\\2.77.0.0\\Status)\r\n[2019-03-12 01:42:56Z] Transitioning to ProcessConfiguration state ...\r\n[2019-03-12 01:42:56Z] Getting handler execution status HKLM:\\SOFTWARE\\Microsoft\\Azure\\DSC\\2.77.0.0\\Status ...\r\n[2019-03-12 01:42:56Z] Getting handler execution status HKLM:\\SOFTWARE\\Microsoft\\Azure\\DSC\\2.77.0.0\\Status ...\r\n[2019-03-12 01:42:56Z] Settings handler status to 'transitioning' (C:\\Packages\\Plugins\\Microsoft.Powershell.DSC\\2.77.0.0\\Status\\0.status)\r\n[2019-03-12 01:42:56Z] Applying DSC configuration:\r\n[2019-03-12 01:42:56Z]     Sequence Number:              0\r\n[2019-03-12 01:42:56Z]     Configuration URL:            C:\\Packages\\Plugins\\Microsoft.Powershell.DSC\\2.77.0.0\\bin\\..\\scripts\\dscaa\\RegistrationMetaConfigV2.ps1\r\n[2019-03-12 01:42:56Z]     Configuration Script:         RegistrationMetaConfigV2.ps1\r\n[2019-03-12 01:42:56Z]     Configuration Function:       RegistrationMetaConfigV2\r\n[2019-03-12 01:42:56Z] Creating Working directory: C:\\Packages\\Plugins\\Microsoft.Powershell.DSC\\2.77.0.0\\bin\\..\\DSCWork\\RegistrationMetaConfigV2.0\r\n[2019-03-12 01:42:56Z] Downloading configuration package\r\n[2019-03-12 01:42:56Z] Downloading C:\\Packages\\Plugins\\Microsoft.Powershell.DSC\\2.77.0.0\\bin\\..\\scripts\\dscaa\\RegistrationMetaConfigV2.ps1 to C:\\Packages\\Plugins\\Microsoft.Powershell.DSC\\2.77.0.0\\bin\\..\\DSCWork\\RegistrationMetaConfigV2.0\\RegistrationMetaConfigV2.ps1\r\n[2019-03-12 01:42:56Z] Looking for the definition of the configuration function.\r\n[2019-03-12 01:42:56Z] Executing C:\\Packages\\Plugins\\Microsoft.Powershell.DSC\\2.77.0.0\\bin\\..\\DSCWork\\RegistrationMetaConfigV2.0\\RegistrationMetaConfigV2.ps1\r\n[2019-03-12 01:42:56Z] Preparing configuration arguments and configuration data.\r\n[2019-03-12 01:42:57Z] Created encryption certificate 98BDD207477EF02F209F1CA381F3347C973CDC64\r\n[2019-03-12 01:42:57Z] Adding encryption certificate 98BDD207477EF02F209F1CA381F3347C973CDC64 to the configuration data\r\n[2019-03-12 01:42:57Z] Creating MOF files.\r\n[2019-03-12 01:42:57Z] Executing the configuration function to generate the MOF files.\r\n[2019-03-12 01:42:57Z] Meta configuration found. Injecting Thumbprint.\r\n[2019-03-12 01:42:57Z] CertificateID not present in existing meta configuration; inserting 98BDD207477EF02F209F1CA381F3347C973CDC64.\r\n[2019-03-12 01:42:57Z] Verifying metaconfiguration for reboot information...\r\n[2019-03-12 01:42:57Z] Executing Set-DscLocalConfigurationManager...\r\n[2019-03-12 01:42:58Z] Settings handler status to 'transitioning' (C:\\Packages\\Plugins\\Microsoft.Powershell.DSC\\2.77.0.0\\Status\\0.status)\r\n[2019-03-12 01:43:00Z] Settings handler status to 'transitioning' (C:\\Packages\\Plugins\\Microsoft.Powershell.DSC\\2.77.0.0\\Status\\0.status)\r\n[2019-03-12 01:43:00Z] Updating execution status (HKLM:\\SOFTWARE\\Microsoft\\Azure\\DSC\\2.77.0.0\\Status)\r\n[2019-03-12 01:43:01Z] DSC configuration completed.\r\n[2019-03-12 01:43:01Z] No meta mof back up file exist to restore ...\r\n[2019-03-12 01:43:01Z] Settings handler status to 'error' (C:\\Packages\\Plugins\\Microsoft.Powershell.DSC\\2.77.0.0\\Status\\0.status)"

我还检查了  c:\ WindowsAzure \ Logs,但没有任何实际指针。错误只是说明"转换失败"

I have also checked the c:\WindowsAzure\Logs, but without any real pointers. An error just states "Transitioning failed"

推荐答案

你好鬼,

一些问题......

A few questions...

你指的是自动化或PowerShell DSC吗?您是否尝试使用多个节点,并且您是否在所有DSC节点上看到相同的行为/错误?

Are you referring to Automation or PowerShell DSC? How many nodes are you attempting to onboard and are you seeing the same behavior/error across all DSC nodes?

我建议发布与PowerShell DSC相关的问题/问题
here
以获得最佳回复。

I recommend posting PowerShell DSC related questions/issues here to get the best possible response.

干杯

Cheers


这篇关于登录VM时出现DSC错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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