Azure / azure-kusto-microhack

MIT License
42 stars 21 forks source link

Failed to connect to MSI. Please make sure MSI is configured correctly #15

Closed hfleitas closed 4 months ago

hfleitas commented 1 year ago
cd ADX-IoT-Analytics-Solution-Accelerator
. ./deploy.sh
  1. Starting deployment of IoT Open Hack Environment [|] Installing IoT Extensions[1]+ Done add_required_extensions [-] Creating Resource Group with name ADXIoTAnalytics26525[1]+ Done create_resource_group [-] Deploying Azure Services[1]+ Done deploy_azure_services
  2. Starting configuration for deployment ADXIoTAnalyticsDeployment26525 Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Creating 30 devices on IoT Central: iotcentralpm26525 (1fba23e0-91cc-47bf-9257-22274f3603a8) Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> [|] Creating IoT Central App export and destination on IoT Central: iotcentralpm26525 (1fba23e0-91cc-47bf-9257-22274f3603a8)Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> [/] Creating IoT Central App export and destination on IoT Central: iotcentralpm26525 (1fba23e0-91cc-47bf-9257-22274f3603a8)Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]> [1]+ Exit 1 configure_IoT_Central_output INFO: Scanning... INFO: azcopy: A newer version 10.16.2 is available to download

INFO: Any empty folders will not be processed, because source and/or destination doesn't have full folder support

Job d2e2b671-96ce-2546-79bc-29e7bd6a4a64 has started Log file is located at: /home/hiram/.azcopy/d2e2b671-96ce-2546-79bc-29e7bd6a4a64.log

INFO: Could not read destination length. If the destination is write-only, use --check-length=false on the command line. 96.8 %, 0 Done, 0 Failed, 1 Pending, 0 Skipped, 1 Total,

Job d2e2b671-96ce-2546-79bc-29e7bd6a4a64 summary Elapsed Time (Minutes): 0.2668 Number of File Transfers: 1 Number of Folder Property Transfers: 0 Total Number of Transfers: 1 Number of Transfers Completed: 1 Number of Transfers Failed: 0 Number of Transfers Skipped: 0 TotalBytesTransferred: 261410655 Final Job Status: Completed

INFO: Scanning... INFO: azcopy: A newer version 10.16.2 is available to download

INFO: Any empty folders will not be processed, because source and/or destination doesn't have full folder support

Job 5673dd5c-cae1-6d43-5558-20f26910b03a has started Log file is located at: /home/hiram/.azcopy/5673dd5c-cae1-6d43-5558-20f26910b03a.log

INFO: Could not read destination length. If the destination is write-only, use --check-length=false on the command line. 91.6 %, 2 Done, 0 Failed, 1 Pending, 0 Skipped, 3 Total,

Job 5673dd5c-cae1-6d43-5558-20f26910b03a summary Elapsed Time (Minutes): 0.1667 Number of File Transfers: 3 Number of Folder Property Transfers: 0 Total Number of Transfers: 3 Number of Transfers Completed: 3 Number of Transfers Failed: 0 Number of Transfers Skipped: 0 TotalBytesTransferred: 199009418 Final Job Status: Completed

  1. Configuration completed
hfleitas commented 4 months ago

@SuryaTejJosyula , pls update the readme with the following after the deploy.sh script.

reference readme.md in https://aka.ms/adx.iot

⚠️ You may see the following Error ⚠️

Failed to connect to MSI. Please make sure MSI is configured correctly. Get Token request returned: <Response [400]>

This error occurs because the IoT Central App doesn't yet exist. It now takes ~10 minutes to create, and our deployment script is not set to wait. To fix the error please follow these steps:

Open the new resource group ADXIoTAnalytics... that was created in your subscription > open eventhubpm... > scroll down and click iotdata > click Shared access policies > click ListenSend > click the paper stack to copy the Connection string-primary key. Go back to the resource group > click iotcentralpm..., click the IoT Central Application URL Wait & refresh the page for your app to appear under My Apps. Note, login to IoT Central with the same account of your subscription. Open your IoT App, should be called Store Analytics, expand the menu on the left by clicking the hamburger icon > click Data Export > click Destinations > add a new destination, name it iotdata, type Azure Event Hubs > paste the Connection String > click Save. Click Data Export again > add an export > name it Export, type: Telemetry, for Destionation choose iotdata, click Save. Refresh the page till it appears Healthy, should take approximately 5 minutes. Proceed with the rest of the lab.