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
# Quickstart: Create and publish an Azure Managed Application definition
@@ -185,21 +185,28 @@ az storage account create \
185
185
--location eastus \
186
186
--sku Standard_LRS \
187
187
--kind StorageV2
188
+
```
189
+
190
+
After you create the storage account, add the role assignment _Storage Blob Data Contributor_ to the storage account scope. Assign access to your Azure Active Directory user account. Depending on your access level in Azure, you might need other permissions assigned by your administrator. For more information, see [Assign an Azure role for access to blob data](../../storage/blobs/assign-azure-role-data-access.md).
191
+
192
+
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.
188
193
194
+
```azurecli-interactive
189
195
az storage container create \
190
196
--account-name demostorageaccount \
191
197
--name appcontainer \
198
+
--auth-mode login \
192
199
--public-access blob
193
200
194
201
az storage blob upload \
195
202
--account-name demostorageaccount \
196
203
--container-name appcontainer \
204
+
--auth-mode login \
197
205
--name "app.zip" \
198
206
--file "./app.zip"
199
-
200
207
```
201
208
202
-
When you run the Azure CLI command to create the container, you might see a warning message about credentials, but the command will be successful. The reason is because although you own the storage account you assign roles like _Storage Blob Data Contributor_ to the storage account scope. For more information, see [Assign an Azure role for access to blob data](../../storage/blobs/assign-azure-role-data-access.md). After you add a role, it takes a few minutes to become active in Azure. You can then append the command with `--auth-mode login` and resolve the warning message.
209
+
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).
203
210
204
211
---
205
212
@@ -209,9 +216,9 @@ In this section you'll get identity information from Azure Active Directory, cre
209
216
210
217
### Create an Azure Active Directory user group or application
211
218
212
-
The next step is to select a user group, user, or application for managing the resources for the customer. This identity has permissions on the managed resource group according to the role that is assigned. The role can be any Azure built-in role like Owner or Contributor. To create a new Active Directory user group, see [Create a group and add members in Azure Active Directory](../../active-directory/fundamentals/active-directory-groups-create-azure-portal.md).
219
+
The next step is to select a user group, user, or application for managing the resources for the customer. This identity has permissions on the managed resource group according to the role that's assigned. The role can be any Azure built-in role like Owner or Contributor. To create a new Active Directory user group, see [Create a group and add members in Azure Active Directory](../../active-directory/fundamentals/active-directory-groups-create-azure-portal.md).
213
220
214
-
You need the object ID of the user group to use for managing the resources.
221
+
This example uses a user group, so you need the object ID of the user group to use for managing the resources. Replace the placeholder `mygroup` with your group's name.
215
222
216
223
# [PowerShell](#tab/azure-powershell)
217
224
@@ -267,6 +274,8 @@ az group create --name appDefinitionGroup --location westcentralus
267
274
268
275
Create the managed application definition resource. In the `Name` parameter, replace the placeholder `demostorageaccount` with your unique storage account name.
269
276
277
+
The `blob` command that's run from Azure PowerShell or Azure CLI creates a variable that's used to get the URL for the package _.zip_ file. That variable is used in the command that creates the managed application definition.
0 commit comments