Skip to content

Commit ab1bb8b

Browse files
Update readme.md
1 parent 524f4b4 commit ab1bb8b

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

  • deploy/az/servicefabric/WindowsContainers

deploy/az/servicefabric/WindowsContainers/readme.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,33 @@ Go to PortalAzure and create a Keyvault service. Make sure Enable access for dep
6363
![image](https://user-images.githubusercontent.com/1712635/31638848-9b266530-b28a-11e7-953b-1e3ec1a54f77.png)
6464

6565
## Generate a certificate in Azure Keyvault
66-
Execute the gen-keyvaultcert.ps1 script to generate and download a certificate from Keyvault.
66+
In a POWER-SHELL window, move to the folder [..\deploy\az\servicefabric\WindowsContainers](https://github.com/dotnet-architecture/eShopOnContainers/tree/dev/deploy/az/servicefabric/WindowsContainers).
67+
68+
**Select your Azure subscription** You might have [several Azure subscriptions](https://docs.microsoft.com/en-us/cli/azure/account#set) as shown if you type the following.
69+
70+
>```
71+
>az account list
72+
>```
73+
If you have multiple subscription accounts, you first need to select the Azure subscription account you want to target. Type the following:
74+
>```
75+
>az account set --subscription "Your Azure Subscription Name or ID"
76+
>```
77+
78+
**Execute the gen-keyvaultcert.ps1 script** to generate and download a certificate from Keyvault.
79+
Make sure you're going to run it against the Azure subscription you mean it.
80+
81+
You might need to authenticate from the browser when running this PowerShell script.
6782

6883
```
69-
.\gen-keyvaultcert.ps1 -vaultName <your_keyvault_service> -certName <your_cert_name> -certPwd <your_cert_pwd> -subjectName CN=<your_sf_dns_name>.westeurope.cloudapp.azure.com -saveDir C:\Users\<user>\Downloads
84+
.\gen-keyvaultcert.ps1 -vaultName <your_keyvault_service> -certName <your_cert_name> -certPwd <your_cert_pwd> -subjectName CN=<your_sf_dns_name>.westus.cloudapp.azure.com -saveDir C:\Users\<your-user>\Downloads
7085
7186
```
87+
You should see a similar execution to the following:
88+
89+
![image](https://user-images.githubusercontent.com/1712635/31639818-a50ab63c-b28f-11e7-8791-bcfadeed5a56.png)
90+
91+
IMPORTANT: At this point, copy/cut the .PFX certifiacte file saved in the downloads forlder and save it in a secure place.
92+
7293
## Install the certificate
7394
Install the certificate under 'Current User' store location and check it as exportable.
7495

0 commit comments

Comments
 (0)