Skip to content

Commit b773d16

Browse files
authored
Merge pull request #49055 from WilliamMauclet/patch-1
Fix sh syntax
2 parents c7580b4 + d267912 commit b773d16

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/storage/blobs/storage-upload-process-images.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ The sample uploads images to a blob container in an Azure Storage account. A sto
6565
In the following command, replace your own globally unique name for the Blob storage account where you see the `<blob_storage_account>` placeholder.
6666

6767
```azurecli-interactive
68-
$blobStorageAccount="<blob_storage_account>"
68+
blobStorageAccount="<blob_storage_account>"
6969
7070
az storage account create --name $blobStorageAccount --location southeastasia --resource-group myResourceGroup --sku Standard_LRS --kind blobstorage --access-tier hot
7171
@@ -80,7 +80,7 @@ Get the storage account key by using the [az storage account keys list](/cli/azu
8080
The *images* container's public access is set to `off`. The *thumbnails* container's public access is set to `container`. The `container` public access setting permits users who visit the web page to view the thumbnails.
8181

8282
```azurecli-interactive
83-
$blobStorageAccountKey=$(az storage account keys list -g myResourceGroup -n $blobStorageAccount --query [0].value --output tsv)
83+
blobStorageAccountKey=$(az storage account keys list -g myResourceGroup -n $blobStorageAccount --query "[0].value" --output tsv)
8484
8585
az storage container create -n images --account-name $blobStorageAccount --account-key $blobStorageAccountKey --public-access off
8686
@@ -113,7 +113,7 @@ The web app provides a hosting space for the sample app code that's deployed fro
113113
In the following command, replace `<web_app>` with a unique name. Valid characters are `a-z`, `0-9`, and `-`. If `<web_app>` is not unique, you get the error message: _Website with given name `<web_app>` already exists._ The default URL of the web app is `https://<web_app>.azurewebsites.net`.
114114

115115
```azurecli-interactive
116-
$webapp="<web_app>"
116+
webapp="<web_app>"
117117
118118
az webapp create --name $webapp --resource-group myResourceGroup --plan myAppServicePlan
119119
@@ -128,7 +128,7 @@ App Service supports several ways to deploy content to a web app. In this tutori
128128
The sample project contains an [ASP.NET MVC](https://www.asp.net/mvc) app. The app accepts an image, saves it to a storage account, and displays images from a thumbnail container. The web app uses the [Microsoft.Azure.Storage](/dotnet/api/overview/azure/storage), [Microsoft.Azure.Storage.Blob](/dotnet/api/microsoft.azure.storage.blob), and the Microsoft.Azure.Storage.Auth namespaces from the Azure Storage client library to interact with Azure storage.
129129

130130
```azurecli-interactive
131-
az webapp deployment source config --name $webapp --resource-group myResourceGroup --branch master --manual-integration --repo-url https://github.com/Azure-Samples/storage-blob-upload-from-webapp
131+
az webapp deployment source config --name nwebapp --resource-group myResourceGroup --branch master --manual-integration --repo-url https://github.com/Azure-Samples/storage-blob-upload-from-webapp
132132
133133
```
134134

@@ -166,7 +166,7 @@ az webapp config appsettings set --name $webapp --resource-group myResourceGroup
166166
The sample web app uses the [Azure Storage Client Library](https://docs.microsoft.com/javascript/api/azure-storage) to request access tokens, which are used to upload images. The storage account credentials used by the Storage SDK are set in the app settings for the web app. Add app settings to the deployed app with the [az webapp config appsettings set](/cli/azure/webapp/config/appsettings) command.
167167

168168
```azurecli-interactive
169-
$storageConnectionString=$(az storage account show-connection-string --resource-group $resourceGroupName --name $blobStorageAccount --query connectionString --output tsv)
169+
storageConnectionString=$(az storage account show-connection-string --resource-group resourceGroupName --name $blobStorageAccount --query connectionString --output tsv)
170170
171171
az webapp config appsettings set --name $webapp --resource-group myResourceGroup --settings AzureStorageConfig__ImageContainer=images AzureStorageConfig__ThumbnailContainer=thumbnails AzureStorageConfig__AccountName=$blobStorageAccount AzureStorageConfig__AccountKey=$blobStorageAccountKey AZURE_STORAGE_CONNECTION_STRING=$storageConnectionString
172172

0 commit comments

Comments
 (0)