# Problem with OMS setup script.

**URL:** <https://community.squaredup.com/t/problem-with-oms-setup-script/586>\
**Category:** Dashboard Server\
**Tags:** oms, oms-tile-setup, squaredup\
**Created:** [January 12, 2018, 6:04pm UTC](https://community.squaredup.com/t/problem-with-oms-setup-script/586 "2018-01-12T18:04:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wilsonwong](https://community.squaredup.com/letter_avatar_proxy/v4/letter/w/c5a1d2/32.png) [@wilsonwong](https://community.squaredup.com/u/wilsonwong)\
**Post date:** [January 12, 2018, 6:04pm UTC](https://community.squaredup.com/t/problem-with-oms-setup-script/586/1 "2018-01-12T18:04:19Z")

</div>

I am trying to configure SquaredUp to access an OMS workspace. When I run the setup script, it says

_ **“Service account ‘squaredup-oms-plugin’ already has the Reader role for this OMS instance”** _.

-Thus it never gives me the client secret pw that I need to populate the OMS web config file.

Any suggestions on how to resolve this? Also, the documentation says that I should modify the “oms.json” file. I don’t see such a file in my directory but I do see a “oms.encrypted.json” file. -Assuming this is the file in question as I would think that having a password in clear-text in a configuration file would be a huge security risk.

---

<div class="post-metadata">

**Author:** ![Jelly](https://community.squaredup.com/user_avatar/community.squaredup.com/jelly/32/812_2.png) [@Jelly](https://community.squaredup.com/u/Jelly)\
**Post date:** [January 15, 2018, 10:04am UTC](https://community.squaredup.com/t/problem-with-oms-setup-script/586/2 "2018-01-15T10:04:09Z")

</div>

The password is specified during deployment. There is no way to gain the password once it’s been set, so you have two options:

1. Delete the existing app from the Azure portal and run the script again
2. Change everything in the script where it says squaredup_-oms-plugin_ to _squaredup-oms-plugin2_

The first option is prefered ;)

---

<div class="post-metadata">

**Author:** ![shawn149](https://community.squaredup.com/user_avatar/community.squaredup.com/shawn149/32/822_2.png) [@shawn149](https://community.squaredup.com/u/shawn149)\
**Post date:** [January 16, 2018, 9:24pm UTC](https://community.squaredup.com/t/problem-with-oms-setup-script/586/3 "2018-01-16T21:24:38Z")

</div>

[@WilsonWong](https://community.squaredup.com/user/WilsonWong)

How are you looking for the “SquaredUp-OMS-Plugin” resource? You should be using the Azure portal, not the classic OMS portal.

When you’re in the portal, use the “Access Control (IAM)” blade.

 ![Access-Control-IAM.png](https://community-cdn.squaredup.com/original/1X/91312108bbb0d0005f9b20ae6799d829cbde5207.png)

---

<div class="post-metadata">

**Author:** ![wilsonwong](https://community.squaredup.com/letter_avatar_proxy/v4/letter/w/c5a1d2/32.png) [@wilsonwong](https://community.squaredup.com/u/wilsonwong)\
**Post date:** [January 25, 2018, 7:02pm UTC](https://community.squaredup.com/t/problem-with-oms-setup-script/586/4 "2018-01-25T19:02:27Z")

</div>

-Had to delete the existing “SquaredUp-OMS-Plugin” IAM account and then have the script run by someone who had full admin privileges in the subscription. My account didn’t have the right permissions so the script wasn’t completing properly.

---

<div class="post-metadata">

**Author:** ![wilsonwong](https://community.squaredup.com/letter_avatar_proxy/v4/letter/w/c5a1d2/32.png) [@wilsonwong](https://community.squaredup.com/u/wilsonwong)\
**Post date:** [January 16, 2018, 6:45pm UTC](https://community.squaredup.com/t/problem-with-oms-setup-script/586/5 "2018-01-16T18:45:41Z")

</div>

I actually don’t see any Azure Application or resources called “squaredup-oms-plugin” in my subscription so I’m a little bit confused as to why the script is saying that the service account already exists…?
