Changing the resource for MSI auth call for ME
ME requires auth token resource to be
@@ -150,7 +150,7 @@ def generate_Arc_MSI_token():
while retries <= max_retries:
arc_endpoint = metrics_utils.get_arc_endpoint()
try:
- msiauthurl = arc_endpoint + "/metadata/identity/oauth2/token?api-version=2019-11-01&resource=https://management.azure.com/"
+ msiauthurl = arc_endpoint + "/metadata/identity/oauth2/token?api-version=2019-11-01&resource=https://ingestion.monitor.azure.com/"
req = urllib.request.Request(msiauthurl, headers={'Metadata':'true'})
res = urllib.request.urlopen(req)
except:
