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
* Add KeyVaultSettingsClient
* Prototype type-specific getters
Similar to JsonElement's methods.
* Resolve some architect feedback
* Change KeyVaultSetting design to mimic Form Recognizer
* --amend
* More changes to KeyVaultSetting from architects
Also re-recorded all the tests with 7.4-preview.1 and added more tests, completing Azure#31847.
* Update public API and samples
* Use absolute URLs for links
* Regenerate after rebase on main
* Resolve PR feedback
Copy file name to clipboardExpand all lines: sdk/keyvault/Azure.Security.KeyVault.Administration/api/Azure.Security.KeyVault.Administration.netstandard2.0.cs
+47-1Lines changed: 47 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,11 @@ public CreateOrUpdateRoleDefinitionOptions(Azure.Security.KeyVault.Administratio
Copy file name to clipboardExpand all lines: sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldAsync.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
# Performing a full key backup and restore (Async)
2
2
3
-
This sample demonstrates how to a perform full key backup and restore in Azure Key Vault.
4
-
To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions.
3
+
This sample demonstrates how to a perform full key backup and restore in Azure Managed HSM.
4
+
To get started, you'll need a URI to an Azure Managed HSM. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions.
5
5
6
6
## Creating a KeyVaultBackupClient
7
7
8
-
To create a new `KeyVaultBackupClient`, you'll need the endpoint to an Azure Key Vault and credentials.
8
+
To create a new `KeyVaultBackupClient`, you'll need the endpoint to an Azure Managed HSM and credentials.
9
9
You can use the [DefaultAzureCredential][DefaultAzureCredential] to try a number of common authentication methods optimized for both running as a service and development.
10
10
11
-
In the sample below, you can set `keyVaultUrl` based on an environment variable, configuration setting, or any way that works for your application.
11
+
In the sample below, you can set `managedHsmUrl` based on an environment variable, configuration setting, or any way that works for your application.
Using the `KeyVaultBackupClient`, you can back up your entire collection of keys. The backing store for full key backups is a blob storage container using Shared Access Signature authentication.
19
+
Using the `KeyVaultBackupClient`, you can back up your entire collection of keys. The backing store for full key backups is a blob storage container using Shared Access Signature authentication.
20
20
For more details on creating a SAS token using the `BlobServiceClient`, see the [Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/README.md) and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs).
21
21
Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer)
22
22
@@ -44,7 +44,7 @@ Uri folderUri = backupResult.Value.FolderUri;
44
44
45
45
## Performing a full key restore
46
46
47
-
Using the `KeyVaultBackupClient`, you can restore your entire collection of keys from backup. The data source for full key restore is a storage blob accessed using Shared Access Signature authentication.
47
+
Using the `KeyVaultBackupClient`, you can restore your entire collection of keys from backup. The data source for full key restore is a storage blob accessed using Shared Access Signature authentication.
48
48
For more details on creating a SAS token using the `BlobServiceClient`, see the [Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/README.md) and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs).
49
49
Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer)
Copy file name to clipboardExpand all lines: sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldSync.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
# Performing a full key backup and restore (Sync)
2
2
3
-
This sample demonstrates how to perform a full key backup and restore in Azure Key Vault.
4
-
To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions.
3
+
This sample demonstrates how to perform a full key backup and restore in Azure Managed HSM.
4
+
To get started, you'll need a URI to an Azure Managed HSM. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions.
5
5
6
6
## Creating a KeyVaultBackupClient
7
7
8
-
To create a new `KeyVaultBackupClient`, you'll need the endpoint to an Azure Key Vault and credentials.
8
+
To create a new `KeyVaultBackupClient`, you'll need the endpoint to an Azure Managed HSM and credentials.
9
9
You can use the [DefaultAzureCredential][DefaultAzureCredential] to try a number of common authentication methods optimized for both running as a service and development.
10
10
11
-
In the sample below, you can set `keyVaultUrl` based on an environment variable, configuration setting, or any way that works for your application.
11
+
In the sample below, you can set `managedHsmUrl` based on an environment variable, configuration setting, or any way that works for your application.
Using the `KeyVaultBackupClient`, you can back up your entire collection of keys. The backing store for full key backups is a blob storage container using Shared Access Signature authentication.
19
+
Using the `KeyVaultBackupClient`, you can back up your entire collection of keys. The backing store for full key backups is a blob storage container using Shared Access Signature authentication.
20
20
For more details on creating a SAS token using the `BlobServiceClient`, see the [Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/README.md) and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs).
21
21
Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer)
22
22
@@ -48,7 +48,7 @@ Uri folderUri = backupOperation.Value.FolderUri;
48
48
49
49
## Performing a full key restore
50
50
51
-
Using the `KeyVaultBackupClient`, you can restore your entire collection of keys from backup. The data source for full key restore is a storage blob accessed using Shared Access Signature authentication.
51
+
Using the `KeyVaultBackupClient`, you can restore your entire collection of keys from backup. The data source for full key restore is a storage blob accessed using Shared Access Signature authentication.
52
52
For more details on creating a SAS token using the `BlobServiceClient`, see the [Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/README.md) and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs).
53
53
Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer)
Copy file name to clipboardExpand all lines: sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
# Creating, getting, and deleting role assignments (Async)
2
2
3
-
This sample demonstrates how to create, get, and delete role assignments in Azure Key Vault.
4
-
To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions.
3
+
This sample demonstrates how to create, get, and delete role assignments in Azure Managed HSM.
4
+
To get started, you'll need a URI to an Azure Managed HSM. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions.
5
5
6
6
## Creating a KeyVaultAccessControlClient
7
7
8
-
To create a new `KeyVaultAccessControlClient` to create, get, or delete role assignments, you need the endpoint to an Azure Key Vault and credentials.
8
+
To create a new `KeyVaultAccessControlClient` to create, get, or delete role assignments, you need the endpoint to an Azure Managed HSM and credentials.
9
9
You can use the [DefaultAzureCredential][DefaultAzureCredential] to try a number of common authentication methods optimized for both running as a service and development.
10
10
11
-
In the sample below, you can set `keyVaultUrl` based on an environment variable, configuration setting, or any way that works for your application.
11
+
In the sample below, you can set `managedHsmUrl` based on an environment variable, configuration setting, or any way that works for your application.
@@ -46,7 +46,8 @@ A role definition Id can be obtained from the `Id` property of one of the role d
46
46
47
47
See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions on how to generate a new service principal and obtain it's object Id.
48
48
You can also get the object Id for your currently signed in account by running the following [Azure CLI][azure_cli] command.
To remove a role assignment from a service principal, the role assignment must be deleted. Let's delete the `createdAssignment` from the previous example.
0 commit comments