Monitor Args
SAP monitor info on Azure (ARM properties and SAP monitor properties) API Version: 2021-12-01-preview.
Example Usage
Create a SAP monitor
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var monitor = new AzureNative.Workloads.Monitor("monitor", new()
{
AppLocation = "westus",
Location = "westus",
LogAnalyticsWorkspaceArmId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace",
ManagedResourceGroupConfiguration = new AzureNative.Workloads.Inputs.ManagedRGConfigurationArgs
{
Name = "myManagedRg",
},
MonitorName = "mySapMonitor",
MonitorSubnet = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet",
ResourceGroupName = "myResourceGroup",
RoutingPreference = "RouteAll",
Tags =
{
{ "key", "value" },
},
});
});
package main
import (
workloads "github.com/pulumi/pulumi-azure-native-sdk/workloads"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := workloads.Newmonitor(ctx, "monitor", &workloads.monitorArgs{
AppLocation: pulumi.String("westus"),
Location: pulumi.String("westus"),
LogAnalyticsWorkspaceArmId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace"),
ManagedResourceGroupConfiguration: &workloads.ManagedRGConfigurationArgs{
Name: pulumi.String("myManagedRg"),
},
MonitorName: pulumi.String("mySapMonitor"),
MonitorSubnet: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"),
ResourceGroupName: pulumi.String("myResourceGroup"),
RoutingPreference: pulumi.String("RouteAll"),
Tags: pulumi.StringMap{
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.workloads.monitor;
import com.pulumi.azurenative.workloads.MonitorArgs;
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 monitor = new Monitor("monitor", MonitorArgs.builder()
.appLocation("westus")
.location("westus")
.logAnalyticsWorkspaceArmId("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace")
.managedResourceGroupConfiguration(Map.of("name", "myManagedRg"))
.monitorName("mySapMonitor")
.monitorSubnet("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")
.resourceGroupName("myResourceGroup")
.routingPreference("RouteAll")
.tags(Map.of("key", "value"))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:workloads:monitor mySapMonitor /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor
Constructors
Properties
The SAP monitor resources will be deployed in the SAP monitoring region. The subnet region should be same as the SAP monitoring region.
Managed service identity (user assigned identities)
The ARM ID of the Log Analytics Workspace that is used for SAP monitoring.
Managed resource group configuration
Name of the SAP monitor resource.
The subnet which the SAP monitor will be deployed in
The name of the resource group. The name is case insensitive.
Sets the routing preference of the SAP monitor. By default only RFC1918 traffic is routed to the customer VNET.
Sets the preference for zone redundancy on resources created for the SAP monitor. By default resources will be created which do not support zone redundancy.