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
Now that your application is authenticated, you can put a secret into your keyvault using the client.SetSecret method](/dotnet/api/microsoft.azure.keyvault.keyvaultclientextensions.setsecretasync) This requires a name for the secret -- we're using "mySecret" in this sample.
147
147
148
148
```python
149
-
client.set_secret(secretName, secretValue);
149
+
client.set_secret(secretName, secretValue)
150
150
```
151
151
152
152
You can verify that the secret has been set with the [az keyvault secret show](/cli/azure/keyvault/secret?view=azure-cli-latest#az-keyvault-secret-show) command:
@@ -170,7 +170,7 @@ Your secret is now saved as `retrieved_secret.value`.
170
170
Finally, let's delete the secret from your key vault with the [client.DeleteSecret method](/dotnet/api/microsoft.azure.keyvault.keyvaultclientextensions.getsecretasync).
171
171
172
172
```python
173
-
client.delete_secret(secretName);
173
+
client.delete_secret(secretName)
174
174
```
175
175
176
176
You can verify that the secret is gone with the [az keyvault secret show](/cli/azure/keyvault/secret?view=azure-cli-latest#az-keyvault-secret-show) command:
0 commit comments