You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
az group create --name storageGroup --location westus3
278
278
279
279
az storage account create \
@@ -288,7 +288,7 @@ After you create the storage account, add the role assignment _Storage Blob Data
288
288
289
289
After you add the role to the storage account, it takes a few minutes to become active in Azure. You can then use the parameter `--auth-mode login` in the commands to create the container and upload the file.
290
290
291
-
```azurecli-interactive
291
+
```azurecli
292
292
az storage container create \
293
293
--account-name demostorageaccount \
294
294
--name appcontainer \
@@ -300,7 +300,7 @@ az storage blob upload \
300
300
--container-name appcontainer \
301
301
--auth-mode login \
302
302
--name "app.zip" \
303
-
--file "./app.zip"
303
+
--file "app.zip"
304
304
```
305
305
306
306
For more information about storage authentication, see [Choose how to authorize access to blob data with Azure CLI](../../storage/blobs/authorize-data-operations-cli.md).
@@ -321,13 +321,13 @@ To create a new Azure Active Directory group, go to [Manage Azure Active Directo
az group create --name storageGroup --location westus3
278
278
279
279
az storage account create \
@@ -288,7 +288,7 @@ After you create the storage account, add the role assignment _Storage Blob Data
288
288
289
289
After you add the role to the storage account, it takes a few minutes to become active in Azure. You can then use the parameter `--auth-mode login` in the commands to create the container and upload the file.
290
290
291
-
```azurecli-interactive
291
+
```azurecli
292
292
az storage container create \
293
293
--account-name demostorageaccount \
294
294
--name appcontainer \
@@ -300,7 +300,7 @@ az storage blob upload \
300
300
--container-name appcontainer \
301
301
--auth-mode login \
302
302
--name "app.zip" \
303
-
--file "./app.zip"
303
+
--file "app.zip"
304
304
```
305
305
306
306
For more information about storage authentication, see [Choose how to authorize access to blob data with Azure CLI](../../storage/blobs/authorize-data-operations-cli.md).
@@ -322,7 +322,7 @@ This example creates a new resource group named `byosDefinitionStorageGroup`. In
Use the following command to store the storage account's resource ID in a variable named `storageId`. You use this variable's value when you deploy the managed application definition.
Use the following command to store the storage account's resource ID in a variable named `storageId`. You use this variable's value when you deploy the managed application definition.
356
356
357
-
```azurecli-interactive
357
+
```azurecli
358
358
storageId=$(az storage account show --resource-group byosDefinitionStorageGroup --name definitionstorage --query id)
359
359
```
360
360
@@ -368,7 +368,7 @@ Before you deploy your managed application definition to your storage account, a
368
368
369
369
In PowerShell, you can use variables for the role assignment. This example uses the `$storageId` you created in a previous step and creates the `$arpId` variable.
In Azure CLI, you need to use the string values to create the role assignment. This example gets string values from the `storageId` variable you created in a previous step and gets the object ID value for the Appliance Resource Provider. The command has placeholders for those values `arpId` and `storageId`. Replace the placeholders with the string values and use the quotes as shown.
382
382
383
-
```azurecli-interactive
383
+
```azurecli
384
384
echo $storageId
385
385
arpId=$(az ad sp list --display-name "Appliance Resource Provider" --query [].id --output tsv)
386
386
@@ -405,13 +405,13 @@ To create a new Azure Active Directory group, go to [Manage Azure Active Directo
0 commit comments