Description
Library name and version
Azure.ResourceManager.Network 1.7.0.0
Describe the bug
I am using ArmClient to retrieve the following resource:
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