Server Vulnerability Assessments - Delete
Removes the server's vulnerability assessment.
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/default?api-version=2021-11-01
URI Parameters
Name |
In |
Required |
Type |
Description |
resourceGroupName
|
path |
True
|
string
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
|
serverName
|
path |
True
|
string
|
The name of the server for which the vulnerability assessment is defined.
|
subscriptionId
|
path |
True
|
string
|
The subscription ID that identifies an Azure subscription.
|
vulnerabilityAssessmentName
|
path |
True
|
VulnerabilityAssessmentName
|
The name of the vulnerability assessment.
|
api-version
|
query |
True
|
string
|
The API version to use for the request.
|
Responses
Name |
Type |
Description |
200 OK
|
|
Successfully removed the server vulnerability assessment.
|
Other Status Codes
|
|
*** Error Responses: ***
400 InvalidStorageAccountName - The provided storage account is not valid or does not exist.
400 InvalidStorageAccountCredentials - The provided storage account shared access signature or account storage key is not valid.
400 VulnerabilityAssessmentUnsupportedStorageAccount - The provided storage account is unsupported.
400 VulnerabilityAssessmentADSIsDisabled - Advanced Data Security should be enabled in order to use Vulnerability Assessment.
400 VulnerabilityAssessmentStorageOutboundFirewallNotAllowed - The storage account is not in the list of Outbound Firewall Rules.
400 VulnerabilityAssessmentInsufficientStorageAccountPermissions - Insufficient permissions on the provided storage account.
400 VulnerabilityAssessmentStorageAccountIsDisabled - The provided storage account is disabled.
404 SubscriptionDoesNotHaveServer - The requested server was not found
|
Examples
Remove a server's vulnerability assessment
Sample request
DELETE https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/servers/vulnerabilityaseessmenttest-6440/vulnerabilityAssessments/default?api-version=2021-11-01
import com.azure.resourcemanager.sql.models.VulnerabilityAssessmentName;
/**
* Samples for ServerVulnerabilityAssessments Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/sql/resource-manager/Microsoft.Sql/stable/2021-11-01/examples/ServerVulnerabilityAssessmentDelete.
* json
*/
/**
* Sample code: Remove a server's vulnerability assessment.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void removeAServerSVulnerabilityAssessment(com.azure.resourcemanager.AzureResourceManager azure) {
azure.sqlServers().manager().serviceClient().getServerVulnerabilityAssessments().deleteWithResponse(
"vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", VulnerabilityAssessmentName.DEFAULT,
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Definitions
VulnerabilityAssessmentName
The name of the vulnerability assessment.
Name |
Type |
Description |
default
|
string
|
|