How to update Azure Dedicated Host CMW using Azure Rest API

HyeonJung Park 65 Reputation points

Hi, My client is trying to update ADH using REST API.

Now the host is connected to CMW and needs to proceed with the update, can you tell me the REST API command that can do this? I'd like you to give me the relevant documents as well.

If this function doesn't exist yet, please tell me that it doesn't exist.

Thank you.

  1. Anonymous

    @HyeonJung Park

    I am not entirely sure what you are trying to update and what you mean by CMW. Can you please provide more details?

  2. HyeonJung Park 65 Reputation points

    @Anonymous

    I would like to proceed with the update using the maintenance control of the azure dedicated host.
    Is there a RESP API command that functions the same as "Apply maintenance now" below?
    👁 User's image

  3. Anonymous

    @HyeonJung Park

    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    👁 User's image


Sign in to comment

Answer accepted by question author

Anonymous

@HyeonJung Park

Thanks for providing those details. You should be able to use the Apply Updates REST API to perform this operation. Please check if this works for you and let me know if you have any questions.

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/default?api-version=2021-05-01

If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

Thank you for helping to improve Microsoft Q&A! 👁 User's image

0 comments No comments

Sign in to comment

0 additional answers

Sign in to answer

Your answer