Skip to content

Commit abee011

Browse files
authored
Update create-account-howto.md
1 parent 5d999aa commit abee011

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

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

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,43 @@ In the following command, provide the Azure subscription ID that you want to use
7676
az account set --subscription mySubscriptionId
7777
```
7878

79-
[!INCLUDE [media-services-cli-create-v3-account-include](../../../includes/media-services-cli-create-v3-account-include.md)]
79+
### Create a resource group
80+
81+
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.
82+
83+
You can substitute `amsResourceGroup` with your value.
84+
85+
```azurecli
86+
az group create --name amsResourceGroup --location westus2
87+
```
88+
89+
### Create a storage account
90+
91+
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](../articles/media-services/latest/storage-account-concept.md).
92+
93+
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](../articles/storage/common/storage-account-options.md).
94+
95+
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).
96+
97+
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.
98+
99+
```azurecli
100+
az storage account create --name storageaccountforams \
101+
--kind StorageV2 \
102+
--sku Standard_LRS \
103+
-l westus2 \
104+
-g amsResourceGroup
105+
```
106+
107+
### Create a Media Services account
108+
109+
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).
110+
111+
```azurecli
112+
az ams account create --name amsaccount \
113+
-g amsResourceGroup --storage-account storageaccountforams \
114+
-l westus2
115+
```
80116

81117
### See also
82118

0 commit comments

Comments
 (0)