Skip to content

Commit 533076a

Browse files
authored
Improve deploy to Azure documentation (#8149)
1 parent fc10e35 commit 533076a

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

docs/Deploying/README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To run the NuGet Gallery in Azure you need to provision the following resources:
88

99
## Deploying to Azure
1010

11-
We suggest using Windows Azure for hosting the gallery, as that is the environment used by http://www.nuget.org itself. When doing so, we suggest using Azure SQL Databases for the database and Azure Storage Accounts to store package files.
11+
We suggest using Azure to host the gallery, as that is the environment used by https://www.nuget.org itself. When doing so, we suggest using Azure SQL Databases for the database and Azure Storage to store packages.
1212

1313
This guide will instruct you on hosting the Gallery to an Azure App Service. We will start with provisiong the supporting resources (Database, Storage, etc.).
1414

@@ -18,13 +18,22 @@ This guide will instruct you on hosting the Gallery to an Azure App Service. We
1818

1919
We recommend provisioning a dedicated Azure SQL Databases Server for the Gallery.
2020

21-
Follow the instrctions [here](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-get-started-portal) to create an Azure SQL DB.
21+
Follow the instructions [here](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-get-started-portal) to create an Azure SQL Database.
22+
23+
After you create your Azure SQL Database, update the server's firewall settings to allow access from other Azure resources:
24+
25+
1. Navigate to the "SQL Servers" blade.
26+
2. Select your SQL Server.
27+
3. Under the "Security" section, select "Firewall and and virtual networks".
28+
4. Make sure that "Allow Azure services and resources to access this server" is set to "Yes".
29+
2230
Copy the connection string from the portal. It should look something like:
31+
2332
```
2433
Server=[servername].database.windows.net;Database=NuGetGallery;User ID=[username];Password=[password];Trusted_Connection=False;Encrypt=True
2534
```
2635

27-
Now, it's time to update your new DB with the Gallery SQL schema.
36+
Now, let's update your new DB with the Gallery SQL schema.
2837

2938
1. Open the NuGetGallery solution in Visual Studio.
3039

@@ -44,18 +53,22 @@ Update-Database -ConfigurationTypeName MigrationsConfiguration
4453

4554
Follow the instruction [here](https://docs.microsoft.com/en-us/azure/storage/common/storage-quickstart-create-account?tabs=portal) to create an Azure storage account.
4655
Copy the connection string from the portal. It should like something like:
56+
4757
```
4858
DefaultEndpointsProtocol=https;AccountName=[account name];AccountKey=[primary key];
4959
```
60+
5061
To configure Gallery to use your new storage account:
62+
5163
1. Open the [web.config](https://github.com/NuGet/NuGetGallery/blob/master/src/NuGetGallery/Web.config#L27)
5264
2. Set Gallery.StorageType to 'AzureStorage'
5365
3. Replace all settings starting with 'Gallery.AzureStorage.' with your connection string.
5466

5567
## Deploying the Frontend/Backend
5668

5769
You are almost done! Here are additional configurations in web.config:
70+
5871
1. Gallery.SiteRoot - set with the URL of your Gallery website. For example: _https://mygallery.azurewebsites.net_
59-
2. Gallery.SmtpUri (optional)- set SMTP credentials if you would like to receive e-mails from the service.
72+
1. Gallery.AppInsightsInstrumentationKey - set to the [Application Insights](https://docs.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview) instrumentation key to capture telemetry. Useful for debugging!
6073

61-
Now you are ready to publish the Gallery to your own Azure app service. To do this through Visual Studio follow the instructions [here](https://docs.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-to-azure).
74+
You are now ready to publish the Gallery to your own Azure App Service. To do this through Visual Studio follow the instructions [here](https://docs.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-to-azure).

0 commit comments

Comments
 (0)