Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I use arguments in as script for the OEC

I am writing a powershell script to be called by the OEC.   In the config.yml file, I see the globalArgs line, but I dont know if these are specified by me, or is there a set of acceptable terms.  How are these arguments then accessed within my powershell script?  Finally, is there anything I need to configure in the tool, on the OEC integration page?

1 answer

0 votes

Hi Connor,


Sorry for the delayed response, firstly I should mention that passing args is not the optimal way to pass data from OEC to the PowerShell scripts, rather use "globalFlags" to declare key value pairs that are passed to PowerShell as named parameters with corresponding values.


Here is an example of how to set 3 parameters in config.yml:


apiKey: xxxxx-xxxxxxxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxx
logLevel: debug
parameter1: value1
parameter2: value2
parameter3: value3


Here is an example of how to use these parameters in PowerShell:



echo $parameter1
echo $parameter2
echo $parameter3

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Opsgenie

Leveraging Atlassian’s Opsgenie and AWS Cloudformation Registry to stay ahead of incidents

In the past, managing IT infrastructure was a hard job. It required a lot of manual effort and it was hard to keep track of all the necessary information (monitoring, scalability etc). Thankfully, as...

1,849 views 0 11
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you