-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding ability to define a custom AzureEnvironment. (#2579)
* custom cloud support - addressing review comments * coderefactor * remove unused declaratives * Add unit test + address review comments * refactor * add interface for cloud + endpoints * refactor from codefactor comment * cleanup * Add Log Analytics Endpoint for Custom Cloud * add unit test + fix code quality failure * code factor * code quality fix --------- Co-authored-by: Suraiya Hameed <[email protected]>
- Loading branch information
1 parent
22b0792
commit 2778e84
Showing
31 changed files
with
1,129 additions
and
259 deletions.
There are no files selected for viewing
5 changes: 4 additions & 1 deletion
5
src/Promitor.Agents.ResourceDiscovery/Configuration/AzureLandscape.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
using System.Collections.Generic; | ||
using Promitor.Core.Configuration; | ||
using Promitor.Core.Extensions; | ||
using Promitor.Core.Serialization.Enum; | ||
|
||
namespace Promitor.Agents.ResourceDiscovery.Configuration | ||
{ | ||
public class AzureLandscape | ||
public class AzureLandscape : IAzureCloudEndpoints | ||
{ | ||
public string TenantId { get; set; } | ||
public List<string> Subscriptions { get; set; } | ||
public AzureCloud Cloud { get; set; } = AzureCloud.Global; | ||
public AzureEndpoints Endpoints { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.