-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected status 404 (404 Not Found) with error: ResourceNotFound: PolicyFragment not found. #26959
Comments
Hi @nikhil0499 thanks for opening this issue. Unfortunately, I could not reproduce the issue with the following tf config. Could you reproduce with it?
|
Hi @sinbai , Good Day ! So initially when you see the resource block I had used "xml" , but after changing it to "rawxml", it started to work.
And one more thing , In this https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_policy_fragment docs , I could find the "format" param is required. |
Excellent. Thanks for finding this out. Actually |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
v1.9.1
AzureRM Provider Version
3.105.0
Affected Resource(s)/Data Source(s)
azurerm_api_management_policy_fragment
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Should have created the policy fragments
Actual Behaviour
Error: creating Policy Fragment (Subscription: "xxx" Resource Group Name: "xxx" Service Name: "xxx" Policy Fragment Name: "apim-common-cors"): polling after CreateOrUpdate: executing request: unexpected status 404 (404 Not Found) with error: ResourceNotFound: PolicyFragment not found.
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: