Functions/Get-AzStorageBlobMD5.ps1
Function Get-AzStorageBlobMD5{ <# .SYNOPSIS Describe the function here .DESCRIPTION Describe the function in more detail .EXAMPLE Give an example of how to use it #> [CmdletBinding()] Param( [Parameter(Mandatory, ValueFromPipeline=$true, Position=0)] [Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob]$Blob ) Begin { Write-Verbose "Beginning $($MyInvocation.Mycommand)" } Process { #$Blob.ICloudBlob.Properties.ContentMD5 $md5sum = [convert]::FromBase64String($Blob.ICloudBlob.Properties.ContentMD5) $hdhash = [BitConverter]::ToString($md5sum).Replace('-','') } End{ $hdhash } } |