I believe this error is because the resource name has a period (.) in the name, I didn’t have issues with this in PSv4 DSC but since I installed the PSv5 production preview I keep getting this error:
Test-DependsOn : The format of the resource reference '[xWebAppPool]mysite.domain.com' in the Requires list for resource '[xWebSite]mysite.domain.com' is not valid. A required resource name should be in the format '', with no spaces.
Has anyone else run across this yet? Also, does anyone have a regex for replacing invalid characters in a resource name or a link to the article I can’t find that specifies what the character limitations are?