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
3. Add a feature to the web app to write a message to the Service Bus from step 2. Ideally this ia a text box for the message and a button to submit the message to the bus. You can use the Azure SDK for .NET to send messages to the bus from your web app.
46
+
47
+
44
48
45
-
- Key Vault Created ❌✅
46
-
- Key Vault Secret Created ❌✅
47
-
- Key Vault Access policy created for user 'jcurry9@ewu.edu' with secret 'Get' permission ❌✅
48
-
- Web App Granted Access to Key Vault ❌✅
49
-
- Reference key vault secret as an app setting on your web app where the app setting name is the secret name and the value references your secret using the secret uri ❌✅
1. Run `dotnet publish -c Release` to build and publish the application, which will also create a Docker image.
14
+
1. Run `docker images` to see the created image.
15
+
1. Properties can be set in the project file or via command line arguments to `dotnet publish` to specify the base image, target OS, and other containerization options.
16
+
```
17
+
dotnet publish --os linux --arch x64 /t:PublishContainer /p:ContainerImageTags=`"0.0.1`;latest`"
18
+
```
19
+
20
+
## Publish to Azure Container Registry
21
+
[Publish to Azure Container Registry](https://learn.microsoft.com/en-us/dotnet/core/containers/azure-container-registry?tabs=windows)
22
+
1. Create an Azure Container Registry (ACR)
23
+
1. Install the Azure CLI and log in to your Azure account using `az login`
24
+
1. Use the Azure CLI to log in to your ACR using `az acr login --name <registry-name>`
25
+
1. Tag your Docker image with the ACR login server name using `docker tag <image-name> <registry-name>.azurecr.io/<image-name>:<tag>`
26
+
1. Push the Docker image to ACR using `docker push <registry-name>.azurecr
27
+
28
+
29
+
## Containerize with Docker
30
+
[Containerize with Docker](https://learn.microsoft.com/en-us/dotnet/core/docker/build-container?tabs=windows&pivots=dotnet-10-0)
0 commit comments