question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Can't use configuration to overwrite global policy.

See original GitHub issue

Release version

v4.1.2

Describe the bug

We have our CORS config setup in the global policy of our APIM instance which is different across 3 separate environments. Hence we need to be able to change this between each environment however the following doesn’t seem to work:

apimServiceName: "{apimName}"
policies:
  name: "policy"
  properties:
    value: "{policy}"

This configuration seemingly gets ignored.

Expected behavior

For the global policy to be replaced with whatever {policy} is set to

Actual behavior

The config file is ignored and the policy.xml is pushed.

Reproduction Steps

Use this as your configuration:

apimServiceName: "{apimName}"
policies:
  name: "policy"
  properties:
    value: "{policy}"

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nathan-j-codescommented, May 11, 2023

@guythetechie I tried it and it works. Thank you.

0reactions
guythetechiecommented, May 10, 2023

@yaterchatter - We unfortunately don’t support overriding fragments either. That said, would a solution like this work?

Read more comments on GitHub >

github_iconTop Results From Across the Web

5506-X in packet tracer can't configure global policy ...
I've just come across this issue myself, what I found worked was deleting the global policy on there, then remaking it using the...
Read more >
Can I override domain group policy with local ...
There are always way to hack around central policies if you have local admin access - at a minimum you can make your...
Read more >
Applying Group Policy troubleshooting guidance
This error code might indicate that the DNS configuration is incorrect. To correct timeout issues, use the nslookup tool to confirm _ldap._tcp.< ...
Read more >
I tried to change a git config, but it won't change. Instead it ...
Git supports both local and global configurations. Local configurations take precedence over global. See file:/home/me/.gitconfig ...
Read more >
Cannot Change Adapter settings
The following error will show up: Windows cannot access the specified device, path, or file. You may not have the appropriate permission to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found