Skip to content

Cannot set external redirect on AGW v2 #30514

Description

@ITSJORDAN-TFA

Describe the bug

When using the commands to update rules and url path rules any redirections do not flow through to the AGW.

Related command

$redirectConfig = az network application-gateway redirect-config create `
        --gateway-name $appGatewayName `
        --resource-group $resourceGroupName `
        --name "$rule-Redirect" `
        --type Temporary `
        --target-url $ruleToUrlMap[$rule] `
        --include-query-string false `
        --include-path false `
        --query id `
        --output tsv

az network application-gateway rule update `
        --gateway-name $appGatewayName `
        --resource-group $resourceGroupName `
        --name $rule `
        --redirect-config "$rule-Redirect" `
        --no-wait

Errors

No errors, CLI shows everything successful

Issue script & Debug output

N/A

Expected behavior

Expected: Image

Expecting the redirect to be selected for this rule, but it does not show in portal or respected when navigating via the browser.
I do see the redirectConfiguration in the az network application-gateway rule show

Environment Summary

azure-cli 2.67.0

core 2.67.0
telemetry 1.1.0

Extensions:
bastion 0.2.5

Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\jorda.azure\cliextensions'

Python (Windows) 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 02:44:45) [MSC v.1941 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamNetworkaz network vnet/lb/nic/dns/etc...act-quality-productivity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions