published on Tuesday, Nov 17, 2026 by Defang
Defang Azurepublished on Tuesday, Nov 17, 2026 by Defang
Registers an Azure resource provider namespace on the subscription and waits until it is registered. Created by Project. Deleting it does not unregister the namespace.
Create ResourceProviderRegistration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResourceProviderRegistration(name: string, args: ResourceProviderRegistrationArgs, opts?: CustomResourceOptions);@overload
def ResourceProviderRegistration(resource_name: str,
args: ResourceProviderRegistrationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ResourceProviderRegistration(resource_name: str,
opts: Optional[ResourceOptions] = None,
namespace: Optional[str] = None,
subscription_id: Optional[str] = None)func NewResourceProviderRegistration(ctx *Context, name string, args ResourceProviderRegistrationArgs, opts ...ResourceOption) (*ResourceProviderRegistration, error)public ResourceProviderRegistration(string name, ResourceProviderRegistrationArgs args, CustomResourceOptions? opts = null)
public ResourceProviderRegistration(String name, ResourceProviderRegistrationArgs args)
public ResourceProviderRegistration(String name, ResourceProviderRegistrationArgs args, CustomResourceOptions options)
type: defang-azure:ResourceProviderRegistration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "defang-azure_resource_provider_registration" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ResourceProviderRegistrationArgs
- 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 ResourceProviderRegistrationArgs
- 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 ResourceProviderRegistrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceProviderRegistrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResourceProviderRegistrationArgs
- 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 resourceProviderRegistrationResource = new DefangAzure.ResourceProviderRegistration("resourceProviderRegistrationResource", new()
{
Namespace = "string",
SubscriptionId = "string",
});
example, err := defangazure.NewResourceProviderRegistration(ctx, "resourceProviderRegistrationResource", &defangazure.ResourceProviderRegistrationArgs{
Namespace: pulumi.String("string"),
SubscriptionId: pulumi.String("string"),
})
resource "defang-azure_resource_provider_registration" "resourceProviderRegistrationResource" {
lifecycle {
create_before_destroy = true
}
namespace = "string"
subscription_id = "string"
}
var resourceProviderRegistrationResource = new ResourceProviderRegistration("resourceProviderRegistrationResource", ResourceProviderRegistrationArgs.builder()
.namespace("string")
.subscriptionId("string")
.build());
resource_provider_registration_resource = defang_azure.ResourceProviderRegistration("resourceProviderRegistrationResource",
namespace="string",
subscription_id="string")
const resourceProviderRegistrationResource = new defang_azure.ResourceProviderRegistration("resourceProviderRegistrationResource", {
namespace: "string",
subscriptionId: "string",
});
type: defang-azure:ResourceProviderRegistration
properties:
namespace: string
subscriptionId: string
ResourceProviderRegistration 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 ResourceProviderRegistration resource accepts the following input properties:
- Namespace string
- Resource provider namespace, for example Microsoft.Insights.
- Subscription
Id string - Azure subscription ID.
- Namespace string
- Resource provider namespace, for example Microsoft.Insights.
- Subscription
Id string - Azure subscription ID.
- namespace string
- Resource provider namespace, for example Microsoft.Insights.
- subscription_
id string - Azure subscription ID.
- namespace String
- Resource provider namespace, for example Microsoft.Insights.
- subscription
Id String - Azure subscription ID.
- namespace string
- Resource provider namespace, for example Microsoft.Insights.
- subscription
Id string - Azure subscription ID.
- namespace str
- Resource provider namespace, for example Microsoft.Insights.
- subscription_
id str - Azure subscription ID.
- namespace String
- Resource provider namespace, for example Microsoft.Insights.
- subscription
Id String - Azure subscription ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceProviderRegistration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Registration
State string - Registration state that Azure reported, for example Registered.
- Id string
- The provider-assigned unique ID for this managed resource.
- Registration
State string - Registration state that Azure reported, for example Registered.
- id string
- The provider-assigned unique ID for this managed resource.
- registration_
state string - Registration state that Azure reported, for example Registered.
- id String
- The provider-assigned unique ID for this managed resource.
- registration
State String - Registration state that Azure reported, for example Registered.
- id string
- The provider-assigned unique ID for this managed resource.
- registration
State string - Registration state that Azure reported, for example Registered.
- id str
- The provider-assigned unique ID for this managed resource.
- registration_
state str - Registration state that Azure reported, for example Registered.
- id String
- The provider-assigned unique ID for this managed resource.
- registration
State String - Registration state that Azure reported, for example Registered.
Look up Existing ResourceProviderRegistration Resource
Get an existing ResourceProviderRegistration 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>, opts?: CustomResourceOptions): ResourceProviderRegistration@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> ResourceProviderRegistrationfunc GetResourceProviderRegistration(ctx *Context, name string, id IDInput, state *ResourceProviderRegistrationState, opts ...ResourceOption) (*ResourceProviderRegistration, error)public static ResourceProviderRegistration Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static ResourceProviderRegistration get(String name, Output<String> id, CustomResourceOptions options)resources: existingResourceProviderRegistration: type: defang-azure:ResourceProviderRegistration get: id: ${id}import {
to = defang-azure_resource_provider_registration.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state ResourceProviderRegistrationState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- defang-azure DefangLabs/pulumi-defang
- License
- Apache-2.0
Defang Azurepublished on Tuesday, Nov 17, 2026 by Defang