locked
Azure Stack Appservice Deployment Failed RRS feed

  • Question

  • Tried to deploy AppService in ASDK and followed the document in https://docs.microsoft.com/en-us/azure-stack/operator/azure-stack-app-service-before-you-get-started?view=azs-2002#prepare-the-file-server

    and used the template for HA found in https://github.com/Azure/AzureStack-QuickStart-Templates/tree/master/appservice-fileserver-sqlserver-ha

    I got the error below.  Does anyone encountered this? Hope anyone can help on how to resolve this.

    Thank you.

    { "id": "/subscriptions/036cd4e8-2188-4c5a-886c-64ac1307f6bc/resourceGroups/AppService1-RG/providers/Microsoft.Resources/deployments/Microsoft.Template/operations/58656A312C229CE8", "operationId": "58656A312C229CE8", "properties": { "provisioningOperation": "Create", "provisioningState": "Failed", "timestamp": "2020-04-21T09:44:08.0133565Z", "duration": "PT34M2.3208149S", "trackingId": "efbedc7d-458a-4f93-a085-a2bfaef9fe14", "statusCode": "Conflict", "statusMessage": { "status": "Failed", "error": { "code": "ResourceDeploymentFailure", "message": "The resource operation completed with terminal provisioning state 'Failed'.", "details": [ { "code": "DeploymentFailed", "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.", "details": [ { "code": "Conflict", "message": "{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"VMExtensionProvisioningError\",\r\n \"message\": \"VM has reported a failure when processing extension 's2dConfig'. Error message: The DSC Extension received an incorrect input: Compilation errors occurred while processing configuration 'ConfigS2D'. Please review the errors reported in error stream and modify your configuration code appropriately. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. A conflict was detected between resources '[xADUser]CreateFileShareOwnerAccount (C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.77.0.0\\\\DSCWork\\\\config-s2d.ps1.0\\\\ConfigS2D.ps1::114::9::xADUser)' and '[xADUser]CreateFileShareUserAccount (C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.77.0.0\\\\DSCWork\\\\config-s2d.ps1.0\\\\ConfigS2D.ps1::126::9::xADUser)' in node 'localhost'. Resources have identical key properties but there are differences in the following non-key properties: 'Password'. Values 'System.Management.Automation.PSCredential' don't match values 'System.Management.Automation.PSCredential'. Please update these property values so that they are identical in both cases. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist. Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist.\\n\\nAnother common error is to specify parameters of type PSCredential without an explicit type. Please be sure to use a typed parameter in DSC Configuration, for example:\\n\\n configuration Example {\\n param([PSCredential] $UserAccount)\\n ...\\n }.\\nPlease correct the input and retry executing the extension.\"\r\n }\r\n ]\r\n }\r\n}" } ] } ] } }, "targetResource": { "id": "/subscriptions/036cd4e8-2188-4c5a-886c-64ac1307f6bc/resourceGroups/AppService1-RG/providers/Microsoft.Resources/deployments/deployS2DCluster", "resourceType": "Microsoft.Resources/deployments", "resourceName": "deployS2DCluster" } }}



    • Edited by JysnCpl Tuesday, April 21, 2020 2:31 PM
    Tuesday, April 21, 2020 2:30 PM

All replies

  • Hi, it appears you may not have the PowerShell Desired State Configuration Extension available on your ASDK.  Did you syndicate the extension from the MarketPlace?

    As per -https://github.com/Azure/AzureStack-QuickStart-Templates/tree/master/appservice-fileserver-sqlserver-ha

    You need to ensure you have syndicated the following:

      • Windows Server 2016 Datacenter Core Image (for AD and File Server VMs)
      • SQL Server 2016 SP2 on Windows Server 2016 (Enterprise)
    • Latest SQL IaaS Extension 1.2.x (currently 1.2.30)
    • Latest PowerShell Desired State Configuration Extension (currently 2.76.0)

    Information on downloading marketplace items - https://docs.microsoft.com/en-us/azure-stack/operator/azure-stack-download-azure-marketplace-item?view=azs-2002

    Thanks

    Andrew


    Andrew Westgarth | Senior Program Manager | Azure App Service Team Blog: https://aka.ms/appserviceblog Twitter: https://www.twitter.com/apwestgarth

    Tuesday, April 21, 2020 9:10 PM
  • Hi Andrew,

    Thank you for the response. 

    I already downloaded those templates before deploying.  Here are the items on my marketplace and where the deployment failed.

    Wednesday, April 22, 2020 12:53 AM
  • There are many errors here:

    Cannot find path 'HKLM:\\\\SOFTWARE\\\\Microsoft\\\\PowerShell\\\\3\\\\DSC' because it does not exist.

    A conflict was detected between resources '[xADUser]CreateFileShareOwnerAccount (C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.77.0.0\\\\DSCWork\\\\config-s2d.ps1.0\\\\ConfigS2D.ps1::114::9::xADUser)' and '[xADUser]CreateFileShareUserAccount (C:\\\\Packages\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.77.0.0\\\\DSCWork\\\\config-s2d.ps1.0\\\\ConfigS2D.ps1::126::9::xADUser)' in node 'localhost'. Resources have identical key properties but there are differences in the following non-key properties: 'Password'. Values 'System.Management.Automation.PSCredential' don't match values 'System.Management.Automation.PSCredential'. Please update these property values so that they are identical in both cases.

    Another common error is to specify parameters of type PSCredential without an explicit type. Please be sure to use a typed parameter in DSC Configuration, for example:\\n\\n configuration Example {\\n param([PSCredential] $UserAccount)\\n ...\\n }.\\nPlease correct the input and retry executing the extension.\"\r\n }\r\n ]\r\n }\r\n}" } ] } ] } }, "targetResource": { "id": "/subscriptions/036cd4e8-2188-4c5a-886c-64ac1307f6bc/resourceGroups/AppService1-RG/providers/Microsoft.Resources/deployments/deployS2DCluster", "resourceType": "Microsoft.Resources/deployments", "resourceName": "deployS2DCluster" } }}

    Some of these errors have occurred in the past with version mismatches or newer versions. Can you try to use the 2.76 version of the DSC extension?

    Wednesday, April 22, 2020 10:22 PM
  • Hi Travis,

    Thank you for the response.  Only 2.77 version is available on the marketplace.  Is there way to download older versions?

    Thursday, April 23, 2020 5:25 AM