Dns Resolvers - Delete
Deletes a DNS resolver. WARNING: This operation cannot be undone.
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}?api-version=2025-05-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
dns
|
path | True |
string |
The name of the DNS resolver. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string (uuid) |
The ID of the target subscription. The value must be an UUID. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Request Header
Name | Required | Type | Description |
---|---|---|---|
If-Match |
string |
ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The DNS resolver has been deleted. |
|
202 Accepted |
The operation to delete DNS resolver has been accepted and will complete asynchronously. |
|
204 No Content |
The DNS resolver was not found. |
|
Other Status Codes |
Default response. It will be deserialized as per the Error definition. |
Examples
Delete DNS resolver
Sample request
DELETE https://management.azure.com/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsResolvers/sampleDnsResolver?api-version=2025-05-01
Sample response
Location: https://management.azure.com/api/mresolver/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/asyncOperationId?api-version=2025-05-01
Azure-AsyncOperation: https://management.azure.com/api/mresolver/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/asyncOperationId?api-version=2025-05-01
Definitions
Name | Description |
---|---|
Cloud |
An error message |
Cloud |
The body of an error message |
CloudError
An error message
Name | Type | Description |
---|---|---|
error |
The error message body |
CloudErrorBody
The body of an error message
Name | Type | Description |
---|---|---|
code |
string |
The error code |
details |
Extra error information |
|
message |
string |
A description of what caused the error |
target |
string |
The target resource of the error message |