Azure / Azure/azure-cli

Cannot Delete Application Gateway redirect-config

Open
#10,870 10 comments 0 reactions 0 assignees View on GitHub
act-quality-productivity-squad Network - Application Gateway Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**Describe the bug**
The portal allows creation of a Redirect Config but not deletion. In attempting to do so using the CLI I receive and error despite entering the proper commands.

**To Reproduce**

1. Create an application gateway and path based rule.
2. Create a redirect-config
3. Attempt to delete redirect config using the CLI with the following command:
az network application-gateway redirect-config delete -g MyResourceGroup --gateway-name MyAppGateway -n MyRedirectConfig

Received the following error:
```
Resource /subscriptions/{subscriptionId}/resourceGroups/rg-appgateway-test/providers/Microsoft.Network/applicationGateways/shgatewaytest/redirectConfigurations/LetsEncryptChallenge referenced by resource /subscriptions/{subscriptionId}/resourceGroups/rg-appgateway-test/providers/Microsoft.Network/applicationGateways/shgatewaytest/urlPathMaps/default-path/pathRules/LetsEncryptChallenge was not found. Please make sure that the referenced resource exists, and that both resources are in the same region.
```

**Expected behavior**
The redirect config should be deleted.

**Environment summary**
Tried with Azure CLI both in Portal and locally through bash.

**Additional context**
Redirect config initially created in the portal.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.