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
Copy file name to clipboardExpand all lines: articles/storage/common/storage-use-azurite.md
+33-25Lines changed: 33 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,15 @@ ms.custom: devx-track-csharp
15
15
16
16
The Azurite open-source emulator provides a free local environment for testing your Azure Blob, Queue Storage, and Table Storage applications. When you're satisfied with how your application is working locally, switch to using an Azure Storage account in the cloud. The emulator provides cross-platform support on Windows, Linux, and macOS.
17
17
18
-
Azurite is the future storage emulator platform. Azurite supersedes the [Azure Storage Emulator](storage-use-emulator.md). Azurite will continue to be updated to support the latest versions of Azure Storage APIs.
18
+
Azurite supersedes the [Azure Storage Emulator](storage-use-emulator.md), and continues to be updated to support the latest versions of Azure Storage APIs.
19
19
20
20
There are several different ways to install and run Azurite on your local system. Select any of these tabs.
21
21
22
22
## Install Azurite
23
23
24
24
### [Visual Studio](#tab/visual-studio)
25
25
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.
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 can install Azurite by using either Node Package Manager, DockerHub, or by cloning the Azurite GitHub repository.
27
27
28
28
### [Visual Studio Code](#tab/visual-studio-code)
29
29
@@ -96,23 +96,31 @@ npm install -g
96
96
97
97
### [Visual Studio](#tab/visual-studio)
98
98
99
-
With a few configurations, Azure Functions or ASP.NET projects start Azurite automatically. For all other project types, you'll have to start Azurite from the command line.
99
+
To use Azurite with most project types in Visual Studio, you first need to run the Azurite executable. Once the executable is running, Azurite listens for connection requests from the application. To learn more, see [Running Azurite from the command line](#running-azurite-from-the-command-line).
100
100
101
-
#### Running Azurite from the command line
101
+
For **Azure Functions** projects and **ASP.NET** projects, you can choose to configure the project to start Azurite automatically. This configuration is done during the project setup. While this project configuration starts Azurite automatically, Visual Studio doesn't expose detailed Azurite configuration options. To customize detailed Azurite configuration options, [run the Azurite executable](#running-azurite-from-the-command-line) before launching Visual Studio.
102
+
103
+
To learn more about configuring **Azure Functions** projects and **ASP.NET** projects to start Azurite automatically, see the following guidance:
102
104
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:
105
+
-[Running Azurite from an Azure Functions project](#running-azurite-from-an-azure-functions-project)
106
+
-[Running Azurite from an ASP.NET project](#running-azurite-from-an-aspnet-project)
If you use the enterprise version of the Visual Studio, please open the following location:
110
+
You can find the Azurite executable file in the extensions folder of your Visual Studio installation. The specific location varies based on which version of Visual Studio is installed. The following table shows the location of the Azurite executable for different versions of Visual Studio running on a Windows machine:
To learn more about available command line options to configure Azurite, see [Command line options](#command-line-options).
123
+
116
124
#### Running Azurite from an Azure Functions project
117
125
118
126
In Visual Studio 2022, create an **Azure Functions** project. While setting the project options, mark the box labeled **Use Azurite for runtime storage account**.
@@ -133,7 +141,7 @@ In the **Configure Storage Azurite emulator** dialog box, set the **Connection s
133
141
134
142
:::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":::
135
143
136
-
When the configuration completes, select **Close** and the Azurite emulator starts automatically. The output looks similar to the following screenshot:
144
+
When the configuration completes, select **Close**, and the Azurite emulator starts automatically. The output looks similar to the following screenshot:
137
145
138
146
:::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":::
139
147
@@ -165,7 +173,7 @@ Launch Azurite by issuing the following command:
This command tells Azurite to store all data in a particular directory, *c:\azurite*. If the `--location` option is omitted, it will use the current working directory.
176
+
This command tells Azurite to store all data in a particular directory, *c:\azurite*. If the `--location` option is omitted, it uses the current working directory.
169
177
170
178
### [Docker Hub](#tab/docker-hub)
171
179
@@ -204,7 +212,7 @@ To get started immediately with the command line, create a directory called *c:\
This command tells Azurite to store all data in a particular directory, *c:\azurite*. If the `--location` option is omitted, it will use the current working directory.
215
+
This command tells Azurite to store all data in a particular directory, *c:\azurite*. If the `--location` option is omitted, it uses the current working directory.
208
216
209
217
---
210
218
@@ -223,7 +231,7 @@ azurite --help
223
231
224
232
### Blob listening host
225
233
226
-
**Optional** - By default, Azurite will listen to 127.0.0.1 as the local server. Use the `--blobHost` switch to set the address to your requirements.
234
+
**Optional** - By default, Azurite listens to 127.0.0.1 as the local server. Use the `--blobHost` switch to set the address to your requirements.
227
235
228
236
Accept requests on the local machine only:
229
237
@@ -242,7 +250,7 @@ azurite --blobHost 0.0.0.0
242
250
243
251
### Blob listening port configuration
244
252
245
-
**Optional** - By default, Azurite will listen for the Blob service on port 10000. Use the `--blobPort` switch to specify the listening port that you require.
253
+
**Optional** - By default, Azurite listens for the Blob service on port 10000. Use the `--blobPort` switch to specify the listening port that you require.
246
254
247
255
> [!NOTE]
248
256
> After using a customized port, you need to update the connection string or corresponding configuration in your Azure Storage tools or SDKs.
@@ -263,7 +271,7 @@ The port in use is displayed during Azurite startup.
263
271
264
272
### Queue listening host
265
273
266
-
**Optional** - By default, Azurite will listen to 127.0.0.1 as the local server. Use the `--queueHost` switch to set the address to your requirements.
274
+
**Optional** - By default, Azurite listens to 127.0.0.1 as the local server. Use the `--queueHost` switch to set the address to your requirements.
267
275
268
276
Accept requests on the local machine only:
269
277
@@ -282,7 +290,7 @@ azurite --queueHost 0.0.0.0
282
290
283
291
### Queue listening port configuration
284
292
285
-
**Optional** - By default, Azurite will listen for the Queue service on port 10001. Use the `--queuePort` switch to specify the listening port that you require.
293
+
**Optional** - By default, Azurite listens for the Queue service on port 10001. Use the `--queuePort` switch to specify the listening port that you require.
286
294
287
295
> [!NOTE]
288
296
> After using a customized port, you need to update the connection string or corresponding configuration in your Azure Storage tools or SDKs.
@@ -303,7 +311,7 @@ The port in use is displayed during Azurite startup.
303
311
304
312
### Table listening host
305
313
306
-
**Optional** - By default, Azurite will listen to 127.0.0.1 as the local server. Use the `--tableHost` switch to set the address to your requirements.
314
+
**Optional** - By default, Azurite listens to 127.0.0.1 as the local server. Use the `--tableHost` switch to set the address to your requirements.
307
315
308
316
Accept requests on the local machine only:
309
317
@@ -322,7 +330,7 @@ azurite --tableHost 0.0.0.0
322
330
323
331
### Table listening port configuration
324
332
325
-
**Optional** - By default, Azurite will listen for the Table service on port 10002. Use the `--tablePort` switch to specify the listening port that you require.
333
+
**Optional** - By default, Azurite listens for the Table service on port 10002. Use the `--tablePort` switch to specify the listening port that you require.
326
334
327
335
> [!NOTE]
328
336
> After using a customized port, you need to update the connection string or corresponding configuration in your Azure Storage tools or SDKs.
@@ -343,7 +351,7 @@ The port in use is displayed during Azurite startup.
343
351
344
352
### Workspace path
345
353
346
-
**Optional** - Azurite stores data to the local disk during execution. Use the `-l` or `--location` switch to specify a path as the workspace location. By default, the current process working directory will be used. Note the lowercase 'l'.
354
+
**Optional** - Azurite stores data to the local disk during execution. Use the `-l` or `--location` switch to specify a path as the workspace location. By default, the current process working directory is used. Note the lowercase 'l'.
> OAuth requires an HTTPS endpoint. Make sure HTTPS is enabled by providing `--cert` switch along with the `--oauth` switch.
419
427
420
-
Azurite supports basic authentication by specifying the `basic` parameter to the `--oauth` switch. Azurite will do basic authentication, like validating the incoming bearer token, checking the issuer, audience, and expiry. Azurite won't check the token signature or permissions.
428
+
Azurite supports basic authentication by specifying the `basic` parameter to the `--oauth` switch. Azurite performs basic authentication, like validating the incoming bearer token, checking the issuer, audience, and expiry. Azurite doesn't check the token signature or permissions.
421
429
422
430
### Skip API Version Check
423
431
@@ -429,7 +437,7 @@ azurite --skipApiVersionCheck
429
437
430
438
### Disable Production Style Url
431
439
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`:
440
+
**Optional**. When using the fully qualified domain name instead of the IP in request Uri host, by default Azurite parses 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`:
433
441
434
442
```cmd
435
443
azurite --disableProductStyleUrl
@@ -630,14 +638,14 @@ In Storage Explorer, connect to Azurite by following these steps:
630
638
631
639
#### Connect to Azurite using HTTPS
632
640
633
-
By default Storage Explorer won't open an HTTPS endpoint that uses a self-signed certificate. If you're running Azurite with HTTPS, you're likely using a self-signed certificate. In Storage Explorer, import SSL certificates via the **Edit** -> **SSL Certificates** -> **Import Certificates** dialog.
641
+
By default, Storage Explorer doesn't open an HTTPS endpoint that uses a self-signed certificate. If you're running Azurite with HTTPS, you're likely using a self-signed certificate. In Storage Explorer, import SSL certificates via the **Edit** -> **SSL Certificates** -> **Import Certificates** dialog.
634
642
635
643
##### Import Certificate to Storage Explorer
636
644
637
645
1. Find the certificate on your local machine.
638
646
1. In Storage Explorer, go to **Edit** -> **SSL Certificates** -> **Import Certificates** and import your certificate.
639
647
640
-
If you don't import a certificate, you'll get an error:
648
+
If you don't import a certificate, you get an error:
641
649
642
650
`unable to verify the first certificate` or `self signed certificate in chain`
643
651
@@ -718,7 +726,7 @@ set AZURITE_ACCOUNTS="account1:key1:key2"
718
726
719
727
You could add more accounts. See the [Custom storage accounts and keys](#custom-storage-accounts-and-keys) section of this article.
720
728
721
-
Start Azurite and use a customized connection string to access your account. The exampleconnection string below assumes that the default ports are used.
729
+
Start Azurite and use a customized connection string to access your account. In the following example, the connection string assumes that the default ports are used.
@@ -728,7 +736,7 @@ Don't access default account in this way with Azure Storage Explorer. There's a
728
736
729
737
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.
730
738
731
-
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.
739
+
If you use `host.docker.internal` as request Uri host (For example: `http://host.docker.internal:10000/devstoreaccount1/container`), Azurite gets the account name from the request Uri path. This behavior is true regardless of whether you use the `--disableProductStyleUrl` parameter when you start Azurite.
0 commit comments