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
Copy file name to clipboardExpand all lines: articles/storage/blobs/storage-quickstart-blobs-cli.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ az login
39
39
40
40
## Create a resource group
41
41
42
-
Create an Azure resource group with the [az group create](/cli/azure/group#az-group-create()) command. A resource group is a logical container into which Azure resources are deployed and managed.
42
+
Create an Azure resource group with the [az group create](/cli/azure/group#az-group-create) command. A resource group is a logical container into which Azure resources are deployed and managed.
43
43
44
44
Remember to replace placeholder values in angle brackets with your own values:
45
45
@@ -51,7 +51,7 @@ az group create \
51
51
52
52
## Create a storage account
53
53
54
-
Create a general-purpose storage account with the [az storage account create](/cli/azure/storage/account#az-storage-account-create()) command. The general-purpose storage account can be used for all four services: blobs, files, tables, and queues.
54
+
Create a general-purpose storage account with the [az storage account create](/cli/azure/storage/account#az-storage-account-create) command. The general-purpose storage account can be used for all four services: blobs, files, tables, and queues.
55
55
56
56
Remember to replace placeholder values in angle brackets with your own values:
57
57
@@ -66,7 +66,7 @@ az storage account create \
66
66
67
67
## Create a container
68
68
69
-
Blobs are always uploaded into a container. You can organize groups of blobs in containers similar to the way you organize your files on your computer in folders. Create a container for storing blobs with the [az storage container create](/cli/azure/storage/container#az-storage-container-create()) command.
69
+
Blobs are always uploaded into a container. You can organize groups of blobs in containers similar to the way you organize your files on your computer in folders. Create a container for storing blobs with the [az storage container create](/cli/azure/storage/container#az-storage-container-create) command.
70
70
71
71
The following example uses your Microsoft Entra account to authorize the operation to create the container. Before you create the container, assign the [Storage Blob Data Contributor](../../role-based-access-control/built-in-roles.md#storage-blob-data-contributor) role to yourself. Even if you are the account owner, you need explicit permissions to perform data operations against the storage account. For more information about assigning Azure roles, see [Assign an Azure role for access to blob data](assign-azure-role-data-access.md).
72
72
@@ -101,7 +101,7 @@ vi helloworld
101
101
102
102
When the file opens, press **insert**. Type *Hello world*, then press **Esc**. Next, type *:x*, then press **Enter**.
103
103
104
-
In this example, you upload a blob to the container you created in the last step using the [az storage blob upload](/cli/azure/storage/blob#az-storage-blob-upload()) command. It's not necessary to specify a file path since the file was created at the root directory. Remember to replace placeholder values in angle brackets with your own values:
104
+
In this example, you upload a blob to the container you created in the last step using the [az storage blob upload](/cli/azure/storage/blob#az-storage-blob-upload) command. It's not necessary to specify a file path since the file was created at the root directory. Remember to replace placeholder values in angle brackets with your own values:
105
105
106
106
```azurecli
107
107
az storage blob upload \
@@ -116,11 +116,11 @@ This operation creates the blob if it doesn't already exist, and overwrites it i
116
116
117
117
When you upload a blob using the Azure CLI, it issues respective [REST API calls](/rest/api/storageservices/blob-service-rest-api) via http and https protocols.
118
118
119
-
To upload multiple files at the same time, you can use the [az storage blob upload-batch](/cli/azure/storage/blob#az-storage-blob-upload-batch()) command.
119
+
To upload multiple files at the same time, you can use the [az storage blob upload-batch](/cli/azure/storage/blob#az-storage-blob-upload-batch) command.
120
120
121
121
## List the blobs in a container
122
122
123
-
List the blobs in the container with the [az storage blob list](/cli/azure/storage/blob#az-storage-blob-list()) command. Remember to replace placeholder values in angle brackets with your own values:
123
+
List the blobs in the container with the [az storage blob list](/cli/azure/storage/blob#az-storage-blob-list) command. Remember to replace placeholder values in angle brackets with your own values:
124
124
125
125
```azurecli
126
126
az storage blob list \
@@ -132,7 +132,7 @@ az storage blob list \
132
132
133
133
## Download a blob
134
134
135
-
Use the [az storage blob download](/cli/azure/storage/blob#az-storage-blob-download()) command to download the blob you uploaded earlier. Remember to replace placeholder values in angle brackets with your own values:
135
+
Use the [az storage blob download](/cli/azure/storage/blob#az-storage-blob-download) command to download the blob you uploaded earlier. Remember to replace placeholder values in angle brackets with your own values:
If you want to delete the resources you created as part of this quickstart, including the storage account, delete the resource group by using the [az group delete](/cli/azure/group#az-group-delete()) command. Remember to replace placeholder values in angle brackets with your own values:
159
+
If you want to delete the resources you created as part of this quickstart, including the storage account, delete the resource group by using the [az group delete](/cli/azure/group#az-group-delete) command. Remember to replace placeholder values in angle brackets with your own values:
0 commit comments