// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.labservices.generated;

import com.azure.core.util.Context;
import com.azure.resourcemanager.labservices.models.ResetPasswordBody;

/** Samples for VirtualMachines ResetPassword. */
public final class VirtualMachinesResetPasswordSamples {
    /*
     * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/resetPasswordVirtualMachine.json
     */
    /**
     * Sample code: resetPasswordVirtualMachine.
     *
     * @param manager Entry point to LabServicesManager.
     */
    public static void resetPasswordVirtualMachine(com.azure.resourcemanager.labservices.LabServicesManager manager) {
        manager
            .virtualMachines()
            .resetPassword(
                "fakeResourceGroupNamePlaceholder",
                "testlab",
                "template",
                new ResetPasswordBody().withUsername("example-username").withPassword("example-password"),
                Context.NONE);
    }
}
