- Obsolete tags operations on
KeyVaultPrivateEndpointConnectionResource
which do not work.
- Renamed property name
DeletionOn
toDeletedOn
.
This release is the first stable release of the Key Vault Management client library.
- Added Update methods in resource classes.
Polishing since last public beta release:
- Prepended
KeyVault
/ManagedHsm
prefix to all single / simple model names. - Renamed all
Vault
prefix models toKeyVault
prefix. - Corrected the format of all
Guid
type properties / parameters. - Corrected the format of all
ResourceIdentifier
type properties / parameters. - Corrected the format of all
ResouceType
type properties / parameters. - Corrected the format of all
ETag
type properties / parameters. - Corrected the format of all
AzureLocation
type properties / parameters. - Corrected the format of all binary type properties / parameters.
- Corrected all acronyms that do not follow .NET Naming Guidelines.
- Corrected enumeration name by following Naming Enumerations Rule.
- Corrected the suffix of
DateTimeOffset
properties / parameters. - Corrected the name of interval / duration properties / parameters that end with units.
- Optimized the name of some models and functions.
- Correct inherits
- Base type of
KeyVaultPrivateEndpointConnectionData
changed toAzure.ResourceManager.Models.ResourceData
. - Base type of
ManagedHsmData
changed toAzure.ResourceManager.Models.ResourceData
. - Base type of
ManagedHsmPrivateEndpointConnectionData
changed toAzure.ResourceManager.Models.ResourceData
. - Type
KeyVaultResourceData
was removed. - Base type of
ManagedHsmPrivateLinkResourceData
changed toAzure.ResourceManager.Models.ResourceData
. - Type
ManagedHsmTrackedResourceData
was removed. - Base type of
PrivateLinkResourceData
changed toAzure.ResourceManager.Models.ResourceData
.
- Base type of
- Upgraded dependent
Azure.ResourceManager
to 1.2.0 - Upgraded dependent
Azure.Core
to 1.25.0
- Simplified
type
property names. - Normalized the body parameter type names for PUT / POST / PATCH operations if it is only used as input.
- Upgraded dependency to Azure.ResourceManager 1.0.0
- Now all the resource classes would have a
Resource
suffix (if it previously does not have one). - Renamed some models to more comprehensive names.
bool waitForCompletion
parameter in all long running operations were changed toWaitUntil waitUntil
.- Removed
GetIfExists
methods from all the resource classes. - All properties of the type
object
were changed toBinaryData
.
- waitForCompletion is now a required parameter and moved to the first parameter in LRO operations.
- Removed GetAllAsGenericResources in [Resource]Collections.
- Added Resource constructor to use ArmClient for ClientContext information and removed previous constructors with parameters.
- Couple of renamings.
- Added
CreateResourceIdentifier
for each resource class
- Renamed
CheckIfExists
toExists
for each resource collection class - Renamed
Get{Resource}ByName
toGet{Resource}AsGenericResources
inSubscriptionExtensions
- Fixed comments for
FirstPageFunc
of each pageable resource class
- Unified the identification rule of detecting resources, therefore some resources might become non-resources, and vice versa.
- Fixed problematic internal parameter invocation from the context
Id
property to the correspondingRestOperations
.
- Renamed [Resource]Container to [Resource]Collection and added the IEnumerable and IAsyncEnumerable interfaces to them making it easier to iterate over the list in the simple case.
- Added ArmClient extension methods to support start from the middle scenario.
New design of track 2 initial commit.
The package name has been changed from Microsoft.Azure.Management.KeyVault
to Azure.ResourceManager.KeyVault
。
This package follows the new Azure SDK guidelines, and provides many core capabilities:
- Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET.
- Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing.
- HTTP pipeline with custom policies.
- Better error-handling.
- Support uniform telemetry across all languages.
This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our Azure SDK for .NET GitHub repo.
NOTE: For more information about unified authentication, refer to Microsoft Azure Identity documentation for .NET.
Example: Create a Key Vault Instance:
Before upgrade:
using Microsoft.Azure.Management.KeyVault;
using Microsoft.Azure.Management.KeyVault.Models;
using Microsoft.Rest;
var tokenCredentials = new TokenCredentials("YOUR ACCESS TOKEN");
var keyVaultManagementClient = new KeyVaultManagementClient(tokenCredentials);
var vault = await keyVaultManagementClient.Vaults.BeginCreateOrUpdateAsync
(
resourceGroupName,
vaultName,
parameters
);
After upgrade:
using System;
using Azure;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.KeyVault;
using Azure.ResourceManager.KeyVault.Models;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Resources.Models;
ArmClient armClient = new ArmClient(new DefaultAzureCredential());
SubscriptionResource subscription = await armClient.GetDefaultSubscriptionAsync();
ResourceGroupResource resourceGroup = await subscription.GetResourceGroups().GetAsync("myRgName");
KeyVaultCollection vaultCollection = resourceGroup.GetKeyVaults();
KeyVaultCreateOrUpdateContent parameters = new KeyVaultCreateOrUpdateContent(AzureLocation.WestUS2, new KeyVaultProperties(Guid.NewGuid(), new KeyVaultSku(KeyVaultSkuFamily.A, KeyVaultSkuName.Standard)));
ArmOperation<KeyVaultResource> lro = await vaultCollection.CreateOrUpdateAsync(WaitUntil.Completed, "myVaultName", parameters);
KeyVaultResource vault = lro.Value;
Example: Create a Permissions Model
Before upgrade:
VaultProperties properties = new VaultProperties(Guid.NewGuid(), new Sku(SkuFamily.A, SkuName.Standard));
VaultCreateOrUpdateParameters parameters = new VaultCreateOrUpdateParameters(Location.WestUS2, properties);
After upgrade:
KeyVaultProperties properties = new KeyVaultProperties(Guid.NewGuid(), new KeyVaultSku(KeyVaultSkuFamily.A, KeyVaultSkuName.Standard));
KeyVaultCreateOrUpdateContent parameters = new KeyVaultCreateOrUpdateContent(AzureLocation.WestUS2, properties);