Skip to content

Commit

Permalink
fix the case failure (#2874)
Browse files Browse the repository at this point in the history
* fix the case failure

* fix the storage account name
  • Loading branch information
yunjie-hub authored Nov 29, 2023
1 parent da4fe49 commit 2e081cd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sdk/python/jobs/spark/setup_spark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,20 @@ AML_USER_MANAGED_ID_OID=$(az identity show --resource-group $RESOURCE_GROUP -n $
#<setup_vnet_resources>
if [[ "$2" == *"managed_vnet"* ]]
then
TIMESTAMP=`date +%H%M%S`
TIMESTAMP=`date +%m%d%H%M%S`
AML_WORKSPACE_NAME=${AML_WORKSPACE_NAME}-vnet-$TIMESTAMP
AZURE_STORAGE_ACCOUNT="blobstoragevnet"
AZURE_STORAGE_ACCOUNT=${RESOURCE_GROUP}blobvnet
BLOB_CONTAINER_NAME="blobstoragevnetcontainer"
GEN2_STORAGE_ACCOUNT_NAME="gen2storagevnet"
GEN2_STORAGE_ACCOUNT_NAME=${RESOURCE_GROUP}gen2vnet
ADLS_CONTAINER_NAME="gen2containervnet"

az storage account create -n $AZURE_STORAGE_ACCOUNT -g $RESOURCE_GROUP -l $LOCATION --sku Standard_LRS
az storage container create -n $BLOB_CONTAINER_NAME --account-name $AZURE_STORAGE_ACCOUNT

az storage account create --name $GEN2_STORAGE_ACCOUNT_NAME --resource-group $RESOURCE_GROUP --location $LOCATION --sku Standard_LRS --kind StorageV2 --enable-hierarchical-namespace true
az storage container create -n $ADLS_CONTAINER_NAME --account-name $GEN2_STORAGE_ACCOUNT_NAME


ACCOUNT_KEY=$(az storage account keys list --account-name $AZURE_STORAGE_ACCOUNT --query "[0].value" -o tsv)
ACCESS_KEY_SECRET_NAME="autotestaccountkey"
KEY_VAULT=$(az ml workspace show -g $RESOURCE_GROUP -n $AML_WORKSPACE_NAME --query key_vault -o tsv)
Expand Down

0 comments on commit 2e081cd

Please sign in to comment.