Productivity Tools

Tools written by an IT business manager, a passionate developer.

Cloud Items

Module helps to push files and directories to the azure blob storage.

I often have a need to send file to someone. I decided to use Azure as exchange platform. Tool of course need to again be convienient to use.

Module is based on the Master Configuration which should contain configuration for the azure blob storage.

To use it in the master configuration file add:

   "AzureCloudFoldersTest":{     "Location":"westeurope",     "ResourceGroup":"cloudfolder1",     "StorageName":"cloudfolder1",     "SkuName":"Standard_RAGRS",     "StorageContainerName":"files",     "Password":"Test123",     "CdnHostname":"empty" },

CdnHostname is not required, but module is based on the AzureAutomation which requires this value.

From this moment you coud use

Push-ItemToTheCloud -Profile "AzureCloudFoldersTest" -Path "d:\xxx.jpg"  Push-ItemToTheCloud -Profile "AzureCloudFoldersTest" -Path "d:\xxx.jpg" -Compress Push-ItemToTheCloud -Profile "AzureCloudFoldersTest" -Path "d:\xxx.jpg" -Compress -UsePassword  Push-ItemToTheCloud -Profile "AzureCloudFoldersTest" -Path "d:\Directory" -Compress  Push-ItemToTheCloud -Profile "AzureCloudFoldersTest" -Path "d:\Directory" -Compress -UsePassword 

If you will not provide Profile value default ProductivityTools.CloudItems.Default will be used. So if in the configuration you will name your variables ProductivityTools.CloudItems.Default you can use:

Push-ItemToTheCloud -Path "d:\xxx.jpg"  Push-ItemToTheCloud -Path "d:\xxx.jpg" -Compress Push-ItemToTheCloud -Path "d:\xxx.jpg" -Compress -UsePassword  Push-ItemToTheCloud -Path "d:\Directory" -Compress  Push-ItemToTheCloud -Path "d:\Directory" -Compress -UsePassword 
Example

Commans will result in:

Example

To see all files on the storage you can use

Get-ItemListFromTheCloud -Profile AzureCloudFoldersTest
Example

When files are not needed you can remove it one by one or all at once.

Remove-ItemFromTheCloud Directory.zip -Profile AzureCloudFoldersTest Remove-AllItemsFromTheCloud -Profile AzureCloudFoldersTest
Close Bitnami banner
Bitnami