Skip to content

Commit 87e7535

Browse files
author
SDKAuto
committed
CodeGen from PR 32212 in Azure/azure-rest-api-specs
Merge 5d5e906122e60632c77f28c2ac4d236624ef44da into f8a6ecd39798b8e1e7c62c475d678bafb6e6f915
1 parent bcd4faa commit 87e7535

14 files changed

+291
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30309.148
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{7BF5892A-EF62-4C5D-BD17-BCFCB77ADAAA}") = "Azure.ResourceManager.Migrate", "src\Azure.ResourceManager.Migrate.csproj", "{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}"
7+
EndProject
8+
Project("{7BF5892A-EF62-4C5D-BD17-BCFCB77ADAAA}") = "Azure.ResourceManager.Migrate.Tests", "tests\Azure.ResourceManager.Migrate.Tests.csproj", "{C238C07A-E579-4BFF-B294-6DEC5B15AD69}"
9+
EndProject
10+
Project("{7BF5892A-EF62-4C5D-BD17-BCFCB77ADAAA}") = "Azure.ResourceManager.Migrate.Samples", "samples\Azure.ResourceManager.Migrate.Samples.csproj", "{E245BC63-4932-4FBB-BBDC-928C27B69D94}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionProperties) = preSolution
14+
HideSolutionNode = FALSE
15+
EndGlobalSection
16+
GlobalSection(ExtensibilityGlobals) = postSolution
17+
SolutionGuid = {D5E435C6-2A3D-4F7A-8C25-5C19D91C45B2}
18+
EndGlobalSection
19+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
20+
Debug|Any CPU = Debug|Any CPU
21+
Debug|x64 = Debug|x64
22+
Debug|x86 = Debug|x86
23+
Release|Any CPU = Release|Any CPU
24+
Release|x64 = Release|x64
25+
Release|x86 = Release|x86
26+
EndGlobalSection
27+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
28+
{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29+
{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}.Debug|Any CPU.Build.0 = Debug|Any CPU
30+
{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}.Debug|x64.ActiveCfg = Debug|Any CPU
31+
{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}.Debug|x64.Build.0 = Debug|Any CPU
32+
{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}.Debug|x86.ActiveCfg = Debug|Any CPU
33+
{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}.Debug|x86.Build.0 = Debug|Any CPU
34+
{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}.Release|Any CPU.Build.0 = Release|Any CPU
36+
{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}.Release|x64.ActiveCfg = Release|Any CPU
37+
{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}.Release|x64.Build.0 = Release|Any CPU
38+
{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}.Release|x86.ActiveCfg = Release|Any CPU
39+
{9D6C5F39-EA16-4EBF-A253-9195AFC0F53C}.Release|x86.Build.0 = Release|Any CPU
40+
{C238C07A-E579-4BFF-B294-6DEC5B15AD69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
41+
{C238C07A-E579-4BFF-B294-6DEC5B15AD69}.Debug|Any CPU.Build.0 = Debug|Any CPU
42+
{C238C07A-E579-4BFF-B294-6DEC5B15AD69}.Debug|x64.ActiveCfg = Debug|Any CPU
43+
{C238C07A-E579-4BFF-B294-6DEC5B15AD69}.Debug|x64.Build.0 = Debug|Any CPU
44+
{C238C07A-E579-4BFF-B294-6DEC5B15AD69}.Debug|x86.ActiveCfg = Debug|Any CPU
45+
{C238C07A-E579-4BFF-B294-6DEC5B15AD69}.Debug|x86.Build.0 = Debug|Any CPU
46+
{C238C07A-E579-4BFF-B294-6DEC5B15AD69}.Release|Any CPU.ActiveCfg = Release|Any CPU
47+
{C238C07A-E579-4BFF-B294-6DEC5B15AD69}.Release|Any CPU.Build.0 = Release|Any CPU
48+
{C238C07A-E579-4BFF-B294-6DEC5B15AD69}.Release|x64.ActiveCfg = Release|Any CPU
49+
{C238C07A-E579-4BFF-B294-6DEC5B15AD69}.Release|x64.Build.0 = Release|Any CPU
50+
{C238C07A-E579-4BFF-B294-6DEC5B15AD69}.Release|x86.ActiveCfg = Release|Any CPU
51+
{C238C07A-E579-4BFF-B294-6DEC5B15AD69}.Release|x86.Build.0 = Release|Any CPU
52+
{E245BC63-4932-4FBB-BBDC-928C27B69D94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
53+
{E245BC63-4932-4FBB-BBDC-928C27B69D94}.Debug|Any CPU.Build.0 = Debug|Any CPU
54+
{E245BC63-4932-4FBB-BBDC-928C27B69D94}.Debug|x64.ActiveCfg = Debug|Any CPU
55+
{E245BC63-4932-4FBB-BBDC-928C27B69D94}.Debug|x64.Build.0 = Debug|Any CPU
56+
{E245BC63-4932-4FBB-BBDC-928C27B69D94}.Debug|x86.ActiveCfg = Debug|Any CPU
57+
{E245BC63-4932-4FBB-BBDC-928C27B69D94}.Debug|x86.Build.0 = Debug|Any CPU
58+
{E245BC63-4932-4FBB-BBDC-928C27B69D94}.Release|Any CPU.ActiveCfg = Release|Any CPU
59+
{E245BC63-4932-4FBB-BBDC-928C27B69D94}.Release|Any CPU.Build.0 = Release|Any CPU
60+
{E245BC63-4932-4FBB-BBDC-928C27B69D94}.Release|x64.ActiveCfg = Release|Any CPU
61+
{E245BC63-4932-4FBB-BBDC-928C27B69D94}.Release|x64.Build.0 = Release|Any CPU
62+
{E245BC63-4932-4FBB-BBDC-928C27B69D94}.Release|x86.ActiveCfg = Release|Any CPU
63+
{E245BC63-4932-4FBB-BBDC-928C27B69D94}.Release|x86.Build.0 = Release|Any CPU
64+
EndGlobalSection
65+
EndGlobal
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Release History
2+
3+
## 1.0.0-beta.1 (Unreleased)
4+
5+
6+
7+
### Features Added
8+
9+
This package follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities:
10+
11+
- Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET.
12+
- Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing.
13+
- HTTP pipeline with custom policies.
14+
- Better error-handling.
15+
- Support uniform telemetry across all languages.
16+
17+
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](https://github.com/Azure/azure-sdk-for-net/issues).
18+
19+
> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet).
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<!--
3+
Add any shared properties you want for the projects under this package directory that need to be set before the auto imported Directory.Build.props
4+
-->
5+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., Directory.Build.props))\Directory.Build.props" />
6+
</Project>
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Microsoft Azure migrate management client library for .NET
2+
3+
**[Describe the service briefly first.]**
4+
5+
This library follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities:
6+
7+
- Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET.
8+
- Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing.
9+
- HTTP pipeline with custom policies.
10+
- Better error-handling.
11+
- Support uniform telemetry across all languages.
12+
13+
## Getting started
14+
15+
### Install the package
16+
17+
Install the Microsoft Azure migrate management library for .NET with [NuGet](https://www.nuget.org/):
18+
19+
```dotnetcli
20+
dotnet add package Azure.ResourceManager.Migrate --prerelease
21+
```
22+
23+
### Prerequisites
24+
25+
* You must have an [Microsoft Azure subscription](https://azure.microsoft.com/free/dotnet/).
26+
27+
### Authenticate the Client
28+
29+
To create an authenticated client and start interacting with Microsoft Azure resources, see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
30+
31+
## Key concepts
32+
33+
Key concepts of the Microsoft Azure SDK for .NET can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html)
34+
35+
## Documentation
36+
37+
Documentation is available to help you learn how to use this package:
38+
39+
- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
40+
- [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet).
41+
- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md).
42+
43+
## Examples
44+
45+
Code samples for using the management library for .NET can be found in the following locations
46+
- [.NET Management Library Code Samples](https://aka.ms/azuresdk-net-mgmt-samples)
47+
48+
## Troubleshooting
49+
50+
- File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-net/issues).
51+
- Check [previous questions](https://stackoverflow.com/questions/tagged/azure+.net) or ask new ones on Stack Overflow using Azure and .NET tags.
52+
53+
## Next steps
54+
55+
For more information about Microsoft Azure SDK, see [this website](https://azure.github.io/azure-sdk/).
56+
57+
## Contributing
58+
59+
For details on contributing to this repository, see the [contributing
60+
guide][cg].
61+
62+
This project welcomes contributions and suggestions. Most contributions
63+
require you to agree to a Contributor License Agreement (CLA) declaring
64+
that you have the right to, and actually do, grant us the rights to use
65+
your contribution. For details, visit <https://cla.microsoft.com>.
66+
67+
When you submit a pull request, a CLA-bot will automatically determine
68+
whether you need to provide a CLA and decorate the PR appropriately
69+
(for example, label, comment). Follow the instructions provided by the
70+
bot. You'll only need to do this action once across all repositories
71+
using our CLA.
72+
73+
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For
74+
more information, see the [Code of Conduct FAQ][coc_faq] or contact
75+
<[email protected]> with any other questions or comments.
76+
77+
<!-- LINKS -->
78+
[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md
79+
[coc]: https://opensource.microsoft.com/codeofconduct/
80+
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"AssetsRepo": "Azure/azure-sdk-assets",
3+
"AssetsRepoPrefixPath": "net",
4+
"TagPrefix": "net/migrate/Azure.ResourceManager.Migrate",
5+
"Tag": ""
6+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<ItemGroup>
3+
<PackageReference Include="Azure.Identity"/>
4+
<PackageReference Include="NUnit" />
5+
<PackageReference Include="NUnit3TestAdapter" />
6+
</ItemGroup>
7+
<ItemGroup>
8+
<ProjectReference Include="..\src\Azure.ResourceManager.Migrate.csproj" />
9+
</ItemGroup>
10+
</Project>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<Version>1.0.0-beta.1</Version>
4+
<PackageId>Azure.ResourceManager.Migrate</PackageId>
5+
<Description>Azure Resource Manager client SDK for Azure resource provider migrate.</Description>
6+
<PackageTags>azure;management;arm;resource manager;migrate</PackageTags>
7+
</PropertyGroup>
8+
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
using System.Runtime.CompilerServices;
5+
6+
[assembly: Azure.Core.AzureResourceProviderNamespace("migrate")]
7+
8+
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]
9+
[assembly: InternalsVisibleTo("Azure.ResourceManager.Migrate.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<ItemGroup>
3+
<ProjectReference Include="..\src\Azure.ResourceManager.Migrate.csproj" />
4+
</ItemGroup>
5+
</Project>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
using Azure.Core;
5+
using Azure.Core.TestFramework;
6+
using Azure.ResourceManager.Resources;
7+
using Azure.ResourceManager.TestFramework;
8+
using NUnit.Framework;
9+
using System.Threading.Tasks;
10+
11+
namespace Azure.ResourceManager.Migrate.Tests
12+
{
13+
public class migrateManagementTestBase : ManagementRecordedTestBase<migrateManagementTestEnvironment>
14+
{
15+
protected ArmClient Client { get; private set; }
16+
protected SubscriptionResource DefaultSubscription { get; private set; }
17+
18+
protected migrateManagementTestBase(bool isAsync, RecordedTestMode mode)
19+
: base(isAsync, mode)
20+
{
21+
}
22+
23+
protected migrateManagementTestBase(bool isAsync)
24+
: base(isAsync)
25+
{
26+
}
27+
28+
[SetUp]
29+
public async Task CreateCommonClient()
30+
{
31+
Client = GetArmClient();
32+
DefaultSubscription = await Client.GetDefaultSubscriptionAsync().ConfigureAwait(false);
33+
}
34+
35+
protected async Task<ResourceGroupResource> CreateResourceGroup(SubscriptionResource subscription, string rgNamePrefix, AzureLocation location)
36+
{
37+
string rgName = Recording.GenerateAssetName(rgNamePrefix);
38+
ResourceGroupData input = new ResourceGroupData(location);
39+
var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, input);
40+
return lro.Value;
41+
}
42+
}
43+
}

0 commit comments

Comments
 (0)