GetResourceState in DSC Proxy class should use TestConfiguration
In WMF 5 RTM, for the cross-machine synchronization, the WaitForX resources (GetResourceState) use the configuration state cache to return the resource state to the remote node using WaitForX. This is incorrect. This may return the resource state in no time but it is not always accurate and will have impact on the configuration waiting on the resource state.
For example, consider that there is a web server waiting on the SQL AlwaysOn cluster resource on a remote system. Now, consider that the remote SQL cluster resource went into a non-functional state for some reason and there was no DSC consistency check that happened. When the remote WaitForX resource queries for the cluster resource state, $true gets returned and the configuration continues and eventually fails as the dependent resource is not in desired state.
The only way to make this work is to either manually trigger a consistency check or call TestConfiguration to update the cache.
This needs to change to ensure that GetResourceState always returns the current state of the resource and not a cached state.