ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 48 - AZ-204 discussion

Report
Export

DRAG DROP

You need to add code at line PC32 in Processing.cs to implement the GetCredentials method in the Processing class.

How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.


Question 48
Correct answer: Question 48

Explanation:

Box 1: AzureServiceTokenProvider()

Box 2: tp.GetAccessTokenAsync("..")

Acquiring an access token is then quite easy. Example code:

private async Task<string> GetAccessTokenAsync()

{

var tokenProvider = new AzureServiceTokenProvider();

return await tokenProvider.GetAccessTokenAsync("https://storage.azure.com/");

}

Reference:

https://joonasw.net/view/azure-ad-authentication-with-azure-storage-and-managed-service-identity

asked 02/10/2024
David Kimovec
33 questions
User
0 comments
Sorted by

Leave a comment first