Deli z drugimi prek


Azure Media Services Accounts code samples

Media Services logo v3


Warning

Azure Media Services will be retired June 30th, 2024. For more information, see the AMS Retirement Guide.

This article is a listing of code samples for Accounts.

Create an account

This 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.

Node.JS Python

Create an account with user assigned managed identity

This sample shows how to create a Media Services account with a managed identity and set the primary storage account, in addition to advanced configuration settings including Key Delivery IP allowlist, user or system assigned Managed Identity, storage auth, and bring your own encryption key.

Node.JS Python

Account management with .NET

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.

Create Account

This sample shows how to list all Media Services accounts in a resource group and select one by its name.

Get Accounts

This sample shows how to use the metrics API to retrieve account quotas.

Quotas