Skip to content

Commit 51fa4dd

Browse files
authored
Merge pull request #50 from FBoucher/46-update-documentation-for-the-new-deployment
46 Update Documentation for the new deployment
2 parents ec5d4e9 + 8218116 commit 51fa4dd

File tree

1 file changed

+5
-37
lines changed

1 file changed

+5
-37
lines changed

README.md

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Note Bookmark
22

3-
[![.github/workflows/azure-dev.yml](https://github.com/FBoucher/NoteBookmark/actions/workflows/azure-dev.yml/badge.svg)](https://github.com/FBoucher/NoteBookmark/actions/workflows/azure-dev.yml)
3+
![GitHub Release](https://img.shields.io/github/v/release/fboucher/NoteBookmark) ![.NET](https://img.shields.io/badge/9.0-512BD4?logo=dotnet&logoColor=fff) [![.github/workflows/azure-dev.yml](https://github.com/FBoucher/NoteBookmark/actions/workflows/azure-dev.yml/badge.svg)](https://github.com/FBoucher/NoteBookmark/actions/workflows/azure-dev.yml)
4+
45

56
I use this project mostly everyday. I build it to help me collecting my thoughts about articles, and blob posts I read during the week and then aggregate them in a #ReadingNotes blog post. You can find those post on my blog [here](https://frankysnotes.com).
67

@@ -19,57 +20,24 @@ NoteBookmark is composed of three main sections:
1920
- Fork this repository to your account.
2021
- Clone the repository to your local machine.
2122

22-
### Create the Azure Storage
23-
24-
Curretly the project assumed you already have an Azure Storage account, therefor its creation is exclude of the deployment. Let's create one now and retreive it's ConnectionString using a Azure CLI comnand (you can also use the Azure Portal is you prefer).
25-
26-
Here in Bash:
27-
28-
```bash
29-
resourceGroupName="notebookmark-dev"
30-
location="eastus"
31-
storageAccountName="notedata"
32-
33-
az group create --name $resourceGroupName --location $location
34-
35-
az storage account create --name $storageAccountName --resource-group $resourceGroupName --location $location --sku Standard_LRS
36-
37-
az storage account show-connection-string --name $storageAccountName --resource-group $resourceGroupName
38-
```
39-
40-
and PowerShell:
41-
42-
```powershell
43-
$resourceGroupName = "notebookmark-dev"
44-
$location = "eastus"
45-
$storageAccountName = "notedata"
46-
47-
az group create --name $resourceGroupName --location $location
48-
49-
az storage account create --name $storageAccountName --resource-group $resourceGroupName --location $location --sku Standard_LRS
50-
51-
az storage account show-connection-string --name $storageAccountName --resource-group $resourceGroupName
52-
```
53-
54-
Save this connection string, you will need it later.
5523

56-
### Deploy the soluiton
24+
### Deploy the solution (5 mins)
5725

5826
Using Azure Developer CLI let's initialize your environment. In a terminal, at the root of the project, run the following command. When ask give it a name (ex: NoteBookmark-dev).
5927

6028
```bash
6129
azd init
6230
```
6331

64-
Now let's deploy the solution. Run the following command in the terminal. You will have to select your Azure subscription where you want to deploy the solution, a location (use the same as for the storage creation earlier), and paste the connection string you saved earlier when asked for the 'data_storage_connstr'.
32+
Now let's deploy the solution. Run the following command in the terminal. You will have to select your Azure subscription where you want to deploy the solution, and a location (ex: eastus).
6533

6634
```bash
6735
azd up
6836
```
6937

7038
It should take around five minutes to deploy the solution. Once it's done, you will see the URL for **Deploying service blazor-app**.
7139

72-
### Secure the App
40+
### Secure the App in a few clicks
7341

7442
The app is now deployed, but it's not secure. Navigate to the Azure Portal, and find the Resource Group you just deployed (ex: rg-notebookmark-dev). In this resource group, open the Container App **Container App**. From the left menu, select **Authentication** and click the **Add identity provider**.
7543

0 commit comments

Comments
 (0)