Skip to content

Commit 0f2eb7c

Browse files
authored
Merge pull request #107906 from Juliako/patch-6
Update create-account-howto.md
2 parents 153039e + 7faf560 commit 0f2eb7c

File tree

1 file changed

+37
-6
lines changed

1 file changed

+37
-6
lines changed

articles/media-services/latest/create-account-howto.md

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ This article shows how to create a Media Services account using the Azure portal
6060

6161
When your Media Services account is created a **default** streaming endpoint is added to your account in the **Stopped** state. To start streaming your content and take advantage of [dynamic packaging](dynamic-packaging-overview.md) and [dynamic encryption](content-protection-overview.md), the streaming endpoint from which you want to stream content has to be in the **Running** state.
6262

63-
### See also
64-
65-
If you plan to access Media Services API programmatically, see [Access the Azure Media Services API with Azure AD authentication](access-api-portal.md).
66-
6763
## Use the Azure CLI
6864

6965
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
@@ -76,13 +72,48 @@ In the following command, provide the Azure subscription ID that you want to use
7672
az account set --subscription mySubscriptionId
7773
```
7874

79-
[!INCLUDE [media-services-cli-create-v3-account-include](../../../includes/media-services-cli-create-v3-account-include.md)]
75+
### Create a resource group
76+
77+
Create a resource group using the following command. An Azure resource group is a logical container into which resources like Azure Media Services accounts and the associated Storage accounts are deployed and managed.
78+
79+
You can substitute `amsResourceGroup` with your value.
80+
81+
```azurecli
82+
az group create --name amsResourceGroup --location westus2
83+
```
84+
85+
### Create a storage account
86+
87+
When creating a Media Services account, you need to supply the name of an Azure Storage account resource. The specified storage account is attached to your Media Services account. For more information about how storage accounts are used in Media Services, see [Storage accounts](storage-account-concept.md).
88+
89+
You must have one **Primary** storage account and you can have any number of **Secondary** storage accounts associated with your Media Services account. Media Services supports **General-purpose v2** (GPv2) or **General-purpose v1** (GPv1) accounts. Blob only accounts are not allowed as **Primary**. If you want to learn more about storage accounts, see [Azure Storage account options](../../storage/common/storage-account-options.md).
90+
91+
In this example, we create a General Purpose v2, Standard LRS account. If you want to experiment with storage accounts, use `--sku Standard_LRS`. However, when picking a SKU for production you should consider, `--sku Standard_RAGRS`, which provides geographic replication for business continuity. For more information, see [storage accounts](https://docs.microsoft.com/cli/azure/storage/account?view=azure-cli-latest).
92+
93+
The following command creates a Storage account that is going to be associated with the Media Services account. In the script below, you can substitute `storageaccountforams` with your value. `amsResourceGroup` must match the value you gave for the resource group in the previous step. The storage account name must have length less than 24.
94+
95+
```azurecli
96+
az storage account create --name storageaccountforams \
97+
--kind StorageV2 \
98+
--sku Standard_LRS \
99+
-l westus2 \
100+
-g amsResourceGroup
101+
```
102+
103+
### Create a Media Services account
104+
105+
The following Azure CLI command creates a new Media Services account. You can replace the following values: `amsaccount` `storageaccountforams` (must match the value you gave for your storage account), and `amsResourceGroup` (must match the value you gave for the resource group).
106+
107+
```azurecli
108+
az ams account create --name amsaccount \
109+
-g amsResourceGroup --storage-account storageaccountforams \
110+
-l westus2
111+
```
80112

81113
### See also
82114

83115
* [Azure CLI](https://docs.microsoft.com/cli/azure/ams?view=azure-cli-latest)
84116
* [Attach a secondary storage to a Media Services account](https://docs.microsoft.com/cli/azure/ams/account/storage?view=azure-cli-latest#az-ams-account-storage-add)
85-
* [Access v3 APIs](access-api-cli-how-to.md)
86117

87118
---
88119

0 commit comments

Comments
 (0)