Windows Virtual Desktop - deployment problem

Copper Contributor

Hi,

In my comprehension :

 

The first part is deploying infrasctructure in Azure (that make availability set with networks, machines, disks ....), this step is good.

 

The second part is deploying Managament Tool (to have a SAAS to control infrastructure), in my case i get an error in this part. Through GitHub i deploy in Azure the template and i get a conflit error (see picture), but a web page "Your app service is up and runing") but i don't have managment tool web service.

 

I'am very disapointed, Somebody can help me.

 

Thanks

4 Replies
Hi, tried to setup management Tool today and I've received the same error.
My bet is that there is an error in a JSON template and Automation jobs were not running well..

@Radek V 

Thank you, i posted an issue on GitHub

@AurelienB 
I have opened a ticket in Azure portal and received a hint from Azure Support:

 

When you use an ARM as in your case, you have to give the name of the Job which should be a unique ID if you follow the documentation:

https://docs.microsoft.com/en-us/azure/templates/Microsoft.Automation/2015-10-31/automationAccounts/...

 

For each job schedule, the 'name' property is a GUID (Global Unique ID), and this needs to be unique.

 

In your case, you probably ran it once so it no longer got unique as it got hardcoded.

 

This would generate a unique ID on resource group ID and deployment name:

 

"[guid(resourceGroup().id, deployment().name)]"

 

So if the deployment is pushed twice, the job ID might not be unique because the template is used on the same resource group, hence generating the same GUID.

 
Action Plan:

Pass the current time as the parameter and use it as a base.string. this would generate a completely unique string. Then you use this to generate the NewGuid: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-functions-stri...

I have modified a JSON template with a code:
"utcValue": {
"type": "string",
"defaultValue": "[utcNow()]"
},
 
before the line starting with "RDBrokerURL".
I had chose a different name of App Service as before and after this modification the deployment was successful.
 

@Radek V 

 

Thank for you reply, i got another way, this is the reply from Rachel from GitHub :

I got this same error, and it was due to the credentials you enter when deploying the Web App. While my user was a Global Admin (and an RDS Tenant Owner), they weren't a 'Contributor' at the Subscription level. So went into that particular subscription and assigned the role of contributor, and then this deploy template started working.

 

I try all this in the next days.

 

Regards