This sample demonstrates how to do common asset management with Media Services asset resource in a specific region using the SDK.
- List assets
- Create a new asset and provide alternate identifiers, descriptions, and storage container
- List and filter assets using OData
Use interactive login in this sample with an account that has subscription level write access to the 'Microsoft.Media/mediaservices/write' path.
Required Assemblies:
- Azure.Identity
- Azure.ResourceManager.Media
- System.Linq.Async
Update the settings in appsettings.json in the root folder of the repository to match your Azure subscription, resource group and Media Services account.
The sample will authenticate using any of the methods supported by DefaultAzureCredential
.