We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3642e97 commit e40079eCopy full SHA for e40079e
1 file changed
Infrastructure/Resources/New-StorageAccountContainer.ps1
@@ -30,7 +30,11 @@ Param(
30
[Parameter(Mandatory = $true)]
31
[String]$Name,
32
33
- [String[]]$ContainerName
+ [String[]]$ContainerName,
34
+ [Parameter(Mandatory= $true)]
35
+ [ValidateSet("Container", "Blob", "Off")]
36
+ [String[]]$ContainerPermission
37
+
38
)
39
40
try {
@@ -62,7 +66,7 @@ try {
62
66
if (!$ContainerExists) {
63
67
64
68
Write-Log -LogLevel Information -Message "Creating container $Container"
65
- $null = New-AzureStorageContainer -Context $StorageAccountContext -Name $Container -Permission Off
69
+ $null = New-AzureStorageContainer -Context $StorageAccountContext -Name $Container -Permission $ContainerPermission
70
}
71
catch {
72
throw "Could not create container $Container : $_"
0 commit comments