Links an Azure Partner ID (MPN ID) to a tenant via the Microsoft Partner Admin Link (PAL) mechanism, so Microsoft can attribute the resources deployed in the tenant to the partner for usage and co-sell credit.
Does not delete the resource on destroy by default, as this is a destructive operation that will remove the partner association from the tenant. If you want to delete the resource on destroy, set delete_on_destroy to true, then perform an apply, followed by a destroy.
module "partner_admin_link" {
source = "appvia/partner-admin-link/azurerm"
version = "0.0.1"
}See the examples directory for working usage examples.
- Basic - A basic example of how to use this module.
| Name | Version |
|---|---|
| azapi | ~> 2.11 |
No modules.
| Name | Type |
|---|---|
| azapi_resource_action.management_partner_create | resource |
| azapi_resource_action.management_partner_delete | resource |
| azapi_resource_action.management_partner_patch | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| delete_on_destroy | If true, the Management Partner resource will be deleted when the Terraform resource is destroyed. If false, the Management Partner resource will remain in place after the Terraform resource is destroyed. Note: to delete the management partner you must set this to true and run terraform apply before terraform destroy. |
bool |
false |
no |
| partner_id | The Microsoft Partner Network (MPN) ID to link to the subscription. Defaults to Appvia's MPN ID (6098754). Note: Do not use unknown values here. Input the partner ID as a literal that is known at plan time. |
number |
6098754 |
no |
| Name | Description |
|---|---|
| partner_name | The name of the partner associated with the tenant. |
| status | The status of the partner association with the tenant. |
Contributions are welcome. Please read the Code of Conduct before contributing.
This project is licensed under the terms of the GPL-3.0 license.
