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
Copy file name to clipboardExpand all lines: articles/service-fabric/service-fabric-application-secret-store.md
+3-67Lines changed: 3 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,31 +43,9 @@ Add the following script to your cluster configuration under `fabricSettings` to
43
43
]
44
44
```
45
45
## Declare a secret resource
46
-
You can create a secret resource by using either the Azure Resource Manager template or the REST API.
47
-
48
-
### Use Resource Manager
49
-
50
-
Use the following template to use Resource Manager to create the secret resource. The template creates a `supersecret` secret resource, but no value is set for the secret resource yet.
51
-
52
-
53
-
```json
54
-
"resources": [
55
-
{
56
-
"apiVersion": "2018-07-01-preview",
57
-
"name": "supersecret",
58
-
"type": "Microsoft.ServiceFabricMesh/secrets",
59
-
"location": "[parameters('location')]",
60
-
"dependsOn": [],
61
-
"properties": {
62
-
"kind": "inlinedValue",
63
-
"description": "Application Secret",
64
-
"contentType": "text/plain",
65
-
}
66
-
}
67
-
]
68
-
```
69
-
70
-
### Use the REST API
46
+
You can create a secret resource by using the REST API.
47
+
> [!NOTE]
48
+
> If the cluster is using windows authentication, the REST request is sent over unsecured HTTP channel. The recommendation is to use a X509 based cluster with secure endpoints.
71
49
72
50
To create a `supersecret` secret resource by using the REST API, make a PUT request to `https://<clusterfqdn>:19080/Resources/Secrets/supersecret?api-version=6.4-preview`. You need the cluster certificate or admin client certificate to create a secret resource.
Use the following Resource Manager template to create and set the secret value. This template sets the secret value for the `supersecret` secret resource as version `ver1`.
0 commit comments