Closed ischepin closed 3 years ago
Thanks for flagging this @ischepin - I was able to repro the issue.
This PR should fix it: https://github.com/microsoft/azure_arc/pull/744 - I've validated on EKS.
The issue was ARM added an extra layer of validation in to check for Log Analytics WS Params - which weren't being passed in via Terraform.
You have 2 options to proceed with the scenario:
main
main
, run this portion to update the placeholder in the ARM templates. Redeploy the DC ARM templates, and you should be able to deploy Postgres after that.I'm going to keep the issue open until the PR is merged in.
Scenario which you are working on https://azurearcjumpstart.io/azure_arc_jumpstart/azure_arc_data/eks/eks_postgres_hs_terraform/
Describe the bug At "Windows Login & Post Deployment" stage when script is running inside windows client machine there is an error during deployment of Azure data controller:
{"error":{"code":"InvalidTemplateDeployment","message":"The template deployment 'dataController' is not valid according to the validation procedure. The tracking id is '1dd0e5aa-a47e-49a4-86dd-1cb8918d35d2'. See inner errors for details.","details":[{"code":"OpenAPISpecValidationFailedForTemplateDeploymentResources","message":"One or more resources in template deployment preflight validation request failed during OpenApi spec (swagger) validation. Please check error details for the resource identifiers.","details":[{"code":"HttpRequestPayloadAPISpecValidationFailed","target":"/subscriptions/a088ac12-28e0-48d5-a00d-9f5d48c7cfbb/resourceGroups/RG/providers/Microsoft.AzureArcData/dataControllers/jumpstart-dc","message":"HTTP request payload failed validation against API specification with one or more errors. Please see details for more information.","details":[{"code":"InvalidFormat","message":"Object didn't pass validation for format uuid: . Paths in payload: '$.properties.logAnalyticsWorkspaceConfig.workspaceId'"}]}]}]}}
As a result, data controller is not deployed and script waits for it indefinitely. I tried the entire scenario from scratch and got the same error.To Reproduce Steps to reproduce the behavior:
Expected behavior Data controller is deployed
Script output arc.txt