Skip to content

Commit bf42610

Browse files
committed
minor code changes
1 parent bcb7ac3 commit bf42610

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/energy-data-services/how-to-use-managed-identity.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,16 @@ from msrestazure.azure_active_directory import MSIAuthentication
157157
def main(req: func.HttpRequest) -> str:
158158
logging.info('Python HTTP trigger function processed a request.')
159159

160-
//To Authenticate using MI, we need to pass the MEDS APP_ID as the resource.
160+
//To Authenticate using Manaded Identity, we need to pass the Microsoft Energy Data Services Application ID as the resource.
161161
//If we want to use a user-assigned identity, we should also include the
162-
//client ID as an additional parameter.
163-
//MI using System Assigned Identity: MSIAuthentication(resource)
164-
//MI using user Assigned Identity: MSIAuthentication(client_id, resource)
162+
//Client ID as an additional parameter.
163+
//Managed Identity using System Assigned Identity: MSIAuthentication(resource)
164+
//Managed Identity using user Assigned Identity: MSIAuthentication(client_id, resource)
165165

166166
creds = MSIAuthentication(client_id="<client_id_of_managed_identity>”, resource="<meds_app_id>")
167167
url = "https://<meds-uri>/api/entitlements/v2/groups"
168168
payload = {}
169-
// Passing data partition id of MEDS in headers along with the token received using MI.
169+
// Passing data partition ID of Microsoft Energy Data Services in headers along with the token received using MI.
170170
headers = {
171171
'data-partition-id': '<data partition id>',
172172
'Authorization': 'Bearer ' + creds.token["access_token"]

0 commit comments

Comments
 (0)