azure_arc icon indicating copy to clipboard operation
azure_arc copied to clipboard

VM has reported a failure when processing extension 'Bootstrap' (publisher 'Microsoft.Compute' and type 'CustomScriptExtension')

Open potejasw opened this issue 10 months ago • 14 comments

Is your issue related to a Jumpstart scenario, HCIBox

Describe the issue or the bug

To Reproduce

Environment summary

azure-cli 2.56.0 *

core 2.56.0 * telemetry 1.1.0

Extensions: init 0.1.0

Dependencies: msal 1.24.0b2 azure-mgmt-resource 23.1.0b2

Have you looked at the Troubleshooting and Logs section?

Screenshots

Additional context

potejasw avatar Apr 18 '24 04:04 potejasw

can you share more information, screenshots on the error ? Have you tried a redeployment ?

sebassem avatar Apr 22 '24 12:04 sebassem

Yes, I have tried the redeployment its failed with same error. image

potejasw avatar Apr 22 '24 12:04 potejasw

this looks like a problem with the service principal credentials. Please double check that you have provided the right SPN credentials with the right permissions. If all looks good please RDP into the machine and share the bootstrap.log

sebassem avatar Apr 22 '24 15:04 sebassem

I tried to build the HCIBox from the begging as a fresh deployment. Again its failed with same error. This time I made sure provided the SPN ID and details.

image image image

VM has deployed and I don't see the Bootstrap log under this location: C:\HCIBox\Logs\Bootstrap.log image

image

potejasw avatar Apr 23 '24 06:04 potejasw

can you share your parameters file with obfuscating the secrets ?

sebassem avatar Apr 23 '24 11:04 sebassem

main.parameters.json

Attached.

potejasw avatar Apr 23 '24 12:04 potejasw

When did you clone the repo? I assume it's an old copy since there are some parameters not available in your file. Also please double check in the main.bicep file that the githubAccount is set to microsoft and githubBranch is set to main. If that's the case, please perform a new clone

sebassem avatar Apr 23 '24 12:04 sebassem

I deleted older clone and created the new clone. Tried to redeploy and its failed with below error.

image

Here is the latest json file.

main.parameters.json

This is on Azure portal: image

potejasw avatar Apr 23 '24 12:04 potejasw

have you changed the property imageReference in the host.bicep file ?

sebassem avatar Apr 23 '24 12:04 sebassem

No, I haven't touched that.

image

potejasw avatar Apr 23 '24 13:04 potejasw

@dkirby-ms any thoughts on this ?

sebassem avatar Apr 23 '24 13:04 sebassem

@potejasw you need to revoke/rotate your SPN secret immediately if you havent already.

dkirby-ms avatar Apr 24 '24 12:04 dkirby-ms

Yes, Wiped out all RG and starting the new build.

potejasw avatar Apr 24 '24 14:04 potejasw

Hello @potejasw , what is your current status?

sebassem avatar Apr 28 '24 15:04 sebassem

@sebassem, Thank you for the follow up.

In the last week, I have wiped out and build the HCI box couple of times and that worked. Now I have stable lab deployed. I have to build the cluster now.

potejasw avatar Apr 29 '24 05:04 potejasw

Thanks for the update, glad you got it working. Will close the issue now as resolved.

sebassem avatar Apr 29 '24 07:04 sebassem