stgeorgi / wvdquickstart

26 stars 31 forks source link

500 error when creating VMs #27

Open BarryJNewman opened 3 years ago

BarryJNewman commented 3 years ago

Has anyone seen this error? Template deploys but pipeline eventually stalls on creating VMs. In activity I see chain of "internal error 500"

Pipeline eventually times out, VMs never created: Capture

Error in Activity logs: Capture2

firedog-anon commented 3 years ago

I'm getting the same error with my deployment - showing an HTTP 500 error.

"resourceId": "/subscriptions/34f20750-9873-46a2-8eb2-1fe6e03fb174/resourcegroups/RGP-WVD-QuickStart/providers/Microsoft.Compute/virtualMachines/QS-WVD-VM001",
"status": {
    "value": "Failed",
    "localizedValue": "Failed"
},
**"subStatus": {
    "value": "InternalServerError",
    "localizedValue": "Internal Server Error (HTTP Status Code: 500)"**

Here's my parameter file from my the pipeline artefacts below.

{ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", "contentVersion": "1.0.0.0", "parameters": { "vmNamePrefix": { "value": "QS-WVD-VM" }, "vmNumberOfInstances": { "value": 2 }, "vmInitialNumber": { "value": 1 }, "vmSize": { "value": "Standard_D2s_v3" }, "imageReference": { "value": { "id": "", "publisher": "microsoftwindowsdesktop", "offer": "office-365", "sku": "20h1-evd-o365pp", "version": "latest" } }, "osDisk": { "value": { "createOption": "fromImage", "diskSizeGB": 128, "managedDisk": { "storageAccountType": "Premium_LRS" } } }, "adminUsername": { "value": "djoin" }, "adminPassword": { "reference": { "keyVault": { "id": "/subscriptions/34f20750-9873-46a2-8eb2-1fe6e03fb174/resourceGroups/RGP-WVD-QuickStart/providers/Microsoft.KeyVault/vaults/keyvault20210219T104348Z" }, "secretName": "adminPassword" } }, "availabilitySetName": { "value": "" }, "subnetId": { "value": "subscriptions/34f20750-9873-46a2-8eb2-1fe6e03fb174/resourceGroups/rgp-inf-vnet01/providers/Microsoft.Network/virtualNetworks/vnet01/subnets/R4TC_INF" }, "domainName": { "value": "obfuscated.com" }, "domainJoinUser": { "value": "djoin@obfuscated.com" }, "domainJoinPassword": { "reference": { "keyVault": { "id": "/subscriptions/34f20750-9873-46a2-8eb2-1fe6e03fb174/resourceGroups/RGP-WVD-QuickStart/providers/Microsoft.KeyVault/vaults/keyvault20210219T104348Z" }, "secretName": "adminPassword" } }, "domainJoinOU": { "value": "" }, "dscConfiguration": { "value": { "settings": { "wmfVersion": "latest", "configuration": { "url": "https://github.com/stgeorgi/wvdquickstart/raw/master/Uploads/Configuration.zip", "script": "Configuration.ps1", "function": "AddSessionHost" }, "configurationArguments": { "hostPoolName": "QS-WVD-HP" } }, "protectedSettings": { "configurationArguments": { "registrationInfoToken": "" } } } }, "enablePublicIP": { "value": false }, "diagnosticLogsRetentionInDays": { "value": 365 }, "diagnosticStorageAccountId": { "value": "" }, "workspaceId": { "value": "" }, "eventHubAuthorizationRuleId": { "value": "" }, "eventHubName": { "value": "" }, "lockForDeletion": { "value": false }, "tags": { "value": {} }, "windowsScriptExtensionFileData": { "value": [ { "uri": "https://assets0219t104348z.blob.core.windows.net/wvdscripts/scriptExtensionMasterInstaller.ps1", "storageAccountId": "/subscriptions/34f20750-9873-46a2-8eb2-1fe6e03fb174/resourceGroups/RGP-WVD-QuickStart/providers/Microsoft.Storage/storageAccounts/assets0219t104348z" }, { "uri": "https://assets0219t104348z.blob.core.windows.net/wvdscripts/001-AzFiles.zip", "storageAccountId": "/subscriptions/34f20750-9873-46a2-8eb2-1fe6e03fb174/resourceGroups/RGP-WVD-QuickStart/providers/Microsoft.Storage/storageAccounts/assets0219t104348z" }, { "uri": "https://assets0219t104348z.blob.core.windows.net/wvdscripts/002-FSLogix.zip", "storageAccountId": "/subscriptions/34f20750-9873-46a2-8eb2-1fe6e03fb174/resourceGroups/RGP-WVD-QuickStart/providers/Microsoft.Storage/storageAccounts/assets0219t104348z" }, { "uri": "https://assets0219t104348z.blob.core.windows.net/wvdscripts/003-NotepadPP.zip", "storageAccountId": "/subscriptions/34f20750-9873-46a2-8eb2-1fe6e03fb174/resourceGroups/RGP-WVD-QuickStart/providers/Microsoft.Storage/storageAccounts/assets0219t104348z" }, { "uri": "https://assets0219t104348z.blob.core.windows.net/wvdscripts/004-Teams.zip", "storageAccountId": "/subscriptions/34f20750-9873-46a2-8eb2-1fe6e03fb174/resourceGroups/RGP-WVD-QuickStart/providers/Microsoft.Storage/storageAccounts/assets0219t104348z" } ] } } }

knightking-ai commented 3 years ago

Hi,

Same problem!

@BarryJNewman @firedog-anon @stgeorgi Have you found any solution to the problem?

ianfraser-72 commented 3 years ago

Params look ok - did notice the ID template / token is in the params file as a placeholder but removing this from the original repo source completely as a test made no difference. I think it must be a malformed ARM template as I have no issue deploying other ARM template builds to the same resource group. I'll feedback if I manage to find anything.

knightking-ai commented 3 years ago

I've tried to change the "deploy.json" in "/Modules/ARM/VirtualMachines" but the problem is still there....

BarryJNewman commented 3 years ago

Removed the bootdiagnostics and it works, looks like presented null but I haven't had time to back trace.

firedog-anon commented 3 years ago

Barry did you remove from the arm module source?

Get Outlook for iOShttps://aka.ms/o0ukef


From: Barry J Newman notifications@github.com Sent: Tuesday, February 23, 2021 12:05:01 PM To: stgeorgi/wvdquickstart wvdquickstart@noreply.github.com Cc: Ian Fraser ian@reach4thecloud.com; Mention mention@noreply.github.com Subject: Re: [stgeorgi/wvdquickstart] 500 error when creating VMs (#27)

Removed the bootdiagnostics and it works, looks like presented null but I haven't had time to back trace.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/stgeorgi/wvdquickstart/issues/27#issuecomment-784153289, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AS245O6KOH3XPCCTFJK37WDTAOKW3ANCNFSM4XSVJ4OQ.

knightking-ai commented 3 years ago

Deleted bootdiagnostics but it did not solve the problem.

image