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: sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-basic-operations/certificate_basic_operations.cpp
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,10 @@ int main()
93
93
.Value;
94
94
95
95
std::cout << "After update certificate is enabled : "
Copy file name to clipboardExpand all lines: sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-get-certificates/certificate_get_certificates.cpp
Copy file name to clipboardExpand all lines: sdk/keyvault/azure-security-keyvault-secrets/samples/sample1_basic_operations.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Key Vault Secrets client for C++ currently supports any `TokenCredential` for au
12
12
In the sample below, you can create a credential by setting the Tenant ID, Client ID and Client Secret as environment variables.
13
13
14
14
```cpp Snippet:SecretSample1CreateCredential
15
-
auto credential = std::make_shared<Azure::Identity::DefaultAzureCredential>();
15
+
auto credential = std::make_shared<Azure::Identity::DefaultAzureCredential>();
16
16
```
17
17
18
18
Then, in the sample below, you can set `keyVaultUrl` based on an environment variable, configuration setting, or any way that works for your application.
@@ -38,23 +38,25 @@ Call GetSecret to retrieve a secret from Key Vault.
Copy file name to clipboardExpand all lines: sdk/keyvault/azure-security-keyvault-secrets/samples/sample2_backup_restore.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Key Vault Secrets client for C++ currently supports any `TokenCredential` for au
12
12
In the sample below, you can create a credential by setting the Tenant ID, Client ID and Client Secret as environment variables.
13
13
14
14
```cpp Snippet:SecretSample2CreateCredential
15
-
auto credential = std::make_shared<Azure::Identity::DefaultAzureCredential>();
15
+
auto credential = std::make_shared<Azure::Identity::DefaultAzureCredential>();
16
16
```
17
17
18
18
Then, in the sample below, you can set `keyVaultUrl` based on an environment variable, configuration setting, or any way that works for your application.
@@ -38,9 +38,11 @@ Call GetSecret to retrieve a secret from Key Vault.
Copy file name to clipboardExpand all lines: sdk/keyvault/azure-security-keyvault-secrets/samples/sample3_delete_recover.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Key Vault Secrets client for C++ currently supports any `TokenCredential` for au
11
11
In the sample below, you can create a credential by setting the Tenant ID, Client ID and Client Secret as environment variables.
12
12
13
13
```cpp Snippet:SecretSample3CreateCredential
14
-
auto credential = std::make_shared<Azure::Identity::DefaultAzureCredential>();
14
+
auto credential = std::make_shared<Azure::Identity::DefaultAzureCredential>();
15
15
```
16
16
17
17
Then, in the sample below, you can set `keyVaultUrl` based on an environment variable, configuration setting, or any way that works for your application.
@@ -37,9 +37,11 @@ Call GetSecret to retrieve a secret from Key Vault.
Copy file name to clipboardExpand all lines: sdk/keyvault/azure-security-keyvault-secrets/samples/sample4_get_secrets_deleted.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,21 +10,21 @@ Key Vault Secrets client for C++ currently supports any `TokenCredential` for au
10
10
11
11
In the sample below, you can create a credential by setting the Tenant ID, Client ID and Client Secret as environment variables.
12
12
13
-
```cpp Snippet:SecretSample4CreateCredential
14
-
auto credential = std::make_shared<Azure::Identity::DefaultAzureCredential>();
13
+
```cpp
14
+
auto credential = std::make_shared<Azure::Identity::DefaultAzureCredential>();
15
15
```
16
16
17
17
Then, in the sample below, you can set `keyVaultUrl` based on an environment variable, configuration setting, or any way that works for your application.
Call GetPropertiesOfSecrets to get the properties of all the secrets in the key vault. The results of this call are paged to a maximum of 25 SecretProperties per page.
39
39
40
-
```cpp Snippet:SecretSample4ListAllSecrets
40
+
```cpp
41
41
// get properties of secrets
42
42
for (auto secrets = secretClient.GetPropertiesOfSecrets(); secrets.HasPage(); secrets.MoveToNextPage())
43
43
{ // go through every secret of each page returned
Copy file name to clipboardExpand all lines: sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample1-basic-operations/sample1_basic_operations.cpp
0 commit comments