title: Azure Search Invalid Auth Token
body: <p>Im currently in the process of building a webapp that utilizes azure cognitive search to get data from a cosmos db container I have set up. For the past 3 days, the azure search has been working perfectly, and ive been able to access the search container from the azure portal just fine. Today I was working on my application and I started getting 400 response codes from my get requests to the azure search URI.</p>
  <p>I went to the portal and was prompted with the following message when I clicked on &quot;overview&quot; in the azure search container.</p>
  <p><a href="https://i.stack.imgur.com/kmabI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kmabI.png" alt="enter image description here" /></a></p>
  <p>Clicking it simply makes it disappear. Im now unable to see any usage statistics, and unable to enter queries through the search explorer. I then replaced the 'api-key' header in my get request to the api key instead of the admin key, and am able to now get search results.</p>
  <p>I know the azure search itself is working but it seems that the portal is completely broken. I cant change any settings, cant add any indexes, and cant search through the search explorer on the portal.</p>
  <p>Here is what I have tried so far to fix:</p>
  <ul>
  <li>close browser and reopen - didnt work</li>
  <li>restart computer - didnt work</li>
  <li>refresh tab - didnt work</li>
  <li>log out of microsoft, and log back in - didnt work</li>
  <li>deleted and recreated a new azure search container - didnt work</li>
  <li>had coworker attempt to log into a completely different resource group and create a new search, but he saw the same exact auth failed error that I was seeing.</li>
  </ul>
  <p>When I check my access to the database, under the IAM tab, my role is &quot;contributor&quot; which grants me full access to the search container, so this should not be an issue.</p>
  <p>Im completely stuck and being unable to index a field is holding me back. If you need any more relevant information, please let me know.</p>