Azure / Azure/azure-quickstart-templates

Issue while creating a VM with IIS server (VM has reported a failure when processing extension 'dscExtension')

Open
#4,319 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

--------------------MESSAGE FROM ADMIN, DELETE BEFORE SUBMITTING----------------------

Issue while creating a VM with IIS server (VM has reported a failure when processing extension 'dscExtension')

--------------------MESSAGE FROM ADMIN, DELETE BEFORE SUBMITTING----------------------

[Template Name goes here](Template link goes here)

https://github.com/Azure/azure-quickstart-templates/tree/c1c44efecfa4e828d8f9a973c9ca260d5d2b8ee2/iis-2vm-sql-1vm

https://github.com/fixx220/ARMTemplates/tree/master/IIS-4VM-SQL-1VM

### Issue Details

I tried deploying the Github templates in Visual Studio to create IIS VMS and SQL server VM. Servers creating but creating the IIS server on the web server failing. When deployed the template directly in Azure portal all is working fine. I copied the content of azuredeploy.json and azuredeploy.parameter.json and modified the parameters. Not sure if I am missing specific steps related DSC extensions when deploying through Visual Studio. Please help me. Below is the error I am getting.

23:11:26 - Template deployment returned the following errors:
23:11:26 - 11:11:16 PM - Resource Microsoft.Compute/virtualMachines/extensions 'Cust1Web1/dscExtension' failed with message '{
23:11:26 - "status": "Failed",
23:11:26 - "error": {
23:11:26 - "code": "ResourceDeploymentFailure",
23:11:26 - "message": "The resource operation completed with terminal provisioning state 'Failed'.",
23:11:26 - "details": [
23:11:26 - {
23:11:26 - "code": "VMExtensionProvisioningError",
23:11:26 - "message": "VM has reported a failure when processing extension 'dscExtension'. Error message: \"The DSC Extension failed to execute: Error downloading https://stagef848a9a999ac4175a5c.blob.core.windows.net/myresourcegroup-stageartifactsscripts/WebServerConfig.ps1.zip after 2 attempts: AuthenticationFailedServer failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:40e6e855-a01e-00c3-064a-b02a39000000\nTime:2018-02-28T04:10:21.2721017ZSignature did not match. String to sign used was r\n\n2018-02-28T08:00:16Z\n/blob/stagef848a9a999ac4175a5c/myresourcegroup-stageartifactsscripts\n\n\n\n2017-04-17\n\n\n\n\n.\nMore information about the failure can be found in the logs located under 'C:\\WindowsAzure\\Logs\\Plugins\\Microsoft.Powershell.DSC\\2.74.0.0' on the VM.\"."
23:11:26 - }
23:11:26 - ]
23:11:26 - }
23:11:26 - }'
23:11:26 - 11:11:17 PM - VM has reported a failure when processing extension 'dscExtension'. Error message: "The DSC Extension failed to execute: Error downloading https://stagef848a9a999ac4175a5c.blob.core.windows.net/myresourcegroup-stageartifactsscripts/WebServerConfig.ps1.zip after 2 attempts: AuthenticationFailedServer failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
23:11:26 - RequestId:40e6e855-a01e-00c3-064a-b02a39000000
23:11:26 - Time:2018-02-28T04:10:21.2721017ZSignature did not match. String to sign used was r
23:11:26 -
23:11:26 - 2018-02-28T08:00:16Z
23:11:26 - /blob/stagef848a9a999ac4175a5c/myresourcegroup-stageartifactsscripts
23:11:26 -
23:11:26 -

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with azuredeploy.json and azuredeploy.parameter.json for the iis-2vm-sql-1vm template, focusing on the dscExtension deployment and the WebServerConfig.ps1.zip reference. Compare deployment through Visual Studio and the Azure portal, then inspect C:\WindowsAzure\Logs\Plugins\Microsoft.Powershell.DSC\2.74.0.0 on the VM. Done means the IIS VM deploys successfully through the documented path without the extension download failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.