Azure / Industrial-IoT

Azure Industrial IoT Platform
MIT License
523 stars 214 forks source link

Deployment script for Industrial-IoT microservices fail #27

Closed michaellindberg closed 5 years ago

michaellindberg commented 5 years ago

Hi,

When I try to follow the guideline for deploying the microservices I run into several issues and I had to do some changes to the https://github.com/Azure/Industrial-IoT/blob/master/services/deploy/vm/template.json file to get it to a stage where it starts deploying components in Azure. But I can't get it to completely succeed, I hope you can help.

  1. There is an issue with a Keyvault resource pointing to a variable named keyVaultVersion which does not exist under variables (I changed this to keyVaultApiVersion) which will remove this error.
  2. It seems that the script tries to create two key vaults with the same name. Removing the key vault below solves the duplicate key vault issue and the resources will start to deploy to Azure. { "type": "Microsoft.KeyVault/vaults", "name": "[parameters('keyVaultName')]", "apiVersion": "[variables('keyVaultVersion')]", "location": "[resourceGroup().location]", "tags": { "displayName": "[parameters('keyVaultDisplayName')]" }, "properties": { "enabledForDeployment": true, "enabledForTemplateDeployment": false, "enabledForVolumeEncryption": false, "sku": { "name": "[parameters('keyVaultSkuName')]", "family": "A" }, "tenantId": "[parameters('aadTenantId')]", "accessPolicies": [] } },
  3. A BadRequest error is received when trying to create the key vault secret /PCS_IOTHUBREACT_AZUREBLOB_KEY

I tried to follow this guide both with the old repo https://github.com/Azure/azure-iiot-components, the new repo https://github.com/Azure/Industrial-IoT master branch and the "new_repo_structure" branch.

Thanks :)

marcschier commented 5 years ago

Hi @michaellindberg, thanks for filing the issue :-)

Apologies for you hitting multiple problems here, among them:

I am working on a fix now and should have deployment working again by end of day GMT. Manually validated.

marcschier commented 5 years ago

Fixed with #28 - in lieu of deployment being part of CI at this point (another work item) I manually tested cloud and local deployment. Please try out and re-open if you see issues.

michaellindberg commented 5 years ago

I can confirm that the deploy script works now. I get a 404 when accessing the website (https://_solutionname_.azurewebsites.net/), but I will try and have a look at it before opening a new issue.