Skip to content

Commit b942b53

Browse files
Merge pull request #224056 from sandeepchads/main
Minor edits: spelling, code comments, next page
2 parents 5084e0a + 0795724 commit b942b53

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

articles/energy-data-services/how-to-set-up-private-links.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ Use the following steps to create a private endpoint for an existing Microsoft E
104104
105105
## Next steps
106106
<!-- Add a context sentence for the following links -->
107-
To learn more about data security and encryption
107+
To learn more about using customer Lockbox as an interface to review and approve or reject access requests.
108108
> [!div class="nextstepaction"]
109-
> [Data security and encryption in Microsoft Energy Data Services](how-to-manage-data-security-and-encryption.md)
109+
> [Use Lockbox for Microsoft Energy Data Services](how-to-create-lockbox.md)

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

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,20 +156,26 @@ from msrestazure.azure_active_directory import MSIAuthentication
156156

157157
def main(req: func.HttpRequest) -> str:
158158
logging.info('Python HTTP trigger function processed a request.')
159-
print('Python HTTP trigger function processed a request')
160159

161-
creds = MSIAuthentication(resource="<clientId>")
160+
//To Authenticate using Managed Identity, we need to pass the Microsoft Energy Data Services Application ID as the resource.
161+
//If we want to use a user-assigned identity, we should also include the
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)
165+
166+
creds = MSIAuthentication(client_id="<client_id_of_managed_identity>”, resource="<meds_app_id>")
162167
url = "https://<meds-uri>/api/entitlements/v2/groups"
163168
payload = {}
164-
print('creds is', creds)
169+
// Passing data partition ID of Microsoft Energy Data Services in headers along with the token received using MI.
165170
headers = {
166171
'data-partition-id': '<data partition id>',
167172
'Authorization': 'Bearer ' + creds.token["access_token"]
168173
}
169174
response = requests.request("GET", url, headers=headers, data=payload, verify=False)
170-
logging.info("Got a response")
171175
return response.text
176+
172177
```
178+
173179
You should get the following successful response from Azure Function:
174180

175181
[![Screenshot of success message from Azure Function.](media/how-to-use-managed-identity/5-azure-function-success.png)](media/how-to-use-managed-identity/5-azure-function-success.png#lightbox)
@@ -180,4 +186,4 @@ With the following steps completed, you're now able to use Azure Functions to ac
180186
<!-- Add a context sentence for the following links -->
181187
To learn more about Lockbox in Microsoft Energy Data Services
182188
> [!div class="nextstepaction"]
183-
> [Lockbox in Microsoft Energy Data Services](how-to-use-managed-identity.md)
189+
> [Lockbox in Microsoft Energy Data Services](how-to-create-lockbox.md)

0 commit comments

Comments
 (0)