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
Follow these steps to use the secret in your Service Fabric application.
130
130
131
-
1. Add a section in the **settings.xml** file with the following script. Note here that the value is in the format {`secretname:version`}.
131
+
1. Add a section in the **settings.xml** file with the following snippet. Note here that the value is in the format {`secretname:version`}.
132
132
133
133
```xml
134
134
<SectionName="testsecrets">
@@ -149,12 +149,12 @@ Follow these steps to use the secret in your Service Fabric application.
149
149
</ServiceManifestImport>
150
150
```
151
151
152
-
`EnvironmentVariableName=SecretPath` will point to the directory where all secrets are stored. Each parameter listed under the `testsecrets` section is stored in a separate file. The application can now use the secret as follows:
152
+
The environment variable `SecretPath` will point to the directory where all secrets are stored. Each parameter listed under the `testsecrets` section is stored in a separate file. The application can now use the secret as follows:
4. Youcanbindasecrettoaprocessenvironmentvariablebyspecifying `Type='SecretsStoreRef`. The following script is an example of how to bind the `supersecret` version `ver1` to the environment variable `MySuperSecret` in **ServiceManifest.xml**.
175
+
4. Youcanbindasecrettoaprocessenvironmentvariablebyspecifying `Type='SecretsStoreRef`. The following snippet is an example of how to bind the `supersecret` version `ver1` to the environment variable `MySuperSecret` in **ServiceManifest.xml**.
0 commit comments