Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecurityInsights[GA] #19359

Merged
merged 3 commits into from
Mar 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eng/mgmt/mgmtmetadata/securityinsights_resource-manager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/securityinsights/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=E:\azure-sdk-for-net\sdk
2021-01-21 16:07:05 UTC
2021-03-09 04:45:16 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: 772c440159d9ab5775c80e304f7e803cae84aa7d
Commit: fb680afc380cccb44a59ed277232ad4224ac809b
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<!-- Please do not move/edit code below this line -->

<PropertyGroup>
<Version>1.0.0-preview.2</Version>
<Version>1.0.0</Version>
<PackageId>Microsoft.Azure.Management.SecurityInsights</PackageId>
<Description>Azure Resource Manager client SDK for Azure resource provider SecurityInsights</Description>
<PackageTags>azure;management;arm;resource manager;securityinsights</PackageTags>
<PackageReleaseNotes>Added DataConnector (Teams), Moved Actions API</PackageReleaseNotes>
<PackageReleaseNotes>Final update for GA</PackageReleaseNotes>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>$(SdkTargetFx)</TargetFrameworks>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
[assembly: AssemblyTitle("Microsoft Azure Security Insights Library")]
[assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Security Insights Resources.")]

[assembly: AssemblyVersion("1.0.0.2")]
[assembly: AssemblyFileVersion("1.0.0.2")]
[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyFileVersion("1.0.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Microsoft Azure .NET SDK")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ public class ActionsTests : TestBase
{
#region Test setup

private static string ResourceGroup = "ndicola-azsposh";
private static string WorkspaceName = "azsposh";
private static string ActionLAResourceID = "/subscriptions/1c61ccbf-70b3-45a3-a1fb-848ce46d70a6/resourceGroups/ndicola-azsposh/providers/Microsoft.Logic/workflows/Block-AADUser";
private static string ActionLATriggerUri = "https://prod-13.westus.logic.azure.com:443/workflows/826a95b1b84c4ffbaf3af3dd88fe96b5/triggers/When_a_response_to_an_Azure_Sentinel_alert_is_triggered/paths/invoke?api-version=2018-07-01-preview&sp=%2Ftriggers%2FWhen_a_response_to_an_Azure_Sentinel_alert_is_triggered%2Frun&sv=1.0&sig=pK23xWl4uJT4RWs7zopxiP0Z7CpIfCDZEanL-mEyy1E";
private static string ResourceGroup = "ndicola-pfsense";
private static string WorkspaceName = "ndicola-pfsense";
private static string ActionLAResourceID = "/subscriptions/1c61ccbf-70b3-45a3-a1fb-848ce46d70a6/resourceGroups/ndicola-pfsense/providers/Microsoft.Logic/workflows/aaduserinfo";
private static string ActionLATriggerUri = "https://prod-100.westus.logic.azure.com:443/workflows/7730de943c5746e3b1f202de83be93d0/triggers/When_a_response_to_an_Azure_Sentinel_alert_is_triggered/paths/invoke?api-version=2018-07-01-preview&sp=%2Ftriggers%2FWhen_a_response_to_an_Azure_Sentinel_alert_is_triggered%2Frun&sv=1.0&sig=m3QgR_GOY29-AFc-2MaP987Nca_9zlfdXB8DEhrfLxA";


public static TestEnvironment TestEnvironment { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class AlertRuleTemplates : TestBase
{
#region Test setup

private static string ResourceGroup = "ndicola-azsposh";
private static string WorkspaceName = "azsposh";
private static string ResourceGroup = "ndicola-pfsense";
private static string WorkspaceName = "ndicola-pfsense";

public static TestEnvironment TestEnvironment { get; private set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public class AlertRulesTests : TestBase
{
#region Test setup

private static string ResourceGroup = "ndicola-azsposh";
private static string WorkspaceName = "azsposh";
private static string ActionLAResourceID = "/subscriptions/1c61ccbf-70b3-45a3-a1fb-848ce46d70a6/resourceGroups/ndicola-azsposh/providers/Microsoft.Logic/workflows/Block-AADUser";
private static string ActionLATriggerUri = "https://prod-13.westus.logic.azure.com:443/workflows/826a95b1b84c4ffbaf3af3dd88fe96b5/triggers/When_a_response_to_an_Azure_Sentinel_alert_is_triggered/paths/invoke?api-version=2018-07-01-preview&sp=%2Ftriggers%2FWhen_a_response_to_an_Azure_Sentinel_alert_is_triggered%2Frun&sv=1.0&sig=pK23xWl4uJT4RWs7zopxiP0Z7CpIfCDZEanL-mEyy1E";
private static string ResourceGroup = "ndicola-pfsense";
private static string WorkspaceName = "ndicola-pfsense";
private static string ActionLAResourceID = "/subscriptions/1c61ccbf-70b3-45a3-a1fb-848ce46d70a6/resourceGroups/ndicola-pfsense/providers/Microsoft.Logic/workflows/aaduserinfo";
private static string ActionLATriggerUri = "https://prod-100.westus.logic.azure.com:443/workflows/7730de943c5746e3b1f202de83be93d0/triggers/When_a_response_to_an_Azure_Sentinel_alert_is_triggered/paths/invoke?api-version=2018-07-01-preview&sp=%2Ftriggers%2FWhen_a_response_to_an_Azure_Sentinel_alert_is_triggered%2Frun&sv=1.0&sig=m3QgR_GOY29-AFc-2MaP987Nca_9zlfdXB8DEhrfLxA";

public static TestEnvironment TestEnvironment { get; private set; }

Expand Down Expand Up @@ -85,8 +85,19 @@ public void AlertRules_Get()
{
var SecurityInsightsClient = GetSecurityInsightsClient(context);

var alertRule = SecurityInsightsClient.AlertRules.Get(ResourceGroup, WorkspaceName, "2830422a-6217-4a1e-8626-6b97ca8bba12");
var RuleId = Guid.NewGuid().ToString();
var Rule = new MicrosoftSecurityIncidentCreationAlertRule()
{
ProductFilter = "Microsoft Cloud App Security",
Enabled = true,
DisplayName = "SDKTest"
};

SecurityInsightsClient.AlertRules.CreateOrUpdate(ResourceGroup, WorkspaceName, RuleId, Rule);

var alertRule = SecurityInsightsClient.AlertRules.Get(ResourceGroup, WorkspaceName, RuleId);
ValidateAlertRule(alertRule);
SecurityInsightsClient.AlertRules.Delete(ResourceGroup, WorkspaceName, RuleId);

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public class BookmarksTests : TestBase
{
#region Test setup

private static string ResourceGroup = "ndicola-azsposh";
private static string WorkspaceName = "azsposh";
private static string ResourceGroup = "ndicola-pfsense";
private static string WorkspaceName = "ndicola-pfsense";

public static TestEnvironment TestEnvironment { get; private set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public class DataConnectorsTests : TestBase
{
#region Test setup

private static string ResourceGroup = "ndicola-azsposh";
private static string WorkspaceName = "azsposh";
private static string ResourceGroup = "ndicola-pfsense";
private static string WorkspaceName = "ndicola-pfsense";

public static TestEnvironment TestEnvironment { get; private set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public class IncidentCommentsTests : TestBase
{
#region Test setup

private static string ResourceGroup = "ndicola-azsposh";
private static string WorkspaceName = "azsposh";
private static string ResourceGroup = "ndicola-pfsense";
private static string WorkspaceName = "ndicola-pfsense";

public static TestEnvironment TestEnvironment { get; private set; }

private static SecurityInsightsClient GetSecurityInsightsClient(MockContext context)
Expand Down
Loading