Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Ensure VHD storage accounts are private #4985

Merged
merged 1 commit into from
Oct 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vhd/packer/init-variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fi
avail=$(az storage account check-name -n ${STORAGE_ACCOUNT_NAME} -o json | jq -r .nameAvailable)
if $avail ; then
echo "creating new storage account ${STORAGE_ACCOUNT_NAME}"
az storage account create -n $STORAGE_ACCOUNT_NAME -g $AZURE_RESOURCE_GROUP_NAME --sku "Standard_RAGRS" --tags "now=${CREATE_TIME}"
az storage account create -n $STORAGE_ACCOUNT_NAME -g $AZURE_RESOURCE_GROUP_NAME --sku "Standard_RAGRS" --tags "now=${CREATE_TIME}" --allow-blob-public-access false
echo "creating new container system"
key=$(az storage account keys list -n $STORAGE_ACCOUNT_NAME -g $AZURE_RESOURCE_GROUP_NAME | jq -r '.[0].value')
az storage container create --name system --account-key=$key --account-name=$STORAGE_ACCOUNT_NAME
Expand Down