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
This quickstart requires the Azure PowerShell module Az version 0.7 or later. Run `Get-InstalledModule -Name Az -AllVersions | select Name,Version` to find the version. If you need to install or upgrade, see [Install Azure PowerShell module](/powershell/azure/install-Az-ps).
27
+
This quickstart requires the Azure PowerShell module Az version 0.7 or later. Run `Get-InstalledModule -Name Az -AllVersions | select Name,Version` to find the version. If you need to install or upgrade, see [Install Azure PowerShell module](/powershell/azure/install-az-ps).
Blobs are always uploaded into a container. You can organize groups of blobs like the way you organize your files on your computer in folders.
34
34
35
-
Set the container name, then create the container by using [New-AzStorageContainer](/powershell/module/az.storage/new-AzStoragecontainer). Set the permissions to `blob` to allow public access of the files. The container name in this example is *quickstartblobs*.
35
+
Set the container name, then create the container by using [New-AzStorageContainer](/powershell/module/az.storage/new-azstoragecontainer). Set the permissions to `blob` to allow public access of the files. The container name in this example is *quickstartblobs*.
Blob storage supports block blobs, append blobs, and page blobs. VHD files that back IaaS VMs are page blobs. Use append blobs for logging, such as when you want to write to a file and then keep adding more information. Most files stored in Blob storage are block blobs.
45
45
46
-
To upload a file to a block blob, get a container reference, then get a reference to the block blob in that container. Once you have the blob reference, you can upload data to it by using [Set-AzStorageBlobContent](/powershell/module/az.storage/set-AzStorageblobcontent). This operation creates the blob if it doesn't exist, or overwrites the blob if it exists.
46
+
To upload a file to a block blob, get a container reference, then get a reference to the block blob in that container. Once you have the blob reference, you can upload data to it by using [Set-AzStorageBlobContent](/powershell/module/az.storage/set-azstorageblobcontent). This operation creates the blob if it doesn't exist, or overwrites the blob if it exists.
47
47
48
48
The following examples upload *Image001.jpg* and *Image002.png* from the *D:\\_TestImages* folder on the local disk to the container you created.
49
49
@@ -65,15 +65,15 @@ Upload as many files as you like before continuing.
65
65
66
66
## List the blobs in a container
67
67
68
-
Get a list of blobs in the container by using [Get-AzStorageBlob](/powershell/module/az.storage/get-AzStorageblob). This example shows just the names of the blobs uploaded.
68
+
Get a list of blobs in the container by using [Get-AzStorageBlob](/powershell/module/az.storage/get-azstorageblob). This example shows just the names of the blobs uploaded.
69
69
70
70
```powershell
71
71
Get-AzStorageBlob -Container $ContainerName -Context $ctx | select Name
72
72
```
73
73
74
74
## Download blobs
75
75
76
-
Download the blobs to your local disk. For each blob you want to download, set the name and call [Get-AzStorageBlobContent](/powershell/module/az.storage/get-AzStorageblobcontent) to download the blob.
76
+
Download the blobs to your local disk. For each blob you want to download, set the name and call [Get-AzStorageBlobContent](/powershell/module/az.storage/get-azstorageblobcontent) to download the blob.
77
77
78
78
This example downloads the blobs to *D:\\_TestImages\Downloads* on the local disk.
0 commit comments