Component Current Billing Feature
An Application Insights component billing features Azure REST API version: 2015-05-01. Prior API version in Azure Native 1.x: 2015-05-01.
Example Usage
ComponentCurrentBillingFeaturesUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var componentCurrentBillingFeature = new AzureNative.Insights.ComponentCurrentBillingFeature("componentCurrentBillingFeature", new()
{
CurrentBillingFeatures = new[]
{
"Basic",
"Application Insights Enterprise",
},
DataVolumeCap = new AzureNative.Insights.Inputs.ApplicationInsightsComponentDataVolumeCapArgs
{
Cap = 100,
StopSendNotificationWhenHitCap = true,
},
ResourceGroupName = "my-resource-group",
ResourceName = "my-component",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewComponentCurrentBillingFeature(ctx, "componentCurrentBillingFeature", &insights.ComponentCurrentBillingFeatureArgs{
CurrentBillingFeatures: pulumi.StringArray{
pulumi.String("Basic"),
pulumi.String("Application Insights Enterprise"),
},
DataVolumeCap: &insights.ApplicationInsightsComponentDataVolumeCapArgs{
Cap: pulumi.Float64(100),
StopSendNotificationWhenHitCap: pulumi.Bool(true),
},
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("my-component"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.ComponentCurrentBillingFeature;
import com.pulumi.azurenative.insights.ComponentCurrentBillingFeatureArgs;
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 componentCurrentBillingFeature = new ComponentCurrentBillingFeature("componentCurrentBillingFeature", ComponentCurrentBillingFeatureArgs.builder()
.currentBillingFeatures(
"Basic",
"Application Insights Enterprise")
.dataVolumeCap(Map.ofEntries(
Map.entry("cap", 100),
Map.entry("stopSendNotificationWhenHitCap", true)
))
.resourceGroupName("my-resource-group")
.resourceName("my-component")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:ComponentCurrentBillingFeature myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures
Content copied to clipboard