Anomaly Alert
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());
}
}
Content copied to clipboard
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
Content copied to clipboard