Open nordvall opened 3 months ago
Thank you for your feedback. Tagging and routing to the team member best able to assist.
Hi @nordvall , our SDK is auto generated, this is a swagger issue. Opened one issue to track the fix: https://github.com/Azure/azure-rest-api-specs/issues/29460
@HarveyLink thank you for reporting the issue in the correct repo.
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
Environment
No response