Skip to content

Commit e5b8a70

Browse files
Add CarbonOptimization SDK for first time (Azure#49528)
1 parent a3adf06 commit e5b8a70

File tree

94 files changed

+10879
-0
lines changed

Some content is hidden

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

94 files changed

+10879
-0
lines changed
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("{9DF63D78-1A0A-48A5-90DB-67203B6BEC9A}") = "Azure.ResourceManager.CarbonOptimization", "src\Azure.ResourceManager.CarbonOptimization.csproj", "{025738FE-F382-47AA-910C-AEDB54A67E2C}"
7+
EndProject
8+
Project("{9DF63D78-1A0A-48A5-90DB-67203B6BEC9A}") = "Azure.ResourceManager.CarbonOptimization.Tests", "tests\Azure.ResourceManager.CarbonOptimization.Tests.csproj", "{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}"
9+
EndProject
10+
Project("{9DF63D78-1A0A-48A5-90DB-67203B6BEC9A}") = "Azure.ResourceManager.CarbonOptimization.Samples", "samples\Azure.ResourceManager.CarbonOptimization.Samples.csproj", "{2AB3C72B-DE06-442A-942A-4D45C8300B3B}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionProperties) = preSolution
14+
HideSolutionNode = FALSE
15+
EndGlobalSection
16+
GlobalSection(ExtensibilityGlobals) = postSolution
17+
SolutionGuid = {F1AB931B-385A-400C-A09C-503030516094}
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+
{025738FE-F382-47AA-910C-AEDB54A67E2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29+
{025738FE-F382-47AA-910C-AEDB54A67E2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
30+
{025738FE-F382-47AA-910C-AEDB54A67E2C}.Debug|x64.ActiveCfg = Debug|Any CPU
31+
{025738FE-F382-47AA-910C-AEDB54A67E2C}.Debug|x64.Build.0 = Debug|Any CPU
32+
{025738FE-F382-47AA-910C-AEDB54A67E2C}.Debug|x86.ActiveCfg = Debug|Any CPU
33+
{025738FE-F382-47AA-910C-AEDB54A67E2C}.Debug|x86.Build.0 = Debug|Any CPU
34+
{025738FE-F382-47AA-910C-AEDB54A67E2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{025738FE-F382-47AA-910C-AEDB54A67E2C}.Release|Any CPU.Build.0 = Release|Any CPU
36+
{025738FE-F382-47AA-910C-AEDB54A67E2C}.Release|x64.ActiveCfg = Release|Any CPU
37+
{025738FE-F382-47AA-910C-AEDB54A67E2C}.Release|x64.Build.0 = Release|Any CPU
38+
{025738FE-F382-47AA-910C-AEDB54A67E2C}.Release|x86.ActiveCfg = Release|Any CPU
39+
{025738FE-F382-47AA-910C-AEDB54A67E2C}.Release|x86.Build.0 = Release|Any CPU
40+
{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
41+
{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
42+
{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}.Debug|x64.ActiveCfg = Debug|Any CPU
43+
{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}.Debug|x64.Build.0 = Debug|Any CPU
44+
{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}.Debug|x86.ActiveCfg = Debug|Any CPU
45+
{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}.Debug|x86.Build.0 = Debug|Any CPU
46+
{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
47+
{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}.Release|Any CPU.Build.0 = Release|Any CPU
48+
{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}.Release|x64.ActiveCfg = Release|Any CPU
49+
{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}.Release|x64.Build.0 = Release|Any CPU
50+
{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}.Release|x86.ActiveCfg = Release|Any CPU
51+
{CD514E39-C561-453D-AD75-1E9AE1D7A8C3}.Release|x86.Build.0 = Release|Any CPU
52+
{2AB3C72B-DE06-442A-942A-4D45C8300B3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
53+
{2AB3C72B-DE06-442A-942A-4D45C8300B3B}.Debug|Any CPU.Build.0 = Debug|Any CPU
54+
{2AB3C72B-DE06-442A-942A-4D45C8300B3B}.Debug|x64.ActiveCfg = Debug|Any CPU
55+
{2AB3C72B-DE06-442A-942A-4D45C8300B3B}.Debug|x64.Build.0 = Debug|Any CPU
56+
{2AB3C72B-DE06-442A-942A-4D45C8300B3B}.Debug|x86.ActiveCfg = Debug|Any CPU
57+
{2AB3C72B-DE06-442A-942A-4D45C8300B3B}.Debug|x86.Build.0 = Debug|Any CPU
58+
{2AB3C72B-DE06-442A-942A-4D45C8300B3B}.Release|Any CPU.ActiveCfg = Release|Any CPU
59+
{2AB3C72B-DE06-442A-942A-4D45C8300B3B}.Release|Any CPU.Build.0 = Release|Any CPU
60+
{2AB3C72B-DE06-442A-942A-4D45C8300B3B}.Release|x64.ActiveCfg = Release|Any CPU
61+
{2AB3C72B-DE06-442A-942A-4D45C8300B3B}.Release|x64.Build.0 = Release|Any CPU
62+
{2AB3C72B-DE06-442A-942A-4D45C8300B3B}.Release|x86.ActiveCfg = Release|Any CPU
63+
{2AB3C72B-DE06-442A-942A-4D45C8300B3B}.Release|x86.Build.0 = Release|Any CPU
64+
EndGlobalSection
65+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Release History
2+
3+
## 1.0.0-beta.1 (2025-05-15)
4+
5+
### Features Added
6+
7+
This package follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities:
8+
9+
- Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET.
10+
- Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing.
11+
- HTTP pipeline with custom policies.
12+
- Better error-handling.
13+
- Support uniform telemetry across all languages.
14+
15+
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).
16+
17+
> 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).
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>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Microsoft Azure CarbonOptimization management client library for .NET
2+
3+
Azure carbon optimization helps organizations measure and minimize the carbon impact of their Azure footprint. With this service, you can:
4+
5+
- Track and analyze emissions across Azure resources and subscriptions.
6+
- Access carbon emissions data and insights via REST APIs and CSV exports.
7+
- Optimize resource utilization to lower emissions and costs.
8+
9+
As part of Microsoft's commitment to sustainability and environmental responsibility, and by using it, you can align your cloud strategy with your sustainability goals and demonstrate your leadership in addressing the global climate challenge.
10+
11+
This library follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities:
12+
13+
- Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET.
14+
- Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing.
15+
- HTTP pipeline with custom policies.
16+
- Better error-handling.
17+
- Support uniform telemetry across all languages.
18+
19+
## Getting started
20+
21+
### Install the package
22+
23+
Install the Microsoft Azure CarbonOptimization management library for .NET with [NuGet](https://www.nuget.org/):
24+
25+
```dotnetcli
26+
dotnet add package Azure.ResourceManager.CarbonOptimization --prerelease
27+
```
28+
29+
### Prerequisites
30+
31+
* You must have an [Microsoft Azure subscription](https://azure.microsoft.com/free/dotnet/).
32+
33+
### Authenticate the Client
34+
35+
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).
36+
37+
## Key concepts
38+
39+
Key concepts of the Microsoft Azure SDK for .NET can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html)
40+
41+
## Documentation
42+
43+
Documentation is available to help you learn how to use this package:
44+
45+
- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
46+
- [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet).
47+
- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md).
48+
49+
## Examples
50+
51+
Code samples for using the management library for .NET can be found in the following locations
52+
- [.NET Management Library Code Samples](https://aka.ms/azuresdk-net-mgmt-samples)
53+
54+
## Troubleshooting
55+
56+
- File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-net/issues).
57+
- Check [previous questions](https://stackoverflow.com/questions/tagged/azure+.net) or ask new ones on Stack Overflow using Azure and .NET tags.
58+
59+
## Next steps
60+
61+
For more information about Microsoft Azure SDK, see [this website](https://azure.github.io/azure-sdk/).
62+
63+
## Contributing
64+
65+
For details on contributing to this repository, see the [contributing
66+
guide][cg].
67+
68+
This project welcomes contributions and suggestions. Most contributions
69+
require you to agree to a Contributor License Agreement (CLA) declaring
70+
that you have the right to, and actually do, grant us the rights to use
71+
your contribution. For details, visit <https://cla.microsoft.com>.
72+
73+
When you submit a pull request, a CLA-bot will automatically determine
74+
whether you need to provide a CLA and decorate the PR appropriately
75+
(for example, label, comment). Follow the instructions provided by the
76+
bot. You'll only need to do this action once across all repositories
77+
using our CLA.
78+
79+
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For
80+
more information, see the [Code of Conduct FAQ][coc_faq] or contact
81+
<[email protected]> with any other questions or comments.
82+
83+
<!-- LINKS -->
84+
[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md
85+
[coc]: https://opensource.microsoft.com/codeofconduct/
86+
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/

0 commit comments

Comments
 (0)