The azure monitor status response.
Uses Azure REST API version 2024-08-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-08-01-preview.
Other available API versions: 2025-01-15-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native hdinsight [ApiVersion]. See the version guide for details.
Example Usage
Enable azure monitoring agent
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var extensionAzureMonitorAgentStatus = new AzureNative.HDInsight.ExtensionAzureMonitorAgentStatus("extensionAzureMonitorAgentStatus", new()
{
ClusterName = "cluster1",
PrimaryKey = "**********",
ResourceGroupName = "rg1",
WorkspaceId = "a2090ead-8c9f-4fba-b70e-533e3e003163",
});
});
package main
import (
hdinsight "github.com/pulumi/pulumi-azure-native-sdk/hdinsight/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hdinsight.NewExtensionAzureMonitorAgentStatus(ctx, "extensionAzureMonitorAgentStatus", &hdinsight.ExtensionAzureMonitorAgentStatusArgs{
ClusterName: pulumi.String("cluster1"),
PrimaryKey: pulumi.String("**********"),
ResourceGroupName: pulumi.String("rg1"),
WorkspaceId: pulumi.String("a2090ead-8c9f-4fba-b70e-533e3e003163"),
})
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.hdinsight.ExtensionAzureMonitorAgentStatus;
import com.pulumi.azurenative.hdinsight.ExtensionAzureMonitorAgentStatusArgs;
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 extensionAzureMonitorAgentStatus = new ExtensionAzureMonitorAgentStatus("extensionAzureMonitorAgentStatus", ExtensionAzureMonitorAgentStatusArgs.builder()
.clusterName("cluster1")
.primaryKey("**********")
.resourceGroupName("rg1")
.workspaceId("a2090ead-8c9f-4fba-b70e-533e3e003163")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const extensionAzureMonitorAgentStatus = new azure_native.hdinsight.ExtensionAzureMonitorAgentStatus("extensionAzureMonitorAgentStatus", {
clusterName: "cluster1",
primaryKey: "**********",
resourceGroupName: "rg1",
workspaceId: "a2090ead-8c9f-4fba-b70e-533e3e003163",
});
import pulumi
import pulumi_azure_native as azure_native
extension_azure_monitor_agent_status = azure_native.hdinsight.ExtensionAzureMonitorAgentStatus("extensionAzureMonitorAgentStatus",
cluster_name="cluster1",
primary_key="**********",
resource_group_name="rg1",
workspace_id="a2090ead-8c9f-4fba-b70e-533e3e003163")
resources:
extensionAzureMonitorAgentStatus:
type: azure-native:hdinsight:ExtensionAzureMonitorAgentStatus
properties:
clusterName: cluster1
primaryKey: '**********'
resourceGroupName: rg1
workspaceId: a2090ead-8c9f-4fba-b70e-533e3e003163
Create ExtensionAzureMonitorAgentStatus Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ExtensionAzureMonitorAgentStatus(name: string, args: ExtensionAzureMonitorAgentStatusArgs, opts?: CustomResourceOptions);@overload
def ExtensionAzureMonitorAgentStatus(resource_name: str,
args: ExtensionAzureMonitorAgentStatusArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ExtensionAzureMonitorAgentStatus(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
primary_key: Optional[str] = None,
selected_configurations: Optional[AzureMonitorSelectedConfigurationsArgs] = None,
workspace_id: Optional[str] = None)func NewExtensionAzureMonitorAgentStatus(ctx *Context, name string, args ExtensionAzureMonitorAgentStatusArgs, opts ...ResourceOption) (*ExtensionAzureMonitorAgentStatus, error)public ExtensionAzureMonitorAgentStatus(string name, ExtensionAzureMonitorAgentStatusArgs args, CustomResourceOptions? opts = null)
public ExtensionAzureMonitorAgentStatus(String name, ExtensionAzureMonitorAgentStatusArgs args)
public ExtensionAzureMonitorAgentStatus(String name, ExtensionAzureMonitorAgentStatusArgs args, CustomResourceOptions options)
type: azure-native:hdinsight:ExtensionAzureMonitorAgentStatus
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 ExtensionAzureMonitorAgentStatusArgs
- 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 ExtensionAzureMonitorAgentStatusArgs
- 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 ExtensionAzureMonitorAgentStatusArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExtensionAzureMonitorAgentStatusArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ExtensionAzureMonitorAgentStatusArgs
- 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 extensionAzureMonitorAgentStatusResource = new AzureNative.HDInsight.ExtensionAzureMonitorAgentStatus("extensionAzureMonitorAgentStatusResource", new()
{
ClusterName = "string",
ResourceGroupName = "string",
PrimaryKey = "string",
SelectedConfigurations = new AzureNative.HDInsight.Inputs.AzureMonitorSelectedConfigurationsArgs
{
ConfigurationVersion = "string",
GlobalConfigurations =
{
{ "string", "string" },
},
TableList = new[]
{
new AzureNative.HDInsight.Inputs.AzureMonitorTableConfigurationArgs
{
Name = "string",
},
},
},
WorkspaceId = "string",
});
example, err := hdinsight.NewExtensionAzureMonitorAgentStatus(ctx, "extensionAzureMonitorAgentStatusResource", &hdinsight.ExtensionAzureMonitorAgentStatusArgs{
ClusterName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
PrimaryKey: pulumi.String("string"),
SelectedConfigurations: &hdinsight.AzureMonitorSelectedConfigurationsArgs{
ConfigurationVersion: pulumi.String("string"),
GlobalConfigurations: pulumi.StringMap{
"string": pulumi.String("string"),
},
TableList: hdinsight.AzureMonitorTableConfigurationArray{
&hdinsight.AzureMonitorTableConfigurationArgs{
Name: pulumi.String("string"),
},
},
},
WorkspaceId: pulumi.String("string"),
})
var extensionAzureMonitorAgentStatusResource = new ExtensionAzureMonitorAgentStatus("extensionAzureMonitorAgentStatusResource", ExtensionAzureMonitorAgentStatusArgs.builder()
.clusterName("string")
.resourceGroupName("string")
.primaryKey("string")
.selectedConfigurations(AzureMonitorSelectedConfigurationsArgs.builder()
.configurationVersion("string")
.globalConfigurations(Map.of("string", "string"))
.tableList(AzureMonitorTableConfigurationArgs.builder()
.name("string")
.build())
.build())
.workspaceId("string")
.build());
extension_azure_monitor_agent_status_resource = azure_native.hdinsight.ExtensionAzureMonitorAgentStatus("extensionAzureMonitorAgentStatusResource",
cluster_name="string",
resource_group_name="string",
primary_key="string",
selected_configurations={
"configuration_version": "string",
"global_configurations": {
"string": "string",
},
"table_list": [{
"name": "string",
}],
},
workspace_id="string")
const extensionAzureMonitorAgentStatusResource = new azure_native.hdinsight.ExtensionAzureMonitorAgentStatus("extensionAzureMonitorAgentStatusResource", {
clusterName: "string",
resourceGroupName: "string",
primaryKey: "string",
selectedConfigurations: {
configurationVersion: "string",
globalConfigurations: {
string: "string",
},
tableList: [{
name: "string",
}],
},
workspaceId: "string",
});
type: azure-native:hdinsight:ExtensionAzureMonitorAgentStatus
properties:
clusterName: string
primaryKey: string
resourceGroupName: string
selectedConfigurations:
configurationVersion: string
globalConfigurations:
string: string
tableList:
- name: string
workspaceId: string
ExtensionAzureMonitorAgentStatus 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 ExtensionAzureMonitorAgentStatus resource accepts the following input properties:
- Cluster
Name string - The name of the cluster.
- Resource
Group stringName - The name of the resource group.
- Primary
Key string - The Log Analytics workspace key.
- Selected
Configurations Pulumi.Azure Native. HDInsight. Inputs. Azure Monitor Selected Configurations - The selected configurations.
- Workspace
Id string - The Log Analytics workspace ID.
- Cluster
Name string - The name of the cluster.
- Resource
Group stringName - The name of the resource group.
- Primary
Key string - The Log Analytics workspace key.
- Selected
Configurations AzureMonitor Selected Configurations Args - The selected configurations.
- Workspace
Id string - The Log Analytics workspace ID.
- cluster
Name String - The name of the cluster.
- resource
Group StringName - The name of the resource group.
- primary
Key String - The Log Analytics workspace key.
- selected
Configurations AzureMonitor Selected Configurations - The selected configurations.
- workspace
Id String - The Log Analytics workspace ID.
- cluster
Name string - The name of the cluster.
- resource
Group stringName - The name of the resource group.
- primary
Key string - The Log Analytics workspace key.
- selected
Configurations AzureMonitor Selected Configurations - The selected configurations.
- workspace
Id string - The Log Analytics workspace ID.
- cluster_
name str - The name of the cluster.
- resource_
group_ strname - The name of the resource group.
- primary_
key str - The Log Analytics workspace key.
- selected_
configurations AzureMonitor Selected Configurations Args - The selected configurations.
- workspace_
id str - The Log Analytics workspace ID.
- cluster
Name String - The name of the cluster.
- resource
Group StringName - The name of the resource group.
- primary
Key String - The Log Analytics workspace key.
- selected
Configurations Property Map - The selected configurations.
- workspace
Id String - The Log Analytics workspace ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the ExtensionAzureMonitorAgentStatus resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cluster
Monitoring boolEnabled - The status of the monitor on the HDInsight cluster.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cluster
Monitoring boolEnabled - The status of the monitor on the HDInsight cluster.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- cluster
Monitoring BooleanEnabled - The status of the monitor on the HDInsight cluster.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- cluster
Monitoring booleanEnabled - The status of the monitor on the HDInsight cluster.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- cluster_
monitoring_ boolenabled - The status of the monitor on the HDInsight cluster.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- cluster
Monitoring BooleanEnabled - The status of the monitor on the HDInsight cluster.
Supporting Types
AzureMonitorSelectedConfigurations, AzureMonitorSelectedConfigurationsArgs
The selected configurations for azure monitor.- Configuration
Version string - The configuration version.
- Global
Configurations Dictionary<string, string> - The global configurations of selected configurations.
- Table
List List<Pulumi.Azure Native. HDInsight. Inputs. Azure Monitor Table Configuration> - The table list.
- Configuration
Version string - The configuration version.
- Global
Configurations map[string]string - The global configurations of selected configurations.
- Table
List []AzureMonitor Table Configuration - The table list.
- configuration
Version String - The configuration version.
- global
Configurations Map<String,String> - The global configurations of selected configurations.
- table
List List<AzureMonitor Table Configuration> - The table list.
- configuration
Version string - The configuration version.
- global
Configurations {[key: string]: string} - The global configurations of selected configurations.
- table
List AzureMonitor Table Configuration[] - The table list.
- configuration_
version str - The configuration version.
- global_
configurations Mapping[str, str] - The global configurations of selected configurations.
- table_
list Sequence[AzureMonitor Table Configuration] - The table list.
- configuration
Version String - The configuration version.
- global
Configurations Map<String> - The global configurations of selected configurations.
- table
List List<Property Map> - The table list.
AzureMonitorSelectedConfigurationsResponse, AzureMonitorSelectedConfigurationsResponseArgs
The selected configurations for azure monitor.- Configuration
Version string - The configuration version.
- Global
Configurations Dictionary<string, string> - The global configurations of selected configurations.
- Table
List List<Pulumi.Azure Native. HDInsight. Inputs. Azure Monitor Table Configuration Response> - The table list.
- Configuration
Version string - The configuration version.
- Global
Configurations map[string]string - The global configurations of selected configurations.
- Table
List []AzureMonitor Table Configuration Response - The table list.
- configuration
Version String - The configuration version.
- global
Configurations Map<String,String> - The global configurations of selected configurations.
- table
List List<AzureMonitor Table Configuration Response> - The table list.
- configuration
Version string - The configuration version.
- global
Configurations {[key: string]: string} - The global configurations of selected configurations.
- table
List AzureMonitor Table Configuration Response[] - The table list.
- configuration_
version str - The configuration version.
- global_
configurations Mapping[str, str] - The global configurations of selected configurations.
- table_
list Sequence[AzureMonitor Table Configuration Response] - The table list.
- configuration
Version String - The configuration version.
- global
Configurations Map<String> - The global configurations of selected configurations.
- table
List List<Property Map> - The table list.
AzureMonitorTableConfiguration, AzureMonitorTableConfigurationArgs
The table configuration for the Log Analytics integration.- Name string
- The name.
- Name string
- The name.
- name String
- The name.
- name string
- The name.
- name str
- The name.
- name String
- The name.
AzureMonitorTableConfigurationResponse, AzureMonitorTableConfigurationResponseArgs
The table configuration for the Log Analytics integration.- Name string
- The name.
- Name string
- The name.
- name String
- The name.
- name string
- The name.
- name str
- The name.
- name String
- The name.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:hdinsight:ExtensionAzureMonitorAgentStatus myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitorAgent
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
