We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Use this data source to access information about an existing Maintenance Configuration.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var existing = Output.Create(Azure.Maintenance.GetConfiguration.InvokeAsync(new Azure.Maintenance.GetConfigurationArgs
{
Name = "example-mc",
ResourceGroupName = "example-resources",
}));
this.Id = azurerm_maintenance_configuration.Existing.Id;
}
[Output("id")]
public Output<string> Id { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/maintenance"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := maintenance.LookupConfiguration(ctx, &maintenance.LookupConfigurationArgs{
Name: "example-mc",
ResourceGroupName: "example-resources",
}, nil)
if err != nil {
return err
}
ctx.Export("id", azurerm_maintenance_configuration.Existing.Id)
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const existing = azure.maintenance.getConfiguration({
name: "example-mc",
resourceGroupName: "example-resources",
});
export const id = azurerm_maintenance_configuration.existing.id;
import pulumi
import pulumi_azure as azure
existing = azure.maintenance.get_configuration(name="example-mc",
resource_group_name="example-resources")
pulumi.export("id", azurerm_maintenance_configuration["existing"]["id"])
Example coming soon!
Using getConfiguration
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 getConfiguration(args: GetConfigurationArgs, opts?: InvokeOptions): Promise<GetConfigurationResult>
function getConfigurationOutput(args: GetConfigurationOutputArgs, opts?: InvokeOptions): Output<GetConfigurationResult>def get_configuration(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConfigurationResult
def get_configuration_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConfigurationResult]func LookupConfiguration(ctx *Context, args *LookupConfigurationArgs, opts ...InvokeOption) (*LookupConfigurationResult, error)
func LookupConfigurationOutput(ctx *Context, args *LookupConfigurationOutputArgs, opts ...InvokeOption) LookupConfigurationResultOutput> Note: This function is named LookupConfiguration in the Go SDK.
public static class GetConfiguration
{
public static Task<GetConfigurationResult> InvokeAsync(GetConfigurationArgs args, InvokeOptions? opts = null)
public static Output<GetConfigurationResult> Invoke(GetConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
public static Output<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
fn::invoke:
function: azure:maintenance/getConfiguration:getConfiguration
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Specifies the name of the Maintenance Configuration.
- Resource
Group stringName - Specifies the name of the Resource Group where this Maintenance Configuration exists.
- Name string
- Specifies the name of the Maintenance Configuration.
- Resource
Group stringName - Specifies the name of the Resource Group where this Maintenance Configuration exists.
- name String
- Specifies the name of the Maintenance Configuration.
- resource
Group StringName - Specifies the name of the Resource Group where this Maintenance Configuration exists.
- name string
- Specifies the name of the Maintenance Configuration.
- resource
Group stringName - Specifies the name of the Resource Group where this Maintenance Configuration exists.
- name str
- Specifies the name of the Maintenance Configuration.
- resource_
group_ strname - Specifies the name of the Resource Group where this Maintenance Configuration exists.
- name String
- Specifies the name of the Maintenance Configuration.
- resource
Group StringName - Specifies the name of the Resource Group where this Maintenance Configuration exists.
getConfiguration Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure location where the resource exists.
- Name string
- Properties Dictionary<string, string>
- The properties assigned to the resource.
- Resource
Group stringName - Scope string
- The scope of the Maintenance Configuration.
- Dictionary<string, string>
- A mapping of tags assigned to the resource.
- Visibility string
- The visibility of the Maintenance Configuration.
- Windows
List<Get
Configuration Window> - A
windowblock as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure location where the resource exists.
- Name string
- Properties map[string]string
- The properties assigned to the resource.
- Resource
Group stringName - Scope string
- The scope of the Maintenance Configuration.
- map[string]string
- A mapping of tags assigned to the resource.
- Visibility string
- The visibility of the Maintenance Configuration.
- Windows
[]Get
Configuration Window - A
windowblock as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure location where the resource exists.
- name String
- properties Map<String,String>
- The properties assigned to the resource.
- resource
Group StringName - scope String
- The scope of the Maintenance Configuration.
- Map<String,String>
- A mapping of tags assigned to the resource.
- visibility String
- The visibility of the Maintenance Configuration.
- windows
List<Get
Configuration Window> - A
windowblock as defined below.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure location where the resource exists.
- name string
- properties {[key: string]: string}
- The properties assigned to the resource.
- resource
Group stringName - scope string
- The scope of the Maintenance Configuration.
- {[key: string]: string}
- A mapping of tags assigned to the resource.
- visibility string
- The visibility of the Maintenance Configuration.
- windows
Get
Configuration Window[] - A
windowblock as defined below.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure location where the resource exists.
- name str
- properties Mapping[str, str]
- The properties assigned to the resource.
- resource_
group_ strname - scope str
- The scope of the Maintenance Configuration.
- Mapping[str, str]
- A mapping of tags assigned to the resource.
- visibility str
- The visibility of the Maintenance Configuration.
- windows
Sequence[Get
Configuration Window] - A
windowblock as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure location where the resource exists.
- name String
- properties Map<String>
- The properties assigned to the resource.
- resource
Group StringName - scope String
- The scope of the Maintenance Configuration.
- Map<String>
- A mapping of tags assigned to the resource.
- visibility String
- The visibility of the Maintenance Configuration.
- windows List<Property Map>
- A
windowblock as defined below.
Supporting Types
GetConfigurationWindow
- Duration string
- The duration of the maintenance window.
- Expiration
Date stringTime - Effective expiration date of the maintenance window.
- Recur
Every string - Start
Date stringTime - Effective start date of the maintenance window.
- Time
Zone string - The time zone for the maintenance window.
- Duration string
- The duration of the maintenance window.
- Expiration
Date stringTime - Effective expiration date of the maintenance window.
- Recur
Every string - Start
Date stringTime - Effective start date of the maintenance window.
- Time
Zone string - The time zone for the maintenance window.
- duration String
- The duration of the maintenance window.
- expiration
Date StringTime - Effective expiration date of the maintenance window.
- recur
Every String - start
Date StringTime - Effective start date of the maintenance window.
- time
Zone String - The time zone for the maintenance window.
- duration string
- The duration of the maintenance window.
- expiration
Date stringTime - Effective expiration date of the maintenance window.
- recur
Every string - start
Date stringTime - Effective start date of the maintenance window.
- time
Zone string - The time zone for the maintenance window.
- duration str
- The duration of the maintenance window.
- expiration_
date_ strtime - Effective expiration date of the maintenance window.
- recur_
every str - start_
date_ strtime - Effective start date of the maintenance window.
- time_
zone str - The time zone for the maintenance window.
- duration String
- The duration of the maintenance window.
- expiration
Date StringTime - Effective expiration date of the maintenance window.
- recur
Every String - start
Date StringTime - Effective start date of the maintenance window.
- time
Zone String - The time zone for the maintenance window.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
