ArmPolicyInsightsModelFactory.PolicyRemediationData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of PolicyRemediationData.
public static Azure.ResourceManager.PolicyInsights.PolicyRemediationData PolicyRemediationData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.Core.ResourceIdentifier policyAssignmentId = default, string policyDefinitionReferenceId = default, Azure.ResourceManager.PolicyInsights.Models.ResourceDiscoveryMode? resourceDiscoveryMode = default, string provisioningState = default, DateTimeOffset? createdOn = default, DateTimeOffset? lastUpdatedOn = default, System.Collections.Generic.IEnumerable<Azure.Core.AzureLocation> filterLocations = default, Azure.ResourceManager.PolicyInsights.Models.RemediationDeploymentSummary deploymentStatus = default, string statusMessage = default, string correlationId = default, int? resourceCount = default, int? parallelDeployments = default, float? failureThresholdPercentage = default);
static member PolicyRemediationData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.Core.ResourceIdentifier * string * Nullable<Azure.ResourceManager.PolicyInsights.Models.ResourceDiscoveryMode> * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<Azure.Core.AzureLocation> * Azure.ResourceManager.PolicyInsights.Models.RemediationDeploymentSummary * string * string * Nullable<int> * Nullable<int> * Nullable<single> -> Azure.ResourceManager.PolicyInsights.PolicyRemediationData
Public Shared Function PolicyRemediationData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional policyAssignmentId As ResourceIdentifier = Nothing, Optional policyDefinitionReferenceId As String = Nothing, Optional resourceDiscoveryMode As Nullable(Of ResourceDiscoveryMode) = Nothing, Optional provisioningState As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastUpdatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional filterLocations As IEnumerable(Of AzureLocation) = Nothing, Optional deploymentStatus As RemediationDeploymentSummary = Nothing, Optional statusMessage As String = Nothing, Optional correlationId As String = Nothing, Optional resourceCount As Nullable(Of Integer) = Nothing, Optional parallelDeployments As Nullable(Of Integer) = Nothing, Optional failureThresholdPercentage As Nullable(Of Single) = Nothing) As PolicyRemediationData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- policyAssignmentId
- ResourceIdentifier
The resource ID of the policy assignment that should be remediated.
- policyDefinitionReferenceId
- String
The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
- resourceDiscoveryMode
- Nullable<ResourceDiscoveryMode>
The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
- provisioningState
- String
The status of the remediation.
- createdOn
- Nullable<DateTimeOffset>
The time at which the remediation was created.
- lastUpdatedOn
- Nullable<DateTimeOffset>
The time at which the remediation was last updated.
- filterLocations
- IEnumerable<AzureLocation>
The filters that will be applied to determine which resources to remediate.
- deploymentStatus
- RemediationDeploymentSummary
The deployment status summary for all deployments created by the remediation.
- statusMessage
- String
The remediation status message. Provides additional details regarding the state of the remediation.
- correlationId
- String
The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
Returns
A new PolicyRemediationData instance for mocking.
Applies to
Azure SDK for .NET