azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Without the paramater '--protected-settings' the command could not work

Open tjxxxxx opened this issue 2 years ago • 6 comments

[Enter feedback here] I do multiple test in my lab and I found, if I did not add this parameter '--protected-settings' the extension could not install successfully.

I must add this paramter even though with a empty value it could still work. eg: az vm extension set --name "VMAccessAgent" --publisher "Microsoft.Compute" --vm-name 2022windows -g 2022 --protected-settings "{}"

Could you please help to check if there are some issues with this command? As in the Powershell environment we do not need to add this paramter.

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

tjxxxxx avatar Feb 20 '23 06:02 tjxxxxx

@zhoxing-ms for awareness

yonzhan avatar Feb 20 '23 06:02 yonzhan

Further more, add the error message if we do not add this parameter. image

I also check the extension log and agent log. The extension installed successfully but it could not enable successfully and directly return the error code. Please help to advice if we install vmaccess agent we must add the parameter or not. If yes, please help to update the document. If not please advice why this issue happen.

Thanks.

tjxxxxx avatar Feb 20 '23 07:02 tjxxxxx

{
    "startTime": "2023-02-20T07:40:25.7281874+00:00", 
    "endTime": "2023-02-20T07:40:26.0563897+00:00", 
    "status": "Failed", 
    "error": {
        "code": "VMExtensionHandlerNonTransientError", 
        "message": "The handler for VM extension type 'Microsoft.Compute.VMAccessAgent' has reported terminal failure for VM extension 'VMAccessAgent' with error message: 'Enable failed for plugin (name: Microsoft.Compute.VMAccessAgent, version 2.4.9) with exception Command C:\\Packages\\Plugins\\Microsoft.Compute.VMAccessAgent\\2.4.9\\enable.cmd of Microsoft.Compute.VMAccessAgent has exited with Exit code: -1073741819'.
    
'Enable handler for the extension failed. More information on troubleshooting is available at https://aka.ms/vmextensionwindowstroubleshoot'"
    }, 
    "name": "9dca6e7f-0051-4c55-be34-d11eca2826f0"
}

Since this error message is returned from REST service virtual-machine-scale-set-vm-extensions/create-or-update, so we need the service team to help investigate the root cause of this error message.

@nkuchta Could you please help take a look at this issue? Or could you route this issue to the right person? 'x-ms-correlation-request-id': '6eadd4cb-01b4-419f-8fbd-7855e7fca877'

zhoxing-ms avatar Feb 20 '23 07:02 zhoxing-ms

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Mar 13 '23 00:03 ghost

@tjxxxxx we are investigating this.

GabstaMSFT avatar Mar 14 '24 19:03 GabstaMSFT

@tjxxxxx we are currently working on this, I will update this issue once we've rolled out the fix.

GabstaMSFT avatar Jun 27 '24 15:06 GabstaMSFT

@tjxxxxx are you still able to reproduce this issue? If so could you provide repro steps to us? We have tried internally and are unable to repro this issue.

GabstaMSFT avatar Jul 09 '24 17:07 GabstaMSFT

@tjxxxxx have you been able to reproduce the issue?

GabstaMSFT avatar Jul 25 '24 14:07 GabstaMSFT

@tjxxxxx, I haven’t been able to reach you in my last few attempts. Perhaps this is a bad time for you right now due to other obligations or you no longer need assistance. To avoid further ‘spam’ from me trying to contact you I will be closing your issue for now.

Your issue is important to us, and we want to ensure you do get the help you need so if at any time you want to continue working on this issue, please reopen the issue and we would be happy to continue to assist you.

GabstaMSFT avatar Aug 06 '24 15:08 GabstaMSFT