We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages an Azure Custom Provider.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleCustomProvider = new Azure.Core.CustomProvider("exampleCustomProvider", new Azure.Core.CustomProviderArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
ResourceTypes =
{
new Azure.Core.Inputs.CustomProviderResourceTypeArgs
{
Name = "dEf1",
Endpoint = "https://testendpoint.com/",
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = core.NewCustomProvider(ctx, "exampleCustomProvider", &core.CustomProviderArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
ResourceTypes: core.CustomProviderResourceTypeArray{
&core.CustomProviderResourceTypeArgs{
Name: pulumi.String("dEf1"),
Endpoint: pulumi.String("https://testendpoint.com/"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleCustomProvider = new azure.core.CustomProvider("exampleCustomProvider", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
resourceTypes: [{
name: "dEf1",
endpoint: "https://testendpoint.com/",
}],
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_custom_provider = azure.core.CustomProvider("exampleCustomProvider",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
resource_types=[azure.core.CustomProviderResourceTypeArgs(
name="dEf1",
endpoint="https://testendpoint.com/",
)])
Example coming soon!
Create CustomProvider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomProvider(name: string, args: CustomProviderArgs, opts?: CustomResourceOptions);@overload
def CustomProvider(resource_name: str,
args: CustomProviderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CustomProvider(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
actions: Optional[Sequence[CustomProviderActionArgs]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
resource_types: Optional[Sequence[CustomProviderResourceTypeArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
validations: Optional[Sequence[CustomProviderValidationArgs]] = None)func NewCustomProvider(ctx *Context, name string, args CustomProviderArgs, opts ...ResourceOption) (*CustomProvider, error)public CustomProvider(string name, CustomProviderArgs args, CustomResourceOptions? opts = null)
public CustomProvider(String name, CustomProviderArgs args)
public CustomProvider(String name, CustomProviderArgs args, CustomResourceOptions options)
type: azure:core:CustomProvider
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 CustomProviderArgs
- 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 CustomProviderArgs
- 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 CustomProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomProviderArgs
- 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 customProviderResource = new Azure.Core.CustomProvider("customProviderResource", new()
{
ResourceGroupName = "string",
Actions = new[]
{
new Azure.Core.Inputs.CustomProviderActionArgs
{
Endpoint = "string",
Name = "string",
},
},
Location = "string",
Name = "string",
ResourceTypes = new[]
{
new Azure.Core.Inputs.CustomProviderResourceTypeArgs
{
Endpoint = "string",
Name = "string",
RoutingType = "string",
},
},
Tags =
{
{ "string", "string" },
},
Validations = new[]
{
new Azure.Core.Inputs.CustomProviderValidationArgs
{
Specification = "string",
},
},
});
example, err := core.NewCustomProvider(ctx, "customProviderResource", &core.CustomProviderArgs{
ResourceGroupName: pulumi.String("string"),
Actions: core.CustomProviderActionArray{
&core.CustomProviderActionArgs{
Endpoint: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceTypes: core.CustomProviderResourceTypeArray{
&core.CustomProviderResourceTypeArgs{
Endpoint: pulumi.String("string"),
Name: pulumi.String("string"),
RoutingType: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Validations: core.CustomProviderValidationArray{
&core.CustomProviderValidationArgs{
Specification: pulumi.String("string"),
},
},
})
var customProviderResource = new CustomProvider("customProviderResource", CustomProviderArgs.builder()
.resourceGroupName("string")
.actions(CustomProviderActionArgs.builder()
.endpoint("string")
.name("string")
.build())
.location("string")
.name("string")
.resourceTypes(CustomProviderResourceTypeArgs.builder()
.endpoint("string")
.name("string")
.routingType("string")
.build())
.tags(Map.of("string", "string"))
.validations(CustomProviderValidationArgs.builder()
.specification("string")
.build())
.build());
custom_provider_resource = azure.core.CustomProvider("customProviderResource",
resource_group_name="string",
actions=[{
"endpoint": "string",
"name": "string",
}],
location="string",
name="string",
resource_types=[{
"endpoint": "string",
"name": "string",
"routing_type": "string",
}],
tags={
"string": "string",
},
validations=[{
"specification": "string",
}])
const customProviderResource = new azure.core.CustomProvider("customProviderResource", {
resourceGroupName: "string",
actions: [{
endpoint: "string",
name: "string",
}],
location: "string",
name: "string",
resourceTypes: [{
endpoint: "string",
name: "string",
routingType: "string",
}],
tags: {
string: "string",
},
validations: [{
specification: "string",
}],
});
type: azure:core:CustomProvider
properties:
actions:
- endpoint: string
name: string
location: string
name: string
resourceGroupName: string
resourceTypes:
- endpoint: string
name: string
routingType: string
tags:
string: string
validations:
- specification: string
CustomProvider 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 CustomProvider resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group in which to create the Custom Provider.
- Actions
List<Custom
Provider Action> - Any number of
actionblock as defined below. One ofresource_typeoractionmust be specified. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Custom Provider. Changing this forces a new resource to be created.
- Resource
Types List<CustomProvider Resource Type> - Any number of
resource_typeblock as defined below. One ofresource_typeoractionmust be specified. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Validations
List<Custom
Provider Validation> - Any number of
validationblock as defined below.
- Resource
Group stringName - The name of the resource group in which to create the Custom Provider.
- Actions
[]Custom
Provider Action Args - Any number of
actionblock as defined below. One ofresource_typeoractionmust be specified. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Custom Provider. Changing this forces a new resource to be created.
- Resource
Types []CustomProvider Resource Type Args - Any number of
resource_typeblock as defined below. One ofresource_typeoractionmust be specified. - map[string]string
- A mapping of tags to assign to the resource.
- Validations
[]Custom
Provider Validation Args - Any number of
validationblock as defined below.
- resource
Group StringName - The name of the resource group in which to create the Custom Provider.
- actions
List<Custom
Provider Action> - Any number of
actionblock as defined below. One ofresource_typeoractionmust be specified. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Custom Provider. Changing this forces a new resource to be created.
- resource
Types List<CustomProvider Resource Type> - Any number of
resource_typeblock as defined below. One ofresource_typeoractionmust be specified. - Map<String,String>
- A mapping of tags to assign to the resource.
- validations
List<Custom
Provider Validation> - Any number of
validationblock as defined below.
- resource
Group stringName - The name of the resource group in which to create the Custom Provider.
- actions
Custom
Provider Action[] - Any number of
actionblock as defined below. One ofresource_typeoractionmust be specified. - location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Custom Provider. Changing this forces a new resource to be created.
- resource
Types CustomProvider Resource Type[] - Any number of
resource_typeblock as defined below. One ofresource_typeoractionmust be specified. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- validations
Custom
Provider Validation[] - Any number of
validationblock as defined below.
- resource_
group_ strname - The name of the resource group in which to create the Custom Provider.
- actions
Sequence[Custom
Provider Action Args] - Any number of
actionblock as defined below. One ofresource_typeoractionmust be specified. - location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Custom Provider. Changing this forces a new resource to be created.
- resource_
types Sequence[CustomProvider Resource Type Args] - Any number of
resource_typeblock as defined below. One ofresource_typeoractionmust be specified. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- validations
Sequence[Custom
Provider Validation Args] - Any number of
validationblock as defined below.
- resource
Group StringName - The name of the resource group in which to create the Custom Provider.
- actions List<Property Map>
- Any number of
actionblock as defined below. One ofresource_typeoractionmust be specified. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Custom Provider. Changing this forces a new resource to be created.
- resource
Types List<Property Map> - Any number of
resource_typeblock as defined below. One ofresource_typeoractionmust be specified. - Map<String>
- A mapping of tags to assign to the resource.
- validations List<Property Map>
- Any number of
validationblock as defined below.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomProvider resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CustomProvider Resource
Get an existing CustomProvider resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CustomProviderState, opts?: CustomResourceOptions): CustomProvider@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[CustomProviderActionArgs]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_types: Optional[Sequence[CustomProviderResourceTypeArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
validations: Optional[Sequence[CustomProviderValidationArgs]] = None) -> CustomProviderfunc GetCustomProvider(ctx *Context, name string, id IDInput, state *CustomProviderState, opts ...ResourceOption) (*CustomProvider, error)public static CustomProvider Get(string name, Input<string> id, CustomProviderState? state, CustomResourceOptions? opts = null)public static CustomProvider get(String name, Output<String> id, CustomProviderState state, CustomResourceOptions options)resources: _: type: azure:core:CustomProvider get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Actions
List<Custom
Provider Action> - Any number of
actionblock as defined below. One ofresource_typeoractionmust be specified. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Custom Provider. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which to create the Custom Provider.
- Resource
Types List<CustomProvider Resource Type> - Any number of
resource_typeblock as defined below. One ofresource_typeoractionmust be specified. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Validations
List<Custom
Provider Validation> - Any number of
validationblock as defined below.
- Actions
[]Custom
Provider Action Args - Any number of
actionblock as defined below. One ofresource_typeoractionmust be specified. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Custom Provider. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which to create the Custom Provider.
- Resource
Types []CustomProvider Resource Type Args - Any number of
resource_typeblock as defined below. One ofresource_typeoractionmust be specified. - map[string]string
- A mapping of tags to assign to the resource.
- Validations
[]Custom
Provider Validation Args - Any number of
validationblock as defined below.
- actions
List<Custom
Provider Action> - Any number of
actionblock as defined below. One ofresource_typeoractionmust be specified. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Custom Provider. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which to create the Custom Provider.
- resource
Types List<CustomProvider Resource Type> - Any number of
resource_typeblock as defined below. One ofresource_typeoractionmust be specified. - Map<String,String>
- A mapping of tags to assign to the resource.
- validations
List<Custom
Provider Validation> - Any number of
validationblock as defined below.
- actions
Custom
Provider Action[] - Any number of
actionblock as defined below. One ofresource_typeoractionmust be specified. - location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Custom Provider. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group in which to create the Custom Provider.
- resource
Types CustomProvider Resource Type[] - Any number of
resource_typeblock as defined below. One ofresource_typeoractionmust be specified. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- validations
Custom
Provider Validation[] - Any number of
validationblock as defined below.
- actions
Sequence[Custom
Provider Action Args] - Any number of
actionblock as defined below. One ofresource_typeoractionmust be specified. - location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Custom Provider. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group in which to create the Custom Provider.
- resource_
types Sequence[CustomProvider Resource Type Args] - Any number of
resource_typeblock as defined below. One ofresource_typeoractionmust be specified. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- validations
Sequence[Custom
Provider Validation Args] - Any number of
validationblock as defined below.
- actions List<Property Map>
- Any number of
actionblock as defined below. One ofresource_typeoractionmust be specified. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Custom Provider. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which to create the Custom Provider.
- resource
Types List<Property Map> - Any number of
resource_typeblock as defined below. One ofresource_typeoractionmust be specified. - Map<String>
- A mapping of tags to assign to the resource.
- validations List<Property Map>
- Any number of
validationblock as defined below.
Supporting Types
CustomProviderAction, CustomProviderActionArgs
CustomProviderResourceType, CustomProviderResourceTypeArgs
- Endpoint string
- Specifies the endpoint of the route definition.
- Name string
- Specifies the name of the route definition.
- Routing
Type string - The routing type that is supported for the resource request. Valid values are
ResourceTypeRoutingProxyorResourceTypeRoutingProxyCache. This value defaults toResourceTypeRoutingProxy.
- Endpoint string
- Specifies the endpoint of the route definition.
- Name string
- Specifies the name of the route definition.
- Routing
Type string - The routing type that is supported for the resource request. Valid values are
ResourceTypeRoutingProxyorResourceTypeRoutingProxyCache. This value defaults toResourceTypeRoutingProxy.
- endpoint String
- Specifies the endpoint of the route definition.
- name String
- Specifies the name of the route definition.
- routing
Type String - The routing type that is supported for the resource request. Valid values are
ResourceTypeRoutingProxyorResourceTypeRoutingProxyCache. This value defaults toResourceTypeRoutingProxy.
- endpoint string
- Specifies the endpoint of the route definition.
- name string
- Specifies the name of the route definition.
- routing
Type string - The routing type that is supported for the resource request. Valid values are
ResourceTypeRoutingProxyorResourceTypeRoutingProxyCache. This value defaults toResourceTypeRoutingProxy.
- endpoint str
- Specifies the endpoint of the route definition.
- name str
- Specifies the name of the route definition.
- routing_
type str - The routing type that is supported for the resource request. Valid values are
ResourceTypeRoutingProxyorResourceTypeRoutingProxyCache. This value defaults toResourceTypeRoutingProxy.
- endpoint String
- Specifies the endpoint of the route definition.
- name String
- Specifies the name of the route definition.
- routing
Type String - The routing type that is supported for the resource request. Valid values are
ResourceTypeRoutingProxyorResourceTypeRoutingProxyCache. This value defaults toResourceTypeRoutingProxy.
CustomProviderValidation, CustomProviderValidationArgs
- Specification string
- The endpoint where the validation specification is located.
- Specification string
- The endpoint where the validation specification is located.
- specification String
- The endpoint where the validation specification is located.
- specification string
- The endpoint where the validation specification is located.
- specification str
- The endpoint where the validation specification is located.
- specification String
- The endpoint where the validation specification is located.
Import
Custom Provider can be imported using the resource id, e.g.
$ pulumi import azure:core/customProvider:CustomProvider example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.CustomProviders/resourceProviders/example
To learn more about importing existing cloud resources, see Importing resources.
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.
published on Monday, Mar 9, 2026 by Pulumi
