Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
14 views
Create, Download, and List Blobs With Azure CLI
Uploaded by
Sanskar
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Create, download, and list blobs with Azure CLI For Later
Download
Save
Save Create, download, and list blobs with Azure CLI For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
14 views
Create, Download, and List Blobs With Azure CLI
Uploaded by
Sanskar
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Create, download, and list blobs with Azure CLI For Later
Carousel Previous
Carousel Next
Save
Save Create, download, and list blobs with Azure CLI For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 6
Search
Fullscreen
‘22124, 5:10 PM Quickstart: Upload, download, and list blobs - Azure CLI Azure Storage | Microsoft Learn Quickstart: Create, download, and list blobs with Azure CLI Article + 10/12/2023 The Azure CLI is Azure's command-line experience for managing Azure resources. You can use it in your browser with Azure Cloud Shell. You can also install it on macOS, Linux, or Windows and run it from the command line. In this quickstart, you learn to use the Azure CLI to upload and download data to and from Azure Blob storage. Prerequisites To access Azure Storage, you'll need an Azure subscription. If you don't already have a subscription, create a free account _ before you begin All access to Azure Storage takes place through a storage account. For this quickstart, create a storage account using the Azure portal, Azure PowerShell, or Azure CLI. For help creating a storage account, see Create a storage account. Prepare your environment for the Azure CLI * Use the Bash environment in Azure Cloud Shell. For more information, see Quickstart for Bash in Azure Cloud Shell. * Ifyou prefer to run CLI reference commands locally, install the Azure CLI. If you're running on Windows or macOS, consider running Azure CLI in a Docker container. For more information, see How to run the Azure CLI in a Docker container, © Ifyou're using a local installation, sign in to the Azure CL by using the az login command. To finish the authentication process, follow the steps displayed in your terminal, For other sign-in options, see Sign in with the Azure CLI, © When you're prompted, install the Azure CLI extension on first use. For more information about extensions, see Use extensions with the Azure CLI. © Run az version to find the version and dependent libraries that are installed, To upgrade to the latest version, run az upgrade, nttps:leam microsof.comlen-ustazuelstorage/lobsistorage-quickstart-blabs-
\ --location
nttps:leam microsof.comlen-ustazuelstorage/lobsistorage-quickstart-blabs-
\ --resource-group
\ --location
\ --sku Standard_ZRS \ --encryption-services blob Create a container 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 command. 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 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, Remember to replace placeholder values in angle brackets with your own values: azure CLI az ad signed-in-user show --query id -o tsv | az role assignment create \ =-role "Storage Blob Data Contributor" \ --assignee @- \ --scope "/subscriptions/
/resourceGroups/
/providers/Microsoft.Storage/storageAccounts /
az storage container create \ --account-name
\ ntips:/leam microsof.comlen-ustazuelstorage/lobsistorage-quickstart-blabs-
\ --auth-mode login © Important Azure role assignments may take a few minutes to propagate. You can also use the storage account key to authorize the operation to create the container. For more information about authorizing data operations with Azure CLI, see ‘Authorize access to blob or queue data with Azure CLI. Upload a blob Blob storage supports block blobs, append blobs, and page blobs. The examples in this quickstart show how to work with block blobs. First, create a file to upload to a block blob. If you're using Azure Cloud Shell, use the following command to create a file Bash vi helloworld When the file opens, press insert. Type Hello world, then press Esc. Next, type -x, then press Enter. In this example, you upload a blob to the container you created in the last step using the 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: ‘Azure CLI az storage blob upload \ --account-name
\ --container-name
\ --name myFile.txt \ --file myFile.txt \ --auth-mode login nttps:leam microsof.comlen-ustazuelstorage/lobsistorage-quickstart-blabs-
\ ‘container-name
\ --output table \ auth-mode login Download a blob Use the az storage blob download command to download the blob you uploaded earlier. Remember to replace placeholder values in angle brackets with your own values: Azure CLI az storage blob download \ --account-name
\ container-name
\ name myFile.txt \ File <+/destination/path/for/File> \ auth-mode login Data transfer with AzCopy The AzCopy command-line utility offers high-performance, scriptable data transfer for ‘Azure Storage. You can use AzCopy to transfer data to and from Blob storage and Azure nttps:leam microsof.comlen-ustazuelstorage/lobsistorage-quickstart-blabs-
\ Next steps In this quickstart, you learned how to transfer files between a local file system and a container in Azure Blob storage. To learn more about working with Blob storage by using Azure CLI, select an option below. nttps:leam microsof.comlen-ustazuelstorage/lobsistorage-quickstart-blabs-
You might also like
AZ 104T00A ENU PowerPoint - 07
PDF
100% (1)
AZ 104T00A ENU PowerPoint - 07
50 pages
Module 03 Develop Solutions That Use Blob Storage
PDF
No ratings yet
Module 03 Develop Solutions That Use Blob Storage
30 pages
Final 3
PDF
No ratings yet
Final 3
70 pages
Azure Storage PDF
PDF
No ratings yet
Azure Storage PDF
1,305 pages
AzureTroubleshooting Technet
PDF
No ratings yet
AzureTroubleshooting Technet
407 pages
Azure Blob Storage Documentation
PDF
100% (1)
Azure Blob Storage Documentation
21 pages
Azure - Blobs
PDF
No ratings yet
Azure - Blobs
2 pages
Blobs
PDF
No ratings yet
Blobs
2 pages
LAB - Create Blob Storage
PDF
No ratings yet
LAB - Create Blob Storage
3 pages
03 Walkthrough Create Blob Storage
PDF
No ratings yet
03 Walkthrough Create Blob Storage
7 pages
az204day2en1731002270460
PDF
No ratings yet
az204day2en1731002270460
53 pages
05-Create Blob Storage
PDF
No ratings yet
05-Create Blob Storage
4 pages
Introduction To Azure Blob Storage
PDF
No ratings yet
Introduction To Azure Blob Storage
6 pages
Lab14 - Understanding Blob storage -Azure
PDF
No ratings yet
Lab14 - Understanding Blob storage -Azure
35 pages
Azure - Lab 05
PDF
No ratings yet
Azure - Lab 05
11 pages
Use Azure Storage Explorer To Create A Blob
PDF
No ratings yet
Use Azure Storage Explorer To Create A Blob
8 pages
DEMO - How To Create A Storage Account
PDF
No ratings yet
DEMO - How To Create A Storage Account
10 pages
Azure Blob Storage Client Library For Python
PDF
No ratings yet
Azure Blob Storage Client Library For Python
13 pages
AZ 104T00A ENU PowerPoint - 07
PDF
No ratings yet
AZ 104T00A ENU PowerPoint - 07
56 pages
AboutBlobStorage AZURE
PDF
No ratings yet
AboutBlobStorage AZURE
1,785 pages
Windows Server Storage1
PDF
No ratings yet
Windows Server Storage1
7 pages
Az 104t00a Enu Powerpoint 07
PDF
No ratings yet
Az 104t00a Enu Powerpoint 07
56 pages
Frequently asked questions about Azure Storage migration
PDF
No ratings yet
Frequently asked questions about Azure Storage migration
8 pages
AZ 104T00A Module - 07
PDF
No ratings yet
AZ 104T00A Module - 07
50 pages
Lab Answer Key: Module 6: Planning and Implementing Storage, Backup, and Recovery Services Lab: Planning and Implementing Azure Storage
PDF
No ratings yet
Lab Answer Key: Module 6: Planning and Implementing Storage, Backup, and Recovery Services Lab: Planning and Implementing Azure Storage
10 pages
Storage
PDF
No ratings yet
Storage
15 pages
AZ 104T00A ENU PowerPoint - 07
PDF
No ratings yet
AZ 104T00A ENU PowerPoint - 07
49 pages
Azure Blob Storage Client Library For C++
PDF
No ratings yet
Azure Blob Storage Client Library For C++
11 pages
Azure Storage Building Blocks
PDF
No ratings yet
Azure Storage Building Blocks
54 pages
Web Hosting in azure
PDF
No ratings yet
Web Hosting in azure
45 pages
Manage Azure Storage
PDF
No ratings yet
Manage Azure Storage
7 pages
azure basic 18
PDF
No ratings yet
azure basic 18
2 pages
(2165338) Azure Assignment 2
PDF
No ratings yet
(2165338) Azure Assignment 2
12 pages
Lesson - 03 - Implement and Manage Storage
PDF
No ratings yet
Lesson - 03 - Implement and Manage Storage
61 pages
Developing Solutions For Microsoft Azure Certification Companion Hands-On Preparation and Practice For Exam AZ-204 (Brain L. Gorman)
PDF
No ratings yet
Developing Solutions For Microsoft Azure Certification Companion Hands-On Preparation and Practice For Exam AZ-204 (Brain L. Gorman)
732 pages
Microsoft File
PDF
No ratings yet
Microsoft File
7 pages
Azure_Blob_Storage_for_File_Management
PDF
No ratings yet
Azure_Blob_Storage_for_File_Management
4 pages
worksheet 3.3
PDF
No ratings yet
worksheet 3.3
6 pages
Module - 07 Azure Storage
PDF
No ratings yet
Module - 07 Azure Storage
51 pages
AZURE104 MODULE 5
PDF
No ratings yet
AZURE104 MODULE 5
14 pages
Use The Azure Portal To Upload A File To Azure Storage
PDF
No ratings yet
Use The Azure Portal To Upload A File To Azure Storage
2 pages
3TPN° - 03 - DP-900 - Explore Azure Storage
PDF
No ratings yet
3TPN° - 03 - DP-900 - Explore Azure Storage
4 pages
Practical No.7:understanding and Creating Blob Storage in Windows Azure For Cloud Services
PDF
No ratings yet
Practical No.7:understanding and Creating Blob Storage in Windows Azure For Cloud Services
10 pages
Create A Blob Storage: Use Case
PDF
No ratings yet
Create A Blob Storage: Use Case
10 pages
Introduction To Windows Azure Blob Storage
PDF
No ratings yet
Introduction To Windows Azure Blob Storage
19 pages
Storage PDF
PDF
100% (1)
Storage PDF
937 pages
Storing and Consuming Files From Azure Storage
PDF
No ratings yet
Storing and Consuming Files From Azure Storage
26 pages
9780137593132
PDF
No ratings yet
9780137593132
8 pages
5 - Using Azure Storage Explorer
PDF
No ratings yet
5 - Using Azure Storage Explorer
6 pages
Lab13 - Understanding Azure Files Storage - Azure
PDF
No ratings yet
Lab13 - Understanding Azure Files Storage - Azure
70 pages
Azure Storage
PDF
No ratings yet
Azure Storage
36 pages
Lab13 - Understanding Azure Files Storage - Azure
PDF
No ratings yet
Lab13 - Understanding Azure Files Storage - Azure
70 pages
Azure
PDF
No ratings yet
Azure
10 pages
MicrosoftStorage
PDF
No ratings yet
MicrosoftStorage
5 pages
Azure AZ-104 Certification
PDF
No ratings yet
Azure AZ-104 Certification
105 pages
Lab 1 - Getting Started With Azure Data Factory
PDF
No ratings yet
Lab 1 - Getting Started With Azure Data Factory
5 pages
azure basic 17
PDF
No ratings yet
azure basic 17
3 pages
Configure Outbound Connectivity With A Gateway Load Balancer
PDF
No ratings yet
Configure Outbound Connectivity With A Gateway Load Balancer
7 pages
Create A Gateway Load Balancer Using The Azure Portal
PDF
No ratings yet
Create A Gateway Load Balancer Using The Azure Portal
16 pages
Create A Gateway Load Balancer Using The Azure CLI
PDF
No ratings yet
Create A Gateway Load Balancer Using The Azure CLI
9 pages
Create A Gateway Load Balancer Using Azure PowerShell
PDF
No ratings yet
Create A Gateway Load Balancer Using Azure PowerShell
9 pages
Blob Storage Feature Support in Azure Storage Accounts
PDF
No ratings yet
Blob Storage Feature Support in Azure Storage Accounts
6 pages
Create A Load Balancer With More Than One Availability Set in The Backend Pool Using The Azure Portal
PDF
No ratings yet
Create A Load Balancer With More Than One Availability Set in The Backend Pool Using The Azure Portal
21 pages
Create A Single Virtual Machine Inbound NAT Rule Using The Azure Portal
PDF
No ratings yet
Create A Single Virtual Machine Inbound NAT Rule Using The Azure Portal
13 pages
Load Balance VMs Within An Availability Zone by Using The Azure Portal
PDF
No ratings yet
Load Balance VMs Within An Availability Zone by Using The Azure Portal
15 pages
Create An Internal Load Balancer Via CLI
PDF
No ratings yet
Create An Internal Load Balancer Via CLI
12 pages
Create A Multiple Virtual Machine Inbound NAT Rule Using The Azure Portal
PDF
No ratings yet
Create A Multiple Virtual Machine Inbound NAT Rule Using The Azure Portal
13 pages
Migrate From Inbound NAT Pools To NAT Rules
PDF
No ratings yet
Migrate From Inbound NAT Pools To NAT Rules
4 pages
Create A Fully Qualified Domain Name For A VM
PDF
No ratings yet
Create A Fully Qualified Domain Name For A VM
1 page
Recover Deleted Storage Account
PDF
No ratings yet
Recover Deleted Storage Account
3 pages
Azure Blob Storage Client Library For Java
PDF
No ratings yet
Azure Blob Storage Client Library For Java
16 pages
Create An Internal Load Balancer Via Bicep
PDF
No ratings yet
Create An Internal Load Balancer Via Bicep
7 pages
Virtual Machine With A Static Public IP Address
PDF
No ratings yet
Virtual Machine With A Static Public IP Address
4 pages
What Is Azure Blob Storage
PDF
No ratings yet
What Is Azure Blob Storage
2 pages
DNS Name Resolution
PDF
No ratings yet
DNS Name Resolution
7 pages
Azure Win VM Terraform LAB
PDF
No ratings yet
Azure Win VM Terraform LAB
10 pages
Integrate With Zero Trust Solutions
PDF
No ratings yet
Integrate With Zero Trust Solutions
1 page
Identity Integrations
PDF
No ratings yet
Identity Integrations
7 pages
Zero Trust Principles To An Azure Virtual WAN
PDF
No ratings yet
Zero Trust Principles To An Azure Virtual WAN
17 pages
Azure Linux VM Portal LAB
PDF
No ratings yet
Azure Linux VM Portal LAB
7 pages
Azure Win VM Portal LAB
PDF
No ratings yet
Azure Win VM Portal LAB
8 pages
Azure DDoS Network Protection
PDF
No ratings yet
Azure DDoS Network Protection
9 pages
Azure VM Overview
PDF
No ratings yet
Azure VM Overview
9 pages