Sunteți pe pagina 1din 7

Microsoft Azure Training

Shawn Ismail (Azure MVP)


shawn@cloudranger.net
http://www.cloudranger.net
Azure Storage - Part 3 - Table, Queue & File Storage

Shawn Ismail
Microsoft MVP

Email: shawn@cloudranger.net | Twitter: @shawnismail | Blog: http://www.cloudranger.net | LinkedIn: https://www.linkedin.com/in/shawnismail


YouTube: https://www.youtube.com/c/CloudrangerNetwork
Slides: http://www.slideshare.net/shawnismail
Azure Storage - Part 3 - Table, Queue & File Storage

Table Storage
• Used to store data in tables
• Tables do not have any constraints (like relational dbs) as there is no schema required
• The rows can have different properties
• Multiple tables can be used under a single storage account

Queue Storage
• Distributed applications can be designed to asynchronously communicate
• Source component places message in a queue
• Destination component processes each message at a time

File Storage
• Server Message Block (SMB) file shares in Azure
• Can be mapped on VMs
Azure Storage - Part 3 - Table, Queue & File Storage

Table Storage
$storagekey = (Get-AzureStorageKey -StorageAccountName "rangerstore321").Primary
$storecontext = New-AzureStorageContext -StorageAccountName "rangerstore321" -StorageAccountKey "$storagekey"

# Create a new Azure Table


New-AzureStorageTable -Name “mytable" -Context $storecontext

# Get Azure tables in a Subscription


Get-AzureStorageTable -Name "mytable " -Context $storecontext

# Remove a specific Azure table


Remove-AzureStorageTable –Name "mytable“ -Context $storecontext
Azure Storage - Part 3 - Table, Queue & File Storage

Queue Storage

$storagekey = (Get-AzureStorageKey -StorageAccountName "rangerstore321").Primary


$storecontext = New-AzureStorageContext -StorageAccountName "rangerstore321" -StorageAccountKey "$storagekey"

# Create a new Azure Queue


New-AzureStorageQueue -Name "myqueue" -Context $storecontext

# Get Azure queues in a Storage account


Get-AzureStorageQueue -Name "myqueue" -Context $storecontext

# Remove a specific Azure Queue


Remove-AzureStorageQueue -Name "myqueue" -Context $storecontext
Azure Storage - Part 3 - Table, Queue & File Storage

File Storage
$storagekey = (Get-AzureStorageKey -StorageAccountName "rangerstore321").Primary
$storecontext = New-AzureStorageContext -StorageAccountName "rangerstore321" -StorageAccountKey "$storagekey"

#Create a new share


$share = New-AzureStorageShare -Name "myfileshare" -Context $storecontext

#Create a directory in the new share


New-AzureStorageDirectory -Share $share -Path “mydirectory"

#Upload a file to the share


Set-AzureStorageFileContent –Share $share -Path "mydirectory" -Source C:\temp\test1.txt

#Remove the Share by the Share Name


Remove-AzureStorageShare -Name "myfileshare" -Context $storecontext
Azure Storage - Part 3 - Table, Queue & File Storage

Training Site: http://www.cloudranger.net/azure-training


YouTube : https://www.youtube.com/c/CloudrangerNetwork
Slides : http://www.slideshare.net/shawnismail
Twitter : @shawnismail
Email : shawn@cloudranger.net
LinkedIn : https://www.linkedin.com/in/shawnismail

Thank you for viewing and please the videos on

S-ar putea să vă placă și