-
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
Support for separate resource for API Management service All APIs Policy #9214
Comments
This sounds very promising! Can you please confirm that the |
When applying our own policy, it ends up looking correct in the Azure Portal policy editor and in the API responses for the policy, so I assume it is fine. We do have a few expressions with <set-variable name=\"REDACTED\" value=\"@(((IResponse)context.Variables["REDACTED"]).Body.As<JObject>())\" /> |
Thanks for the heads-up. I just want to make sure this new resource can also be used to set policies containing stuff like: <set-variable name="REDACTED" value="@(((IResponse)context.Variables["REDACTED"]).Body.As<JObject>())" /> This appears to be the case, which is great. Note that with the current <set-variable name="REDACTED" value="@(((IResponse)context.Variables["REDACTED"]).Body.As<JObject>())" /> I created a PR for that: #9296. |
Are there any workarounds for the catch-22 problem mentioned regarding named values which are referenced from the policies? Possibly something that can be controlled using the resource lifecycles? I didn't notice this problem until trying to destroy resources. The reason I didn't notice them when creating resources was that I didn't create all resources from scratch. I already had an existing API management resource. |
This has been released in version 2.39.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.39.0"
}
# ... other configuration ... |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Description
If references to named values are used in the API Management service (henceforth APIM) policy for All APIs, the named values must exist first. However, for named values to be created, they need the APIM to be created first, hence creating a catch-22.
New or Affected Resource(s)
Potential Terraform Configuration
References
N/A.
The text was updated successfully, but these errors were encountered: