// 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 Delete. */
public final class ServerVulnerabilityAssessmentDeleteSamples {
    /*
     * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json
     */
    /**
     * Sample code: Delete a server vulnerability assessments on a resource. Only 'default' resource is supported. Once
     * deleting, Microsoft.Security will not provide vulnerability assessment findings on the resource.
     *
     * @param manager Entry point to SecurityManager.
     */
    public static void
        deleteAServerVulnerabilityAssessmentsOnAResourceOnlyDefaultResourceIsSupportedOnceDeletingMicrosoftSecurityWillNotProvideVulnerabilityAssessmentFindingsOnTheResource(
            com.azure.resourcemanager.security.SecurityManager manager) {
        manager
            .serverVulnerabilityAssessments()
            .delete("rg1", "Microsoft.Compute", "virtualMachines", "vm1", com.azure.core.util.Context.NONE);
    }
}
