Skip to content

Instantly share code, notes, and snippets.

@ljtill
Last active December 6, 2019 15:35
Show Gist options
  • Select an option

  • Save ljtill/0c2d1955e0cfb0eacebff8b38ca3a705 to your computer and use it in GitHub Desktop.

Select an option

Save ljtill/0c2d1955e0cfb0eacebff8b38ca3a705 to your computer and use it in GitHub Desktop.
Provides the ability to validate Storage Encryption status
$StorageAccountKeys = Get-AzureRmStorageAccountKey -ResourceGroupName "" -Name ""
$StorageContext = New-AzureStorageContext -StorageAccountName "" -StorageAccountKey $StorageAccountKeys[0].Value
$StorageBlob = Get-AzureStorageBlob -Blob "" -Container "" -Context $StorageContext
$StorageBlob.ICloudBlob.Properties.IsServerEncrypted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment