- Microsoft Azure Administrator:Exam Guide AZ-103
- Sjoukje Zaal
- 209字
- 2021-06-24 14:02:08
Configuring and using Azure Blob Storage
In the previous chapter, we created an Azure storage account using PowerShell and from the Azure Storage Explorer, we created a blob container for that storage account and uploaded some files to it as well.
In this section, we are going to configure Azure Blob Storage from PowerShell. We are going to use the same storage account that we created in the previous chapter, but now we will use PowerShell to add a blob container to it. We will also provide an example to create multiple blob containers at once. Therefore, take the following steps:
- First, we need to log in to the Azure account as follows:
Connect-AzAccount
- If necessary, select the right subscription as follows:
Select-AzSubscription -SubscriptionId "********-****-****-****-***********"
- Select the storage account that we created in the previous chapter and add it to a variable as follows:
$accountObject = Get-AzStorageAccount -ResourceGroupName "PacktPubStorageAccount" -AccountName "packtpubstorage"
- Then retrieve the context of the storage account:
$Context = $accountObject.Context
- Create a blob container to it with public access as Blob as follows:
new-AzStoragecontainer -Name "packtblobcontainerps" -Context $Context -Permission blob
We are going to use this blob container in the next section, where we will create an import into and an export using Azure Job.
推薦閱讀
- pcDuino開發實戰
- PLC控制程序精編108例
- 鴻蒙生態:開啟萬物互聯的智慧新時代
- Red Hat Enterprise Linux 8系統管理實戰
- Hands-On DevOps with Vagrant
- Ubuntu Linux操作系統
- Linux自動化運維:Shell與Ansible(微課版)
- 網絡操作系統教程:Windows Server 2016管理與配置
- Windows 7中文版從入門到精通(修訂版)
- Kali Linux 2018:Windows Penetration Testing
- Ceph分布式存儲實戰
- NetDevOps入門與實踐
- Social Data Visualization with HTML5 and JavaScript
- Office 365 User Guide
- 再也不踩坑的kubernetes實戰指南