This script deploys a simple Azure storage account v2 with LRS.
$rg = "rg-allen"
$staccname = "tempaccount01"
$location = "southafricanorth"
$sku = 'Standard_LRS'
$kind = 'StorageV2'
$tier = "Hot"
New-AzStorageAccount `
-ResourceGroupName $rg `
-Name $staccname `
-Location $location `
-SkuName $sku `
-Kind $kind `
-AccessTier $tier `
-MinimumTlsVersion TLS1_2 `
-AllowBlobPublicAccess $false `
-AllowSharedKeyAccess $false `
-AllowCrossTenantReplication $false
Enable-AzStorageBlobDeleteRetentionPolicy `
-ResourceGroupName $rg `
-StorageAccountName $staccname `
-RetentionDays 7
Enable-AzStorageContainerDeleteRetentionPolicy `
-ResourceGroupName $rg `
-StorageAccountName $staccname `
-RetentionDays 7
Additional configuration options:
-EnableAzureActiveDirectoryDomainServicesForFile $true
-EnableLargeFileShare
-EnableHierarchicalNamespace $true
-EnableSftp $true
-EnableLocalUser $true
-AssignIdentity
-PublishMicrosoftEndpoint $true
-PublishInternetEndpoint $true
-RoutingChoice MicrosoftRouting
F*ckin’ amazing things here. I am very glad to see your article. Thanks a lot and i’m looking forward to contact you. Will you please drop me a mail?
I love the efforts you have put in this, thanks for all the great blog posts.