microsoft / azure_arc

Automated Azure Arc, Edge, and Platform environments
https://aka.ms/ArcJumpstart
Creative Commons Attribution 4.0 International
743 stars 549 forks source link

Deploying Azure IoT Operations - Manufacturing Scenario fails with can't find artifacts error #2752

Closed marshallbentley closed 2 weeks ago

marshallbentley commented 1 month ago

Note: For ease of issues and pull requests management and tracking, we kindly ask you to provide a meaningful and concise title to this issue and answer all questions to the best of your ability.

Is your issue related to a Jumpstart scenario, ArcBox, HCIBox, or Agora?

Jumpstart: https://azurearcjumpstart.com/azure_arc_jumpstart/azure_edge_iot_ops/aio_manufacturing

Describe the issue or the bug

After following the guide, when provisioning the deploying via azd, I receive the following error:

Deployment Error Details:
VMExtensionProvisioningError: VM has reported a failure when processing extension 'Bootstrap' (publisher 'Microsoft.Compute' and type 'CustomScriptExtension'). Error message: 'Command execution finished, but failed because it returned a non-zero exit code of: '1'. The command had an error output of: 'Invoke-WebRequest : The remote name could not be resolved: 'artifacts'
At C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\1.10.18\Downloads\0\Bootstrap.ps1:74 char:1
...' For more information, check the instance view by executing Get-AzVmssVm or Get-AzVm (https://aka.ms/GetAzVm). These commands can be executed using CloudShell (https://aka.ms/CloudShell)'. More information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot. 

TraceID: 00000000000000000000000000000000

I did some troubleshooting on this and found the aio_manufacturing/bicep/artifacts/PowerShell/Bootstrap.ps1.templateBaseUrl was not being set correctly. I was able to get past this by forking the repo and hard coding templateBaseUrl to point to my fork.

To Reproduce

Follow the guide and deploy via azd, entering the variables as prompted.

Expected behavior

Following the guide and deploying via azd deploys successfully.

Environment summary

Have you looked at the Troubleshooting and Logs section?

Screenshots

Additional context

microsoft-github-policy-service[bot] commented 1 month ago

Hi marshallbentley! Thank you for opening this issue. We appreciate your contribution and welcome you to our community! We are glad to have you here and to have your input on the Arc Jumpstart.

mrhoads commented 1 month ago

Hi @marshallbentley - thanks for reporting the issue. I'm taking a look at this and will post back with more information later.

mrhoads commented 2 weeks ago

Closing this issue after @marshallbentley and I spoke about this. Deployments are now successful.