0

I deploying a hostpool in Azure WVD spring 2020 update My requirement is to add the customscript extension to the defualt template.

In default template I see couple of nested templates, in that the domain join & DSC extensions are added.

I am trying to add the CSE in the main template and get this error.

Status Message: Can not perform requested operation on nested resource. Parent resource 'WVDVM-0' not found. (Code:ParentResourceNotFound)

Template here https://gist.github.com/ramoj25/2c067ff8812e9cccd74b023ef12dddf2

  • show the template – 4c74356b41 Jan 05 '21 at 14:07
  • i am unable to paste the template here, how can I send you ? – ramoj kumar Jan 05 '21 at 14:30
  • upload to gist.github and attach the link to the question, but you could easily edit the relevant part into the question – 4c74356b41 Jan 05 '21 at 16:24
  • Thanks for guiding, here you go the template. https://gist.github.com/ramoj25/2c067ff8812e9cccd74b023ef12dddf2 – ramoj kumar Jan 06 '21 at 14:15
  • It's a hostpool deployment template downloaded and added customscriptextension."type": "Microsoft.Compute/virtualMachines/extensions", able to deploy the hostpool with the parameters file but failing at customscriptextension, error you can see the question field. – ramoj kumar Jan 06 '21 at 14:17

1 Answers1

0

if the vmResourceGroup is different to the template deployment resource group - this will always fail. this has to be deployed to the same resource group as the vm.

another possibility - they are deployed to different regions

4c74356b41
  • 59,484
  • 5
  • 63
  • 109