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

package com.azure.resourcemanager.security.generated;

/** Samples for ServerVulnerabilityAssessment CreateOrUpdate. */
public final class ServerVulnerabilityAssessmentCreateOrUpdateSamples {
    /*
     * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json
     */
    /**
     * Sample code: Create a server vulnerability assessments on a resource. Only 'default' resource is supported. Once
     * creating the resource, the server will be onboarded to vulnerability assessment by Microsoft.Security.
     *
     * @param manager Entry point to SecurityManager.
     */
    public static void
        createAServerVulnerabilityAssessmentsOnAResourceOnlyDefaultResourceIsSupportedOnceCreatingTheResourceTheServerWillBeOnboardedToVulnerabilityAssessmentByMicrosoftSecurity(
            com.azure.resourcemanager.security.SecurityManager manager) {
        manager
            .serverVulnerabilityAssessments()
            .createOrUpdateWithResponse(
                "rg1", "Microsoft.Compute", "virtualMachines", "vm1", com.azure.core.util.Context.NONE);
    }
}
