This sample shows how to list all Media Services accounts in a resource group and select one by its name.
Required Assemblies:
- Azure.Identity
- Azure.ResourceManager.Media
- Microsoft.Extensions.Hosting
Update the settings in appsettings.json in the root folder of the repository to match your Azure subscription, resource group and Media Services account. Then build and run the sample in Visual Studio or VS Code.
The sample will authenticate using any of the methods supported by DefaultAzureCredential
.