I am currently building a solution to rapidly create / destroy environments in Azure. DSC appears to be a good framework to base this on. However I am running into a few problems along the way! and documentation is somewhat scant when it comes to fine details.
My first issue is that I need to keep the cloud service name flexible (incase the one I attempt is taken) but there doesn't appear to be a mechanism for taking the output of one resource and applying it to the input of the next. So if I create cloud service az[0-9] in one resource , how does the resource that depends on it know to deploy a solution to that service.
It strikes me that this is exactly what Set-TargetResource is for, to obtain these parameters to be taken used as part of the logic, but I have been unable to find any details about how that works.