- 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.
推薦閱讀
- Linux系統(tǒng)文件安全實戰(zhàn)全攻略
- 白話區(qū)塊鏈
- FreeRTOS實時內(nèi)核應(yīng)用指南
- WindowsServer2012Hyper-V虛擬化部署與管理指南
- VMware Horizon View 6 Desktop Virtualization Cookbook
- Linux操作系統(tǒng)應(yīng)用編程
- 嵌入式系統(tǒng)原理及開發(fā)
- Joomla! 3 Template Essentials
- Linux內(nèi)核觀測技術(shù)BPF
- 細說Linux基礎(chǔ)知識
- Introduction to R for Quantitative Finance
- 從實踐中學(xué)習(xí)Windows滲透測試
- OpenVZ Essentials
- iOS 10快速開發(fā):18天零基礎(chǔ)開發(fā)一個商業(yè)應(yīng)用
- VMware Horizon Mirage Essentials