Fundamentals of Azure

Page 287

Create a container and upload blobs using PowerShell Now you’ll create a container and upload some blobs. In the example, the test files are in D:\_TestImages. That path is used when uploading those files to Blob storage. Note These cmdlets are Azure Storage dataplane cmdlets, not Azure Service Management (ASM) or Azure Resource Manager cmdlets, which are management-plane cmdlets. The cmdlet to create a storage account is a management-plane cmdlet. These data-plane cmdlets can be used with both ASM and Resource Manager storage accounts. If you’re not running the PowerShell ISE and are logged into your Azure account, do that now. You’re going to create a script that you can save and use later. In addition to the path to your local pictures, you will need the name and access key of your storage account. 1.

Set up variable names for the storage account name and key— $StorageAccountName and $StorageAccountKey. Fill in your storage account name and key here.

256 of 540

C H A P T E R 4 | Azure Storage


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.