Skip to content

Commit e2d7272

Browse files
authored
Merge pull request #224111 from pauljewellmsft/pauljewell-azurite-updates
Update images for Azurite doc
2 parents 5c7fd12 + 7a1602b commit e2d7272

File tree

6 files changed

+13
-18
lines changed

6 files changed

+13
-18
lines changed
46.2 KB
Loading
17 KB
Loading
24.6 KB
Loading
25.9 KB
Loading
20.4 KB
Loading

articles/storage/common/storage-use-azurite.md

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ There are several different ways to install and run Azurite on your local system
2323

2424
### [Visual Studio](#tab/visual-studio)
2525

26-
Azurite is automatically available with [Visual Studio 2022](https://visualstudio.microsoft.com/vs/). If you are running an earlier version of Visual Studio, you'll need to install Azurite by using either Node Package Manager, DockerHub, or by cloning the Azurite GitHub repository.
26+
Azurite is automatically available with [Visual Studio 2022](https://visualstudio.microsoft.com/vs/). If you're running an earlier version of Visual Studio, you'll need to install Azurite by using either Node Package Manager, DockerHub, or by cloning the Azurite GitHub repository.
2727

2828
### [Visual Studio Code](#tab/visual-studio-code)
2929

@@ -100,7 +100,7 @@ With a few configurations, Azure Functions or ASP.NET projects start Azurite aut
100100

101101
#### Running Azurite from the command line
102102

103-
You can find the Azurite executable file in the extensions folder of your Visual Studio installation. The specific location can vary based on which version of Visual Studio you have installed. For example, if you've installed Visual Studio 2022 professional edition on a Windows computer or Virtual Machine (VM), you would find the Azurite executable file at this location:
103+
You can find the Azurite executable file in the extensions folder of your Visual Studio installation. The specific location can vary based on which version of Visual Studio is installed. For example, if you've installed Visual Studio 2022 professional edition on a Windows computer or Virtual Machine (VM), you would find the Azurite executable file at this location:
104104

105105
`C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\Microsoft\Azure Storage Emulator`.
106106

@@ -115,32 +115,27 @@ Open the required location and start the `azurite.exe`. After you run the execut
115115
116116
#### Running Azurite from an Azure Functions project
117117

118-
In Visual Studio 2022, create an **Azure Functions** project. As you create the project, choose the **Storage Emulator**.
118+
In Visual Studio 2022, create an **Azure Functions** project. While setting the project options, mark the box labeled **Use Azurite for runtime storage account**.
119119

120-
> [!div class="mx-imgBorder"]
121-
> ![Storage emulator option in Azure Functions project](media/storage-use-azurite/visual-studio-azure-function-project-settings.png)
120+
:::image type="content" source="./media/storage-use-azurite/azurite-azure-functions.png" alt-text="A screenshot showing how to set Azurite to be the runtime storage account for an Azure Functions project." lightbox="media/storage-use-azurite/azurite-azure-functions.png":::
122121

123-
After you create the project, Azurite starts automatically.
122+
After you create the project, Azurite starts automatically. The output looks similar to the following screenshot:
124123

125-
> [!div class="mx-imgBorder"]
126-
> ![Azurite command-line output in Azure Functions project](media/storage-use-azurite/output-window-azure-functions-project.png)
124+
:::image type="content" source="./media/storage-use-azurite/azurite-azure-functions-output.png" alt-text="A screenshot showing output after setting Azurite to be the runtime storage account for an Azure Functions project." lightbox="media/storage-use-azurite/azurite-azure-functions-output.png":::
127125

128126
#### Running Azurite from an ASP.NET project
129127

130128
In Visual Studio 2022, create an **ASP.NET Core Web App** project. Then, open the **Connected Services** dialog box, select **Add a service dependency**, and then select **Storage Azurite emulator**.
131129

132-
> [!div class="mx-imgBorder"]
133-
> ![Connected services dialog box in ASP.NET Core Web App project](media/storage-use-azurite/connected-service-storage-emulator.png)
130+
:::image type="content" source="./media/storage-use-azurite/azurite-aspnet-connect.png" alt-text="A screenshot showing how to add Azurite as a dependency to an ASP.NET project." lightbox="media/storage-use-azurite/azurite-aspnet-connect.png":::
134131

135132
In the **Configure Storage Azurite emulator** dialog box, set the **Connection string name** field to `StorageConnectionString`, and then select **Finish**.
136133

137-
> [!div class="mx-imgBorder"]
138-
> ![Configure Storage Azurite emulator dialog box](media/storage-use-azurite/connection-string-for-azurite-emulator-configuration.png)
134+
:::image type="content" source="./media/storage-use-azurite/azurite-aspnet-connection-string.png" alt-text="A screenshot showing how to configure a connection string to use Azurite with an ASP.NET project." lightbox="media/storage-use-azurite/azurite-aspnet-connection-string.png":::
139135

140-
When the configuration completes, select **Close**. The Azurite emulator starts automatically.
136+
When the configuration completes, select **Close** and the Azurite emulator starts automatically. The output looks similar to the following screenshot:
141137

142-
> [!div class="mx-imgBorder"]
143-
> ![Azurite command-line output in ASP.NET project](media/storage-use-azurite/output-window-asp-net-project.png)
138+
:::image type="content" source="./media/storage-use-azurite/azurite-aspnet-output.png" alt-text="A screenshot showing output after connecting an ASP.NET project to the Azurite emulator." lightbox="media/storage-use-azurite/azurite-aspnet-output.png":::
144139

145140
### [Visual Studio Code](#tab/visual-studio-code)
146141

@@ -434,7 +429,7 @@ azurite --skipApiVersionCheck
434429

435430
### Disable Production Style Url
436431

437-
**Optional**. When using the fully-qualified domain name instead of the IP in request Uri host, by default Azurite will parse the storage account name from request Uri host. You can force the parsing of the storage account name from request Uri path by using `--disableProductStyleUrl`:
432+
**Optional**. When using the fully qualified domain name instead of the IP in request Uri host, by default Azurite will parse the storage account name from request Uri host. You can force the parsing of the storage account name from request Uri path by using `--disableProductStyleUrl`:
438433

439434
```cmd
440435
azurite --disableProductStyleUrl
@@ -729,9 +724,9 @@ Start Azurite and use a customized connection string to access your account. The
729724
DefaultEndpointsProtocol=http;AccountName=account1;AccountKey=key1;BlobEndpoint=http://account1.blob.localhost:10000;QueueEndpoint=http://account1.queue.localhost:10001;TableEndpoint=http://account1.table.localhost:10002;
730725
```
731726

732-
Do not access default account in this way with Azure Storage Explorer. There is a bug that Storage Explorer is always adding account name in URL path, causing failures.
727+
Don't access default account in this way with Azure Storage Explorer. There's a bug that Storage Explorer is always adding account name in URL path, causing failures.
733728

734-
By default, when using Azurite with a production-style URL, the account name should be the host name in fully-qualified domain name such as "http://devstoreaccount1.blob.localhost:10000/container". To use production-style URL with account name in the URL path such as "http://foo.bar.com:10000/devstoreaccount1/container", make sure to use the `--disableProductStyleUrl` parameter when you start Azurite.
729+
By default, when using Azurite with a production-style URL, the account name should be the host name in fully qualified domain name such as "http://devstoreaccount1.blob.localhost:10000/container". To use production-style URL with account name in the URL path such as "http://foo.bar.com:10000/devstoreaccount1/container", make sure to use the `--disableProductStyleUrl` parameter when you start Azurite.
735730

736731
If use `host.docker.internal` as request Uri host (For example: `http://host.docker.internal:10000/devstoreaccount1/container`), Azurite will always get the account name from the request Uri path. This is true regardless of whether you use the `--disableProductStyleUrl` parameter when you start Azurite.
737732

0 commit comments

Comments
 (0)