AnomalyAlert

class AnomalyAlert : KotlinCustomResource

Manages a Cost Anomaly Alert.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.costmanagement.AnomalyAlert;
import com.pulumi.azure.costmanagement.AnomalyAlertArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new AnomalyAlert("example", AnomalyAlertArgs.builder()
.displayName("Alert DisplayName")
.emailAddresses("example@test.net")
.emailSubject("My Test Anomaly Alert")
.build());
}
}

Import

Cost Anomaly Alerts can be imported using the resource id, e.g.

$ pulumi import azure:costmanagement/anomalyAlert:AnomalyAlert example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyanomalybyresourcegroup

Properties

Link copied to clipboard
val displayName: Output<String>

The display name which should be used for this Cost Anomaly Alert.

Link copied to clipboard
val emailAddresses: Output<List<String>>

Specifies a list of email addresses which the Anomaly Alerts are send to.

Link copied to clipboard
val emailSubject: Output<String>

The email subject of the Cost Anomaly Alerts. Maximum length of the subject is 70.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val message: Output<String>?

The message of the Cost Anomaly Alert. Maximum length of the message is 250.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Cost Anomaly Alert. Changing this forces a new resource to be created. The name can contain only lowercase letters, numbers and hyphens.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>