The sample shows how to create a Media Services account and set the primary storage account, in addition to advanced configuration settings including Key Delivery IP allowlist, Managed Identity, storage auth, and bring your own encryption key.
Required Assemblies:
- Azure.Core
- 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, storage resource group name and storage account name. Then build and run the sample in Visual Studio or VS Code.
The sample will authenticate using any of the methods supported by DefaultAzureCredential
.