ArmSecurityCenterModelFactory.CustomRecommendationData Method

Definition

public static Azure.ResourceManager.SecurityCenter.CustomRecommendationData CustomRecommendationData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string query = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.Models.RecommendationSupportedClouds> cloudProviders = default, Azure.ResourceManager.SecurityCenter.Models.CustomRecommendationSeverity? severity = default, Azure.ResourceManager.SecurityCenter.Models.CustomRecommendationSecurityIssue? securityIssue = default, string displayName = default, string description = default, string remediationDescription = default, string assessmentKey = default);
static member CustomRecommendationData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * seq<Azure.ResourceManager.SecurityCenter.Models.RecommendationSupportedClouds> * Nullable<Azure.ResourceManager.SecurityCenter.Models.CustomRecommendationSeverity> * Nullable<Azure.ResourceManager.SecurityCenter.Models.CustomRecommendationSecurityIssue> * string * string * string * string -> Azure.ResourceManager.SecurityCenter.CustomRecommendationData
Public Shared Function CustomRecommendationData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional query As String = Nothing, Optional cloudProviders As IEnumerable(Of RecommendationSupportedClouds) = Nothing, Optional severity As Nullable(Of CustomRecommendationSeverity) = Nothing, Optional securityIssue As Nullable(Of CustomRecommendationSecurityIssue) = Nothing, Optional displayName As String = Nothing, Optional description As String = Nothing, Optional remediationDescription As String = Nothing, Optional assessmentKey As String = Nothing) As CustomRecommendationData

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

query
String

KQL query representing the Recommendation results required.

cloudProviders
IEnumerable<RecommendationSupportedClouds>

List of all standard supported clouds.

severity
Nullable<CustomRecommendationSeverity>

The severity to relate to the assessments generated by this Recommendation.

securityIssue
Nullable<CustomRecommendationSecurityIssue>

The severity to relate to the assessments generated by this Recommendation.

displayName
String

The display name of the assessments generated by this Recommendation.

description
String

The description to relate to the assessments generated by this Recommendation.

remediationDescription
String

The remediation description to relate to the assessments generated by this Recommendation.

assessmentKey
String

The assessment metadata key used when an assessment is generated for this Recommendation.

Returns

A new CustomRecommendationData instance for mocking.

Applies to