- Enabled the new model serialization by using the System.ClientModel, refer this document for more details.
- Added model factory for all
DnsRecordData
- Add
ArmOperation.Rehydrate
andArmOperation.Rehydrate<T>
static methods to rehydrate a long-running operation.
- Enabled mocking for extension methods, refer this document for more details.
- Upgraded dependent
Azure.ResourceManager
to 1.9.0.
- Enabled the model factory feature for model mocking, more information can be found here.
- Upgraded dependent Azure.Core to 1.32.0.
- Upgraded dependent Azure.ResourceManager to 1.6.0.
- Upgraded dependent
Azure.Core
to1.28.0
. - Upgraded dependent
Azure.ResourceManager
to1.4.0
.
This package is the first stable release of the Azure DNS management library.
- Added
Dns
prefix for some models - Renamed
RecordSet
toRecord
- Renamed some properties to more comprehensive names.
- Upgraded dependent
Azure.ResourceManager
to 1.3.2 - Upgraded dependent
Azure.Core
to 1.26.0 - Optimized the implementation of methods related to tag operations.
Polishing since last public beta release:
- Optimized the name of some resources, models and functions.
- 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 don't follow Microsoft .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.
- Upgraded dependent
Azure.ResourceManager
to 1.3.0
New design of track 2 initial commit.
The package name has been changed from Microsoft.Azure.Management.Dns
to Azure.ResourceManager.Dns
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, please refer to Microsoft Azure Identity documentation for .NET.
Before upgrade:
using Microsoft.Rest;
using Microsoft.Azure.Management.Dns;
using Microsoft.Azure.Management.Dns.Models;
var tokenCredentials = new TokenCredentials("YOUR ACCESS TOKEN");
DnsManagementClient dnsManagementClient = new DnsManagementClient(credentials);
var dnsZone = await dnsManagementClient.Zones.CreateOrUpdateAsync(resourceGroupName, dnsZoneName, zone);
After upgrade:
using System;
using System.Threading.Tasks;
using Azure.Identity;
using Azure.ResourceManager.Dns;
using Azure.ResourceManager.Resources;
using NUnit.Framework;
ArmClient armClient = new ArmClient(new DefaultAzureCredential());
SubscriptionResource subscription = await armClient.GetDefaultSubscriptionAsync();
// first we need to get the resource group
string rgName = "myRgName";
ResourceGroupResource resourceGroup = await subscription.GetResourceGroups().GetAsync(rgName);
// Now we get the DnsZone collection from the resource group
DnsZoneCollection dnsZoneCollection = resourceGroup.GetDnsZones();
// Use the same location as the resource group
string dnsZoneName = "sample.com";
DnsZoneData data = new DnsZoneData("Global")
{
};
ArmOperation<DnsZoneResource> lro = await dnsZoneCollection.CreateOrUpdateAsync(WaitUntil.Completed, dnsZoneName, data);
DnsZoneResource dnsZone = lro.Value;