Skip to content

[BUG] Misspelled hard-coded path to AGW WAF resource #44443

Open
@nordvall

Description

@nordvall

Library name and version

Azure.ResourceManager.Network 1.7.0.0

Describe the bug

I am using ArmClient to retrieve the following resource:

https://management.azure.com/subscriptions/xxx/providers/Microsoft.Network/locations/westeurope/applicationGatewayWafDynamicManifests/default

After some searching I found a method in the Azure.ResourceManager.Network package to do that: GetApplicationGatewayWafDynamicManifestResource

Expected behavior

I expect to receive the same data as if I was using a simple REST client to get the url mentioned above.

Actual behavior

When I invoke that method I receive an exception that the resource was not found (!?)

After some investigation I concluded that while intention is to retrieve a resource called "default", in the source code it is mis-spelled as "dafault". You can do a search for "dafault" in this repo and you'll see.

Therefore I was not able to retrieve the data I need via the package mentioned.

As I workaround I have built a HttpPipelinePolicy that alters the URL on-the-fly. Not so pretty...

Reproduction Steps

using Azure.ResourceManager.Network;

var armClient = new ArmClient(new DefaultAzureCredential());
ResourceIdentifier wafPolicyResourceId = ApplicationGatewayWafDynamicManifestResource.CreateResourceIdentifier(subscriptionId.ToString(), AzureLocation.WestEurope);
Response<ApplicationGatewayWafDynamicManifestResource> wafPoliciesManifestResource = await armClient.GetApplicationGatewayWafDynamicManifestResource(wafPolicyResourceId).GetAsync();

Environment

No response

Metadata

Metadata

Assignees

Labels

ARMMgmtThis issue is related to a management package.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions