You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Host "`nRun the following command in your Bash terminal. It will grant the necessary permissions between resources and your user account, and also process and load the sample data into the application."
21
+
Write-Host "`nCreate and activate a virtual environment if not already done, then run the following command in your Bash terminal. It will grant the necessary permissions between resources and your user account, and also process and load the sample data into the application."
echo "Run the following command in your Bash terminal. It will grant the necessary permissions between resources and your user account, and also process and load the sample data into the application."
31
+
echo "Create and activate a virtual environment if not already done, then run the following command in your Bash terminal. It will grant the necessary permissions between resources and your user account, and also process and load the sample data into the application."
Copy file name to clipboardExpand all lines: documents/DeploymentGuide.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -253,7 +253,7 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
253
253
- This deployment generally takes **7-10 minutes** to provision the resources in your account and set up the solution.
254
254
- If you encounter an error or timeout during deployment, changing the location may help, as there could be availability constraints for the resources.
255
255
256
-
5. Once the deployment has completed successfully, copy the bash command from terminal: (ex: `bash ./infra/scripts/process_sample_data.sh`) for later use.
256
+
5. Once the deployment has completed successfully, continue with the following steps to process and load the sample data.
257
257
258
258
6. Create and activate a virtual environment in bash terminal:
echo"✗ Failed to get signed-in user ID. Token may have expired. Re-authenticating..."
52
+
az login --use-device-code
53
+
signed_user_id=$(az ad signed-in-user show --query id --output tsv)
54
+
if [ -z"$signed_user_id" ];then
55
+
echo"✗ Failed to get signed-in user ID after re-authentication"
56
+
exit 1
57
+
fi
58
+
fi
59
+
50
60
storage_resource_id=$(az storage account show --name "$storageAccountName" --resource-group "$resourceGroupName" --query id --output tsv)
61
+
if [ -z"$storage_resource_id" ];then
62
+
echo"✗ Failed to get storage account resource ID"
63
+
exit 1
64
+
fi
51
65
52
66
role_assignment=$(MSYS_NO_PATHCONV=1 az role assignment list --assignee $signed_user_id --role "Storage Blob Data Contributor" --scope $storage_resource_id --query "[].roleDefinitionId" -o tsv)
0 commit comments