azure-native.hanaonazure.SapMonitor
Explore with Pulumi AI
SAP monitor info on Azure (ARM properties and SAP monitor properties) API Version: 2020-02-07-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 sapMonitor = new AzureNative.HanaOnAzure.SapMonitor("sapMonitor", new()
{
EnableCustomerAnalytics = true,
Location = "westus",
LogAnalyticsWorkspaceArmId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace",
LogAnalyticsWorkspaceId = "00000000-0000-0000-0000-000000000000",
LogAnalyticsWorkspaceSharedKey = "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000==",
MonitorSubnet = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet",
ResourceGroupName = "myResourceGroup",
SapMonitorName = "mySapMonitor",
Tags =
{
{ "key", "value" },
},
});
});
package main
import (
hanaonazure "github.com/pulumi/pulumi-azure-native-sdk/hanaonazure"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hanaonazure.NewSapMonitor(ctx, "sapMonitor", &hanaonazure.SapMonitorArgs{
EnableCustomerAnalytics: pulumi.Bool(true),
Location: pulumi.String("westus"),
LogAnalyticsWorkspaceArmId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace"),
LogAnalyticsWorkspaceId: pulumi.String("00000000-0000-0000-0000-000000000000"),
LogAnalyticsWorkspaceSharedKey: pulumi.String("00000000000000000000000000000000000000000000000000000000000000000000000000000000000000=="),
MonitorSubnet: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"),
ResourceGroupName: pulumi.String("myResourceGroup"),
SapMonitorName: pulumi.String("mySapMonitor"),
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.hanaonazure.SapMonitor;
import com.pulumi.azurenative.hanaonazure.SapMonitorArgs;
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 sapMonitor = new SapMonitor("sapMonitor", SapMonitorArgs.builder()
.enableCustomerAnalytics(true)
.location("westus")
.logAnalyticsWorkspaceArmId("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace")
.logAnalyticsWorkspaceId("00000000-0000-0000-0000-000000000000")
.logAnalyticsWorkspaceSharedKey("00000000000000000000000000000000000000000000000000000000000000000000000000000000000000==")
.monitorSubnet("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")
.resourceGroupName("myResourceGroup")
.sapMonitorName("mySapMonitor")
.tags(Map.of("key", "value"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
sap_monitor = azure_native.hanaonazure.SapMonitor("sapMonitor",
enable_customer_analytics=True,
location="westus",
log_analytics_workspace_arm_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace",
log_analytics_workspace_id="00000000-0000-0000-0000-000000000000",
log_analytics_workspace_shared_key="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000==",
monitor_subnet="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet",
resource_group_name="myResourceGroup",
sap_monitor_name="mySapMonitor",
tags={
"key": "value",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sapMonitor = new azure_native.hanaonazure.SapMonitor("sapMonitor", {
enableCustomerAnalytics: true,
location: "westus",
logAnalyticsWorkspaceArmId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace",
logAnalyticsWorkspaceId: "00000000-0000-0000-0000-000000000000",
logAnalyticsWorkspaceSharedKey: "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000==",
monitorSubnet: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet",
resourceGroupName: "myResourceGroup",
sapMonitorName: "mySapMonitor",
tags: {
key: "value",
},
});
resources:
sapMonitor:
type: azure-native:hanaonazure:SapMonitor
properties:
enableCustomerAnalytics: true
location: westus
logAnalyticsWorkspaceArmId: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace
logAnalyticsWorkspaceId: 00000000-0000-0000-0000-000000000000
logAnalyticsWorkspaceSharedKey: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000==
monitorSubnet: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet
resourceGroupName: myResourceGroup
sapMonitorName: mySapMonitor
tags:
key: value
Create SapMonitor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SapMonitor(name: string, args: SapMonitorArgs, opts?: CustomResourceOptions);
@overload
def SapMonitor(resource_name: str,
args: SapMonitorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SapMonitor(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
enable_customer_analytics: Optional[bool] = None,
location: Optional[str] = None,
log_analytics_workspace_arm_id: Optional[str] = None,
log_analytics_workspace_id: Optional[str] = None,
log_analytics_workspace_shared_key: Optional[str] = None,
monitor_subnet: Optional[str] = None,
sap_monitor_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewSapMonitor(ctx *Context, name string, args SapMonitorArgs, opts ...ResourceOption) (*SapMonitor, error)
public SapMonitor(string name, SapMonitorArgs args, CustomResourceOptions? opts = null)
public SapMonitor(String name, SapMonitorArgs args)
public SapMonitor(String name, SapMonitorArgs args, CustomResourceOptions options)
type: azure-native:hanaonazure:SapMonitor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SapMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SapMonitorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SapMonitorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SapMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SapMonitorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sapMonitorResource = new AzureNative.Hanaonazure.SapMonitor("sapMonitorResource", new()
{
ResourceGroupName = "string",
EnableCustomerAnalytics = false,
Location = "string",
LogAnalyticsWorkspaceArmId = "string",
LogAnalyticsWorkspaceId = "string",
LogAnalyticsWorkspaceSharedKey = "string",
MonitorSubnet = "string",
SapMonitorName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := hanaonazure.NewSapMonitor(ctx, "sapMonitorResource", &hanaonazure.SapMonitorArgs{
ResourceGroupName: "string",
EnableCustomerAnalytics: false,
Location: "string",
LogAnalyticsWorkspaceArmId: "string",
LogAnalyticsWorkspaceId: "string",
LogAnalyticsWorkspaceSharedKey: "string",
MonitorSubnet: "string",
SapMonitorName: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var sapMonitorResource = new SapMonitor("sapMonitorResource", SapMonitorArgs.builder()
.resourceGroupName("string")
.enableCustomerAnalytics(false)
.location("string")
.logAnalyticsWorkspaceArmId("string")
.logAnalyticsWorkspaceId("string")
.logAnalyticsWorkspaceSharedKey("string")
.monitorSubnet("string")
.sapMonitorName("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
sap_monitor_resource = azure_native.hanaonazure.SapMonitor("sapMonitorResource",
resource_group_name=string,
enable_customer_analytics=False,
location=string,
log_analytics_workspace_arm_id=string,
log_analytics_workspace_id=string,
log_analytics_workspace_shared_key=string,
monitor_subnet=string,
sap_monitor_name=string,
tags={
string: string,
})
const sapMonitorResource = new azure_native.hanaonazure.SapMonitor("sapMonitorResource", {
resourceGroupName: "string",
enableCustomerAnalytics: false,
location: "string",
logAnalyticsWorkspaceArmId: "string",
logAnalyticsWorkspaceId: "string",
logAnalyticsWorkspaceSharedKey: "string",
monitorSubnet: "string",
sapMonitorName: "string",
tags: {
string: "string",
},
});
type: azure-native:hanaonazure:SapMonitor
properties:
enableCustomerAnalytics: false
location: string
logAnalyticsWorkspaceArmId: string
logAnalyticsWorkspaceId: string
logAnalyticsWorkspaceSharedKey: string
monitorSubnet: string
resourceGroupName: string
sapMonitorName: string
tags:
string: string
SapMonitor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SapMonitor resource accepts the following input properties:
- Resource
Group stringName - Name of the resource group.
- Enable
Customer boolAnalytics - The value indicating whether to send analytics to Microsoft
- Location string
- The geo-location where the resource lives
- Log
Analytics stringWorkspace Arm Id - The ARM ID of the Log Analytics Workspace that is used for monitoring
- Log
Analytics stringWorkspace Id - The workspace ID of the log analytics workspace to be used for monitoring
- string
- The shared key of the log analytics workspace that is used for monitoring
- Monitor
Subnet string - The subnet which the SAP monitor will be deployed in
- Sap
Monitor stringName - Name of the SAP monitor resource.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - Name of the resource group.
- Enable
Customer boolAnalytics - The value indicating whether to send analytics to Microsoft
- Location string
- The geo-location where the resource lives
- Log
Analytics stringWorkspace Arm Id - The ARM ID of the Log Analytics Workspace that is used for monitoring
- Log
Analytics stringWorkspace Id - The workspace ID of the log analytics workspace to be used for monitoring
- string
- The shared key of the log analytics workspace that is used for monitoring
- Monitor
Subnet string - The subnet which the SAP monitor will be deployed in
- Sap
Monitor stringName - Name of the SAP monitor resource.
- map[string]string
- Resource tags.
- resource
Group StringName - Name of the resource group.
- enable
Customer BooleanAnalytics - The value indicating whether to send analytics to Microsoft
- location String
- The geo-location where the resource lives
- log
Analytics StringWorkspace Arm Id - The ARM ID of the Log Analytics Workspace that is used for monitoring
- log
Analytics StringWorkspace Id - The workspace ID of the log analytics workspace to be used for monitoring
- String
- The shared key of the log analytics workspace that is used for monitoring
- monitor
Subnet String - The subnet which the SAP monitor will be deployed in
- sap
Monitor StringName - Name of the SAP monitor resource.
- Map<String,String>
- Resource tags.
- resource
Group stringName - Name of the resource group.
- enable
Customer booleanAnalytics - The value indicating whether to send analytics to Microsoft
- location string
- The geo-location where the resource lives
- log
Analytics stringWorkspace Arm Id - The ARM ID of the Log Analytics Workspace that is used for monitoring
- log
Analytics stringWorkspace Id - The workspace ID of the log analytics workspace to be used for monitoring
- string
- The shared key of the log analytics workspace that is used for monitoring
- monitor
Subnet string - The subnet which the SAP monitor will be deployed in
- sap
Monitor stringName - Name of the SAP monitor resource.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - Name of the resource group.
- enable_
customer_ boolanalytics - The value indicating whether to send analytics to Microsoft
- location str
- The geo-location where the resource lives
- log_
analytics_ strworkspace_ arm_ id - The ARM ID of the Log Analytics Workspace that is used for monitoring
- log_
analytics_ strworkspace_ id - The workspace ID of the log analytics workspace to be used for monitoring
- str
- The shared key of the log analytics workspace that is used for monitoring
- monitor_
subnet str - The subnet which the SAP monitor will be deployed in
- sap_
monitor_ strname - Name of the SAP monitor resource.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - Name of the resource group.
- enable
Customer BooleanAnalytics - The value indicating whether to send analytics to Microsoft
- location String
- The geo-location where the resource lives
- log
Analytics StringWorkspace Arm Id - The ARM ID of the Log Analytics Workspace that is used for monitoring
- log
Analytics StringWorkspace Id - The workspace ID of the log analytics workspace to be used for monitoring
- String
- The shared key of the log analytics workspace that is used for monitoring
- monitor
Subnet String - The subnet which the SAP monitor will be deployed in
- sap
Monitor StringName - Name of the SAP monitor resource.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the SapMonitor resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Resource stringGroup Name - The name of the resource group the SAP Monitor resources get deployed into.
- Name string
- The name of the resource
- Provisioning
State string - State of provisioning of the HanaInstance
- Sap
Monitor stringCollector Version - The version of the payload running in the Collector VM
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Resource stringGroup Name - The name of the resource group the SAP Monitor resources get deployed into.
- Name string
- The name of the resource
- Provisioning
State string - State of provisioning of the HanaInstance
- Sap
Monitor stringCollector Version - The version of the payload running in the Collector VM
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Resource StringGroup Name - The name of the resource group the SAP Monitor resources get deployed into.
- name String
- The name of the resource
- provisioning
State String - State of provisioning of the HanaInstance
- sap
Monitor StringCollector Version - The version of the payload running in the Collector VM
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Resource stringGroup Name - The name of the resource group the SAP Monitor resources get deployed into.
- name string
- The name of the resource
- provisioning
State string - State of provisioning of the HanaInstance
- sap
Monitor stringCollector Version - The version of the payload running in the Collector VM
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
resource_ strgroup_ name - The name of the resource group the SAP Monitor resources get deployed into.
- name str
- The name of the resource
- provisioning_
state str - State of provisioning of the HanaInstance
- sap_
monitor_ strcollector_ version - The version of the payload running in the Collector VM
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Resource StringGroup Name - The name of the resource group the SAP Monitor resources get deployed into.
- name String
- The name of the resource
- provisioning
State String - State of provisioning of the HanaInstance
- sap
Monitor StringCollector Version - The version of the payload running in the Collector VM
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:hanaonazure:SapMonitor myHanaInstance /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0