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
Assign a role to a service principal. This will require a role definition id from the list retrieved in the [above snippet](#list-the-role-definitions) and the principal object id retrieved in the [Create and Get credentials](#create-and-get-credentials)
185
+
Assign a role to a service principal. This will require a role definition id from the list retrieved in the [above snippet](#list-all-role-definitions) and the principal object id retrieved in the [Create and Get credentials](#create-and-get-credentials)
Back up your entire collection of keys. The backing store for full key backups is a blob storage container using Shared Access Signature authentication.
177
222
223
+
For more details on creating a SAS token using the `BlobServiceClient`, see the sample [here](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py#L105).
224
+
Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/en-us/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer)
225
+
226
+
```python
227
+
from azure.identity import DefaultAzureCredential
228
+
from azure.keyvault.administration import KeyVaultBackupClient
229
+
from azure.core.exceptions import ResourceNotFoundError
Restore your entire collection of keys from a backup. The data sourcefor a full key restore is a storage blob accessed using Shared Access Signature authentication.
252
+
You will also need the `azure_storage_blob_container_uri` from the [above snippet](#perform-a-full-key-backup).
253
+
254
+
For more details on creating a SAS token using the `BlobServiceClient`, see the sample [here](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py#L105).
255
+
Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/en-us/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer)
256
+
257
+
```python
258
+
from azure.identity import DefaultAzureCredential
259
+
from azure.keyvault.administration import KeyVaultBackupClient
260
+
from azure.core.exceptions import ResourceNotFoundError
0 commit comments