Skip to content
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

route map azapi (not associating to the connection) #433

Open
burimali opened this issue Mar 13, 2024 · 1 comment
Open

route map azapi (not associating to the connection) #433

burimali opened this issue Mar 13, 2024 · 1 comment

Comments

@burimali
Copy link

Subject: Route map creation and association to the peering connection.

Symptom: route map is created successfully but it is failing to be associated to the peering connection.

Some more details testing steps:
terraform: if we re-run it tries each time to associate it, the run goes through without failing.
terraform: re-run again it tries each time to associate it again, and the run goes goes through without failing.
click-ops: doing the association with click-ops, it gets associated.
terraform: running the code it then shows no changes to the infrastructure.

Code sample

source: https://learn.microsoft.com/en-us/azure/templates/microsoft.network/virtualhubs/routemaps?pivots=deployment-language-terraform

resource "azapi_resource" "routemap_outbound" {
type = "Microsoft.Network/virtualHubs/routeMaps@2023-04-01"
name = routemap-outbound
parent_id = "/subscriptions/*****/of the hub"

body = jsonencode({
properties = {
associatedOutboundConnections = [
"/subscriptions/*****/removed-full-id"
]
rules = [
{
actions = [
{
parameters = [
{
community = [
"65515:1"
]
}
]
type = "Add"
}
]
matchCriteria = [
{
asPath = [
"65515"
]
matchCondition = "Contains"
}
]
name = "rule1"
nextStepIfMatched = "Continue"
},
{
actions = [
{
parameters = [
{
community = [
"65520:1"
]
}
]
type = "Add"
}
]
matchCriteria = [
{
asPath = [
"65520"
]
matchCondition = "Contains"
}
]
name = "rule2"
nextStepIfMatched = "Continue"
}
]
}
})
}

@ms-henglu
Copy link
Collaborator

Hi @burimali ,

Thank you for taking time to report this issue!

Would you please share us more details to help investigate? Like the http request traces and the error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants