Skip to content

Commit 1187a0d

Browse files
author
Tijoy Tom
committed
Fixing CSS create secret, it was missing the Body part
1 parent 32f01de commit 1187a0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/service-fabric/service-fabric-application-secret-store.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ Use the following template to use Resource Manager to create the secret resource
7272
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.
7373

7474
```powershell
75-
Invoke-WebRequest -Uri https://<clusterfqdn>:19080/Resources/Secrets/supersecret?api-version=6.4-preview -Method PUT -CertificateThumbprint <CertThumbprint>
75+
$json = '{"properties": {"kind": "inlinedValue", "contentType": "text/plain", "description": "supersecret"}}'
76+
Invoke-WebRequest -Uri https://<clusterfqdn>:19080/Resources/Secrets/supersecret?api-version=6.4-preview -Method PUT -CertificateThumbprint <CertThumbprint> -Body $json
7677
```
7778

7879
## Set the secret value

0 commit comments

Comments
 (0)