Skip to content

Commit 4e2d067

Browse files
HarveyLinkm-nash
andauthored
Release Track2 KeyVault (Azure#23263)
* Initial KeyVault * Pipeline fix * Update Packages.Data.props * re-gen * pipeline fix * Re-gen * Update Azure.ResourceManager.KeyVault.netstandard2.0.cs * Re-generate * Update Azure.ResourceManager.KeyVault.netstandard2.0.cs * Update base * Update Azure.ResourceManager.KeyVault.sln * Update ManagementRecordedTestBase.cs * Update CHANGELOG.md * Update version * Update ManagementRecordedTestBase.cs * re-gen * Update Azure.ResourceManager.KeyVault.netstandard2.0.cs * Re-gen * Update tests * Update cspell.json * Update ServicePrincipal.Serialization.cs * re-gen * Update Azure.ResourceManager.KeyVault.netstandard2.0.cs * updates to package * update changelog * regen with latest autorest Co-authored-by: m-nash <prognash@gmail.com>
1 parent 5a0384b commit 4e2d067

File tree

168 files changed

+127284
-16042
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+127284
-16042
lines changed

.vscode/cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"sdk/dns/*/api/*.cs",
4040
"sdk/eventgrid/*/api/*.cs",
4141
"sdk/insights/*/api/*.cs",
42+
"sdk/keyvault/*/api/*.cs",
4243
"sdk/machinelearningservices/*/api/*.cs",
4344
"sdk/modelsrepository/*/api/*.cs",
4445
"sdk/monitor/*/api/*.cs",

common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using Azure.Core;
55
using Azure.Core.TestFramework;
6-
using Azure.ResourceManager.Core;
6+
using Azure.ResourceManager;
77
using Castle.DynamicProxy;
88
using NUnit.Framework;
99
using System;

sdk/keyvault/Azure.ResourceManager.KeyVault/Azure.ResourceManager.KeyVault.sln

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.30011.22
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.0.31624.463
54
MinimumVisualStudioVersion = 15.0.26124.0
65
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.KeyVault", "src\Azure.ResourceManager.KeyVault.csproj", "{68CD0142-EAA5-4D17-B574-0E059D28908B}"
76
EndProject
@@ -11,8 +10,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework",
1110
EndProject
1211
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core", "..\..\core\Azure.Core\src\Azure.Core.csproj", "{91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}"
1312
EndProject
14-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Identity", "..\..\identity\Azure.Identity\src\Azure.Identity.csproj", "{CDBD55B6-0742-464F-8188-3BF17006FA34}"
15-
EndProject
1613
Global
1714
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1815
Debug|Any CPU = Debug|Any CPU
@@ -71,18 +68,6 @@ Global
7168
{91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Release|x64.Build.0 = Release|Any CPU
7269
{91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Release|x86.ActiveCfg = Release|Any CPU
7370
{91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Release|x86.Build.0 = Release|Any CPU
74-
{CDBD55B6-0742-464F-8188-3BF17006FA34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
75-
{CDBD55B6-0742-464F-8188-3BF17006FA34}.Debug|Any CPU.Build.0 = Debug|Any CPU
76-
{CDBD55B6-0742-464F-8188-3BF17006FA34}.Debug|x64.ActiveCfg = Debug|Any CPU
77-
{CDBD55B6-0742-464F-8188-3BF17006FA34}.Debug|x64.Build.0 = Debug|Any CPU
78-
{CDBD55B6-0742-464F-8188-3BF17006FA34}.Debug|x86.ActiveCfg = Debug|Any CPU
79-
{CDBD55B6-0742-464F-8188-3BF17006FA34}.Debug|x86.Build.0 = Debug|Any CPU
80-
{CDBD55B6-0742-464F-8188-3BF17006FA34}.Release|Any CPU.ActiveCfg = Release|Any CPU
81-
{CDBD55B6-0742-464F-8188-3BF17006FA34}.Release|Any CPU.Build.0 = Release|Any CPU
82-
{CDBD55B6-0742-464F-8188-3BF17006FA34}.Release|x64.ActiveCfg = Release|Any CPU
83-
{CDBD55B6-0742-464F-8188-3BF17006FA34}.Release|x64.Build.0 = Release|Any CPU
84-
{CDBD55B6-0742-464F-8188-3BF17006FA34}.Release|x86.ActiveCfg = Release|Any CPU
85-
{CDBD55B6-0742-464F-8188-3BF17006FA34}.Release|x86.Build.0 = Release|Any CPU
8671
EndGlobalSection
8772
GlobalSection(SolutionProperties) = preSolution
8873
HideSolutionNode = FALSE
@@ -91,4 +76,3 @@ Global
9176
SolutionGuid = {EEF0B562-43E9-4E60-B175-1E70BF329831}
9277
EndGlobalSection
9378
EndGlobal
94-

sdk/keyvault/Azure.ResourceManager.KeyVault/CHANGELOG.md

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
# Release History
22

3-
## 1.0.0-preview.2 (Unreleased)
3+
## 1.0.0-beta.1 (Unreleased)
44

5-
- Accept header added to all requests.
6-
- Collections are now always initialized and collection properties are readonly by default.
7-
8-
## 1.0.0-preview.1
9-
10-
This package follows the new Azure SDK guidelines which provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more.
11-
12-
This is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues).
5+
- New Design
136

147
### General New Features
158

@@ -52,18 +45,13 @@ using Azure.Identity;
5245
using Azure.ResourceManager.KeyVault;
5346
using Azure.ResourceManager.KeyVault.Models;
5447

55-
var keyVaultManagementClient = new KeyVaultManagementClient(
56-
subscriptionId,
57-
new DefaultAzureCredential(),
58-
new KeyVaultManagementClientOptions());
59-
var vaultsOperations = keyVaultManagementClient.Vaults;
60-
61-
var vault = await vaultsOperations.StartCreateOrUpdateAsync(
62-
resourceGroupName,
63-
vaultName,
64-
parameters
65-
);
66-
var vaultValue = (await vault.WaitForCompletionAsync()).Value;
48+
ArmClient client = new ArmClient(new DefaultAzureCredential());
49+
ResourceGroup resourceGroup = await armClient.DefaultSubscription.GetResourceGroups().GetAsync("myRgName");
50+
51+
VaultContainer vaultContainer = resourceGroup.GetVaults();
52+
53+
VaultCreateOrUpdateOperation lro = await vaultsOperations.CreateOrUpdateAsync(vaultName, parameters);
54+
Vault vault = lro.Value;
6755

6856
```
6957

sdk/keyvault/Azure.ResourceManager.KeyVault/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur
99
Install the Azure Key Vault management library for .NET with [NuGet](https://www.nuget.org/):
1010

1111
```PowerShell
12-
dotnet add package Azure.ResourceManager.KeyVault --version 1.0.0-preview.1
12+
dotnet add package Azure.ResourceManager.KeyVault --version 1.0.0-beta.1
1313
```
1414

1515
### Prerequisites
@@ -22,7 +22,7 @@ To create an authenticated client and start interacting with Azure resources, pl
2222

2323
## Key concepts
2424

25-
Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html)
25+
Key concepts of the Azure .NET SDK can be found [here](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/README.md#key-concepts)
2626

2727
## Documentation
2828

0 commit comments

Comments
 (0)