1. Packages
  2. Azure Native
  3. API Docs
  4. monitor
  5. getManagementGroupDiagnosticSetting
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.monitor.getManagementGroupDiagnosticSetting

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

Gets the active management group diagnostic settings for the specified resource.

Uses Azure REST API version 2021-05-01-preview.

Using getManagementGroupDiagnosticSetting

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getManagementGroupDiagnosticSetting(args: GetManagementGroupDiagnosticSettingArgs, opts?: InvokeOptions): Promise<GetManagementGroupDiagnosticSettingResult>
function getManagementGroupDiagnosticSettingOutput(args: GetManagementGroupDiagnosticSettingOutputArgs, opts?: InvokeOptions): Output<GetManagementGroupDiagnosticSettingResult>
Copy
def get_management_group_diagnostic_setting(management_group_id: Optional[str] = None,
                                            name: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetManagementGroupDiagnosticSettingResult
def get_management_group_diagnostic_setting_output(management_group_id: Optional[pulumi.Input[str]] = None,
                                            name: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetManagementGroupDiagnosticSettingResult]
Copy
func LookupManagementGroupDiagnosticSetting(ctx *Context, args *LookupManagementGroupDiagnosticSettingArgs, opts ...InvokeOption) (*LookupManagementGroupDiagnosticSettingResult, error)
func LookupManagementGroupDiagnosticSettingOutput(ctx *Context, args *LookupManagementGroupDiagnosticSettingOutputArgs, opts ...InvokeOption) LookupManagementGroupDiagnosticSettingResultOutput
Copy

> Note: This function is named LookupManagementGroupDiagnosticSetting in the Go SDK.

public static class GetManagementGroupDiagnosticSetting 
{
    public static Task<GetManagementGroupDiagnosticSettingResult> InvokeAsync(GetManagementGroupDiagnosticSettingArgs args, InvokeOptions? opts = null)
    public static Output<GetManagementGroupDiagnosticSettingResult> Invoke(GetManagementGroupDiagnosticSettingInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetManagementGroupDiagnosticSettingResult> getManagementGroupDiagnosticSetting(GetManagementGroupDiagnosticSettingArgs args, InvokeOptions options)
public static Output<GetManagementGroupDiagnosticSettingResult> getManagementGroupDiagnosticSetting(GetManagementGroupDiagnosticSettingArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:monitor:getManagementGroupDiagnosticSetting
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ManagementGroupId
This property is required.
Changes to this property will trigger replacement.
string
The management group id.
Name
This property is required.
Changes to this property will trigger replacement.
string
The name of the diagnostic setting.
ManagementGroupId
This property is required.
Changes to this property will trigger replacement.
string
The management group id.
Name
This property is required.
Changes to this property will trigger replacement.
string
The name of the diagnostic setting.
managementGroupId
This property is required.
Changes to this property will trigger replacement.
String
The management group id.
name
This property is required.
Changes to this property will trigger replacement.
String
The name of the diagnostic setting.
managementGroupId
This property is required.
Changes to this property will trigger replacement.
string
The management group id.
name
This property is required.
Changes to this property will trigger replacement.
string
The name of the diagnostic setting.
management_group_id
This property is required.
Changes to this property will trigger replacement.
str
The management group id.
name
This property is required.
Changes to this property will trigger replacement.
str
The name of the diagnostic setting.
managementGroupId
This property is required.
Changes to this property will trigger replacement.
String
The management group id.
name
This property is required.
Changes to this property will trigger replacement.
String
The name of the diagnostic setting.

getManagementGroupDiagnosticSetting Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Name string
The name of the resource
SystemData Pulumi.AzureNative.Monitor.Outputs.SystemDataResponse
The system metadata related to this resource.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
EventHubAuthorizationRuleId string
The resource Id for the event hub authorization rule.
EventHubName string
The name of the event hub. If none is specified, the default event hub will be selected.
Logs List<Pulumi.AzureNative.Monitor.Outputs.ManagementGroupLogSettingsResponse>
The list of logs settings.
MarketplacePartnerId string
The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
ServiceBusRuleId string
The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
StorageAccountId string
The resource ID of the storage account to which you would like to send Diagnostic Logs.
WorkspaceId string
The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
AzureApiVersion string
The Azure API version of the resource.
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Name string
The name of the resource
SystemData SystemDataResponse
The system metadata related to this resource.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
EventHubAuthorizationRuleId string
The resource Id for the event hub authorization rule.
EventHubName string
The name of the event hub. If none is specified, the default event hub will be selected.
Logs []ManagementGroupLogSettingsResponse
The list of logs settings.
MarketplacePartnerId string
The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
ServiceBusRuleId string
The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
StorageAccountId string
The resource ID of the storage account to which you would like to send Diagnostic Logs.
WorkspaceId string
The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
azureApiVersion String
The Azure API version of the resource.
id String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name String
The name of the resource
systemData SystemDataResponse
The system metadata related to this resource.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
eventHubAuthorizationRuleId String
The resource Id for the event hub authorization rule.
eventHubName String
The name of the event hub. If none is specified, the default event hub will be selected.
logs List<ManagementGroupLogSettingsResponse>
The list of logs settings.
marketplacePartnerId String
The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
serviceBusRuleId String
The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
storageAccountId String
The resource ID of the storage account to which you would like to send Diagnostic Logs.
workspaceId String
The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
azureApiVersion string
The Azure API version of the resource.
id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name string
The name of the resource
systemData SystemDataResponse
The system metadata related to this resource.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
eventHubAuthorizationRuleId string
The resource Id for the event hub authorization rule.
eventHubName string
The name of the event hub. If none is specified, the default event hub will be selected.
logs ManagementGroupLogSettingsResponse[]
The list of logs settings.
marketplacePartnerId string
The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
serviceBusRuleId string
The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
storageAccountId string
The resource ID of the storage account to which you would like to send Diagnostic Logs.
workspaceId string
The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
azure_api_version str
The Azure API version of the resource.
id str
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name str
The name of the resource
system_data SystemDataResponse
The system metadata related to this resource.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
event_hub_authorization_rule_id str
The resource Id for the event hub authorization rule.
event_hub_name str
The name of the event hub. If none is specified, the default event hub will be selected.
logs Sequence[ManagementGroupLogSettingsResponse]
The list of logs settings.
marketplace_partner_id str
The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
service_bus_rule_id str
The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
storage_account_id str
The resource ID of the storage account to which you would like to send Diagnostic Logs.
workspace_id str
The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
azureApiVersion String
The Azure API version of the resource.
id String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name String
The name of the resource
systemData Property Map
The system metadata related to this resource.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
eventHubAuthorizationRuleId String
The resource Id for the event hub authorization rule.
eventHubName String
The name of the event hub. If none is specified, the default event hub will be selected.
logs List<Property Map>
The list of logs settings.
marketplacePartnerId String
The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
serviceBusRuleId String
The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
storageAccountId String
The resource ID of the storage account to which you would like to send Diagnostic Logs.
workspaceId String
The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2

Supporting Types

ManagementGroupLogSettingsResponse

Enabled This property is required. bool
a value indicating whether this log is enabled.
Category string
Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
CategoryGroup string
Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
Enabled This property is required. bool
a value indicating whether this log is enabled.
Category string
Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
CategoryGroup string
Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
enabled This property is required. Boolean
a value indicating whether this log is enabled.
category String
Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
categoryGroup String
Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
enabled This property is required. boolean
a value indicating whether this log is enabled.
category string
Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
categoryGroup string
Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
enabled This property is required. bool
a value indicating whether this log is enabled.
category str
Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
category_group str
Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
enabled This property is required. Boolean
a value indicating whether this log is enabled.
category String
Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
categoryGroup String
Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.

SystemDataResponse

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi