Skip to content

Commit

Permalink
adding allowSharedAccessKey false
Browse files Browse the repository at this point in the history
  • Loading branch information
azoppiserpa committed May 29, 2024
1 parent 59a0b52 commit fad040b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/deploy/assets/rp-production.json
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@
"sku": {
"name": "Standard_LRS"
},
"properties": {
"allowSharedKeyAccess": false
},
"location": "[resourceGroup().location]",
"name": "[substring(parameters('storageAccountDomain'), 0, indexOf(parameters('storageAccountDomain'), '.'))]",
"type": "Microsoft.Storage/storageAccounts",
Expand Down
5 changes: 4 additions & 1 deletion pkg/deploy/generator/resources_rp.go
Original file line number Diff line number Diff line change
Expand Up @@ -1561,5 +1561,8 @@ func (g *generator) rpVersionStorageAccount() []*arm.Resource {
}

func (g *generator) rpStorageAccount() *arm.Resource {
return g.storageAccount("[substring(parameters('storageAccountDomain'), 0, indexOf(parameters('storageAccountDomain'), '.'))]", nil, nil)
accountProperties := mgmtstorage.AccountProperties{
AllowSharedKeyAccess: to.BoolPtr(false),
}
return g.storageAccount("[substring(parameters('storageAccountDomain'), 0, indexOf(parameters('storageAccountDomain'), '.'))]", &accountProperties, nil)
}

0 comments on commit fad040b

Please sign in to comment.