{"id":3602,"date":"2021-06-04T07:22:34","date_gmt":"2021-06-04T06:22:34","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?p=3602"},"modified":"2021-06-04T07:22:34","modified_gmt":"2021-06-04T06:22:34","slug":"wvd-hostpool-expirationtime","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2021\/06\/wvd-hostpool-expirationtime\/","title":{"rendered":"WVD Hostpool ExpirationTime"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Spent some time troubleshooting an issue deploying new VM&#8217;s to our Windows Virtual Desktop hostpool today, and since the DSC extension that adds the WVD host to the hostpool completed successfully but the VM&#8217;s didn&#8217;t join the hostpool, here&#8217;s the error for those googling it in the future:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nNo match for RegistrationKey found in the meta mof file\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">The reason the RegistrationKey never made it to the extension ended up being an expirationTime set &#8220;only&#8221; 6 hours in the future. Apparently, one of the steps isn&#8217;t actually executed in our target zone (West Europe). Setting the host pool token expiration time to 20 hours resolved above error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The full DSC extension log in Azure:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;\n    {\n        \"code\": \"ComponentStatus\/DscConfigurationLog\/succeeded\",\n        \"level\": \"Info\",\n        \"displayStatus\": \"Provisioning succeeded\",\n        \"message\": \"&#91;2021-06-03 10:37:48Z] &#91;VERBOSE] &#91;REDACTED]: LCM:  &#91; Start  Set      ]  &#91;&#91;Script]ExecuteRdAgentInstallClient]\\r\\n&#91;2021-06-03 10:37:48Z] &#91;VERBOSE] &#91;REDACTED]:                            &#91;&#91;Script]ExecuteRdAgentInstallClient] Performing the operation \\\"Set-TargetResource\\\" on target \\\"Executing the SetScript with the user supplied credential\\\".\\r\\n&#91;2021-06-03 10:38:05Z] &#91;VERBOSE] &#91;REDACTED]: LCM:  &#91; End    Set      ]  &#91;&#91;Script]ExecuteRdAgentInstallClient]  in 16.5940 seconds.\\r\\n&#91;2021-06-03 10:38:05Z] &#91;VERBOSE] &#91;REDACTED]: LCM:  &#91; End    Resource ]  &#91;&#91;Script]ExecuteRdAgentInstallClient]\\r\\n&#91;2021-06-03 10:38:05Z] &#91;VERBOSE] &#91;REDACTED]: LCM:  &#91; End    Set      ]\\r\\n&#91;2021-06-03 10:38:05Z] &#91;VERBOSE] &#91;REDACTED]: LCM:  &#91; End    Set      ]    in  17.3440 seconds.\\r\\n&#91;2021-06-03 10:38:05Z] &#91;VERBOSE] Operation 'Invoke CimMethod' complete.\\r\\n&#91;2021-06-03 10:38:05Z] &#91;VERBOSE] Time taken for configuration job to complete is 17.478 seconds\\r\\n&#91;2021-06-03 10:38:08Z] &#91;VERBOSE] Performing the operation \\\"Start-DscConfiguration: SendMetaConfigurationApply\\\" on target \\\"MSFT_DSCLocalConfigurationManager\\\".\\r\\n&#91;2021-06-03 10:38:08Z] &#91;VERBOSE] Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendMetaConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root\/Microsoft\/Windows\/DesiredStateConfiguration'.\\r\\n&#91;2021-06-03 10:38:08Z] &#91;VERBOSE] An LCM method call arrived from computer REDACTED with user sid S-1-5-18.\\r\\n&#91;2021-06-03 10:38:08Z] &#91;VERBOSE] &#91;REDACTED]: LCM:  &#91; Start  Set      ]\\r\\n&#91;2021-06-03 10:38:08Z] &#91;VERBOSE] &#91;REDACTED]: LCM:  &#91; Start  Resource ]  &#91;MSFT_DSCMetaConfiguration]\\r\\n&#91;2021-06-03 10:38:08Z] &#91;VERBOSE] &#91;REDACTED]: LCM:  &#91; Start  Set      ]  &#91;MSFT_DSCMetaConfiguration]\\r\\n&#91;2021-06-03 10:38:08Z] &#91;VERBOSE] &#91;REDACTED]: LCM:  &#91; End    Set      ]  &#91;MSFT_DSCMetaConfiguration]  in 0.0160 seconds.\\r\\n&#91;2021-06-03 10:38:08Z] &#91;VERBOSE] &#91;REDACTED]: LCM:  &#91; End    Resource ]  &#91;MSFT_DSCMetaConfiguration]\\r\\n&#91;2021-06-03 10:38:08Z] &#91;VERBOSE] &#91;REDACTED]: LCM:  &#91; End    Set      ]\\r\\n&#91;2021-06-03 10:38:08Z] &#91;VERBOSE] &#91;REDACTED]: LCM:  &#91; End    Set      ]    in  0.0790 seconds.\\r\\n&#91;2021-06-03 10:38:08Z] &#91;VERBOSE] Operation 'Invoke CimMethod' complete.\\r\\n&#91;2021-06-03 10:38:08Z] &#91;VERBOSE] Set-DscLocalConfigurationManager finished in 0.194 seconds.\"\n    },\n    {\n        \"code\": \"ComponentStatus\/DscExtensionLog\/succeeded\",\n        \"level\": \"Info\",\n        \"displayStatus\": \"Provisioning succeeded\",\n        \"message\": \"&#91;2021-06-03 10:37:23Z] Creating Working directory: C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.1.0\\\\bin\\\\..\\\\DSCWork\\\\Configuration.0\\r\\n&#91;2021-06-03 10:37:23Z] Downloading configuration package\\r\\n&#91;2021-06-03 10:37:24Z] Downloading https:\/\/raw.githubusercontent.com\/Azure\/RDS-Templates\/master\/ARM-wvd-templates\/DSC\/Configuration.zip to C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.1.0\\\\bin\\\\..\\\\DSCWork\\\\Configuration.0\\\\Configuration.zip\\r\\n&#91;2021-06-03 10:37:41Z] Extracting Configuration.zip\\r\\n&#91;2021-06-03 10:37:41Z] Looking for the definition of the configuration function.\\r\\n&#91;2021-06-03 10:37:41Z] Executing C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.1.0\\\\bin\\\\..\\\\DSCWork\\\\Configuration.0\\\\Configuration.ps1\\r\\n&#91;2021-06-03 10:37:41Z] Preparing configuration arguments and configuration data.\\r\\n&#91;2021-06-03 10:37:41Z] Creating MOF files.\\r\\n&#91;2021-06-03 10:37:41Z] Executing the configuration function to generate the MOF files.\\r\\n&#91;2021-06-03 10:37:42Z] Verifying metaconfiguration for reboot information...\\r\\n&#91;2021-06-03 10:37:42Z] Backing up C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.1.0\\\\DSCWork\\\\Configuration.0\\\\AddSessionHost\\\\localhost.meta.mof\\r\\n&#91;2021-06-03 10:37:42Z] No match for RegistrationKey found in the meta mof file\\r\\n&#91;2021-06-03 10:37:42Z] WMF 5 or newer, Injecting RebootNodeIfNeeded = False and ActionAfterReboot = \\\"StopConfiguration\\\"\\r\\n&#91;2021-06-03 10:37:42Z] Executing Set-DscLocalConfigurationManager...\\r\\n&#91;2021-06-03 10:37:44Z] Settings handler status to 'transitioning' (C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.1.0\\\\Status\\\\0.status)\\r\\n&#91;2021-06-03 10:37:47Z] Settings handler status to 'transitioning' (C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.1.0\\\\Status\\\\0.status)\\r\\n&#91;2021-06-03 10:37:47Z] Get-DscLocalConfigurationManager: \\r\\n\\r\\nActionAfterReboot              : StopConfiguration\\r\\nAgentId                        : ADF6E52A-C457-11EB-9BDA-000D3A2633E7\\r\\nAllowModuleOverWrite           : False\\r\\nCertificateID                  : \\r\\nConfigurationDownloadManagers  : {}\\r\\nConfigurationID                : \\r\\nConfigurationMode              : ApplyOnly\\r\\nConfigurationModeFrequencyMins : 15\\r\\nCredential                     : \\r\\nDebugMode                      : {NONE}\\r\\nDownloadManagerCustomData      : \\r\\nDownloadManagerName            : \\r\\nLCMCompatibleVersions          : {1.0, 2.0}\\r\\nLCMState                       : Idle\\r\\nLCMStateDetail                 : \\r\\nLCMVersion                     : 2.0\\r\\nStatusRetentionTimeInDays      : 10\\r\\nSignatureValidationPolicy      : NONE\\r\\nSignatureValidations           : {}\\r\\nMaximumDownloadSizeMB          : 500\\r\\nPartialConfigurations          : \\r\\nRebootNodeIfNeeded             : False\\r\\nRefreshFrequencyMins           : 30\\r\\nRefreshMode                    : PUSH\\r\\nReportManagers                 : {}\\r\\nResourceModuleManagers         : {}\\r\\nPSComputerName                 : \\r\\n\\r\\n\\r\\n\\r\\n\\r\\n&#91;2021-06-03 10:37:47Z] Executing Start-DscConfiguration...\\r\\n&#91;2021-06-03 10:37:47Z] Settings handler status to 'transitioning' (C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.1.0\\\\Status\\\\0.status)\\r\\n&#91;2021-06-03 10:38:07Z] Settings handler status to 'transitioning' (C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.1.0\\\\Status\\\\0.status)\\r\\n&#91;2021-06-03 10:38:07Z] Updating execution status (HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Azure\\\\DSC\\\\2.83.1.0\\\\Status)\\r\\n&#91;2021-06-03 10:38:07Z] LCM state is Idle\\r\\n&#91;2021-06-03 10:38:07Z] DSC configuration completed.\\r\\n&#91;2021-06-03 10:38:07Z] Resetting metaconfiguration...\\r\\n&#91;2021-06-03 10:38:07Z] Restoring C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.1.0\\\\DSCWork\\\\Configuration.0\\\\AddSessionHost\\\\localhost.meta.mof.bk...\\r\\n&#91;2021-06-03 10:38:07Z] Executing Set-DscLocalConfigurationManager...\\r\\n&#91;2021-06-03 10:38:07Z] Settings handler status to 'transitioning' (C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.1.0\\\\Status\\\\0.status)\\r\\n&#91;2021-06-03 10:38:10Z] Settings handler status to 'transitioning' (C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.1.0\\\\Status\\\\0.status)\\r\\n&#91;2021-06-03 10:38:10Z] Get-DscLocalConfigurationManager: \\r\\n\\r\\nActionAfterReboot              : ContinueConfiguration\\r\\nAgentId                        : ADF6E52A-C457-11EB-9BDA-000D3A2633E7\\r\\nAllowModuleOverWrite           : False\\r\\nCertificateID                  : \\r\\nConfigurationDownloadManagers  : {}\\r\\nConfigurationID                : \\r\\nConfigurationMode              : ApplyOnly\\r\\nConfigurationModeFrequencyMins : 15\\r\\nCredential                     : \\r\\nDebugMode                      : {NONE}\\r\\nDownloadManagerCustomData      : \\r\\nDownloadManagerName            : \\r\\nLCMCompatibleVersions          : {1.0, 2.0}\\r\\nLCMState                       : Idle\\r\\nLCMStateDetail                 : \\r\\nLCMVersion                     : 2.0\\r\\nStatusRetentionTimeInDays      : 10\\r\\nSignatureValidationPolicy      : NONE\\r\\nSignatureValidations           : {}\\r\\nMaximumDownloadSizeMB          : 500\\r\\nPartialConfigurations          : \\r\\nRebootNodeIfNeeded             : True\\r\\nRefreshFrequencyMins           : 30\\r\\nRefreshMode                    : PUSH\\r\\nReportManagers                 : {}\\r\\nResourceModuleManagers         : {}\\r\\nPSComputerName                 : \\r\\n\\r\\n\\r\\n\\r\\n\\r\\n&#91;2021-06-03 10:38:10Z] Settings handler status to 'success' (C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.1.0\\\\Status\\\\0.status)\"\n    },\n    {\n        \"code\": \"ComponentStatus\/Metadata\/succeeded\",\n        \"level\": \"Info\",\n        \"displayStatus\": \"Provisioning succeeded\",\n        \"message\": \"VMUUId=6DFC142E-0A63-41D1-BE3E-31F5D0D9D8A3;AgentId=BDF6E52A-C427-12EB-9BDA-001D3A2633E7;\"\n    }\n]\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Spent some time troubleshooting an issue deploying new VM&#8217;s to our Windows Virtual Desktop hostpool today, and since the DSC extension that adds the WVD host to the hostpool completed successfully but the VM&#8217;s didn&#8217;t join the hostpool, here&#8217;s the error for those googling it in the future: The reason the RegistrationKey never made it &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/2021\/06\/wvd-hostpool-expirationtime\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WVD Hostpool ExpirationTime<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[49,6],"tags":[],"class_list":["post-3602","post","type-post","status-publish","format-standard","hentry","category-arm","category-windows-virtual-desktop"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/3602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/comments?post=3602"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/3602\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=3602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=3602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=3602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}