Partner Attribuation

br/innofactor:avm/ptn/management/partner:0.1.1

README

partner [Management/Partner]

Apply Partner Attribution

This module will apply Partner Attribution for the deploymenent.

Usage Example

Simply add the following snippet to your Bicep file to use the module. The examples in this documentation will explore the various parameters available.

// Create a Resource Group which we will use to host the Identiies and Deployment Scripts
module resourceGroup 'br/public:avm/res/resources/resource-group:0.4.1' = {
  name: '${uniqueString(deployment().name, resourceLocation)}-registerProvidersRG'
  scope: subscription(subscriptionId)
  params: {
    location: resourceLocation
    name: resourceGroupName
    tags: {
      Role: 'Subscription configuration'
    }
  }
}

// Deploy the module to register the resource providers
module partner 'br/innofactor:avm/ptn/management/partner' = {
  name: '${uniqueString(deployment().name, resourceLocation)}-registerProviders'
  params: {
    name: '${resourceGroup.outputs.name}-rp'
    location: resourceLocation
  }
}

Resource Types

None

Usage examples

The following section provides usage examples for the module, which were used to validate and deploy the module successfully. For a full reference, please review the module’s test folder in its repository.

Note: Each example lists all the required parameters first, followed by the rest - each in alphabetical order.

Note: To reference the module, please use the following syntax br/innofactor:avm/ptn/management/partner:<version>.

Example 1:

Module Test Title

Usage Example

Simply add the following snippet to your Bicep file to use the module. The examples in this documentation will explore the various parameters available.

module subscriptionConfiguration 'br/innofactor:avm/ptn/lz/subscription-configuration' = {
  name: 'subscriptionConfiguration'
  scope: managementGroup('myManagementGroup')
  params: {
    partnerCountry: 'norway'
  }
}
via Bicep module
module partner 'br/innofactor:avm/ptn/management/partner:<version>' = {
  name: 'partnerDeployment'
  params: {
    partnerCountry: 'norway'
  }
}

via JSON parameters file
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "partnerCountry": {
      "value": "norway"
    }
  }
}

via Bicep parameters file
using 'br/innofactor:avm/ptn/management/partner:<version>'

param partnerCountry = 'norway'

Parameters

Optional parameters

ParameterTypeDescription
enableTelemetryboolEnable/Disable usage telemetry for module.
locationstringLocation for all Resources.
partnerCountrystringThe Partner ID for partner attribution. Default = Norway.
Parameter: enableTelemetry

Enable/Disable usage telemetry for module.

  • Required: No
  • Type: bool
  • Default: True
Parameter: location

Location for all Resources.

  • Required: No
  • Type: string
  • Default: [deployment().location]
Parameter: partnerCountry

The Partner ID for partner attribution. Default = Norway.

  • Required: No
  • Type: string
  • Default: 'norway'
  • Allowed:
    [
      'denmark'
      'finland'
      'norway'
      'sweden'
    ]

Outputs

None

Cross-referenced modules

This section gives you an overview of all local-referenced module files (i.e., other modules that are referenced in this module) and all remote-referenced files (i.e., Bicep modules that are referenced from a Bicep Registry or Template Specs).

ReferenceType
br/innofactor:avm/ptn/management/partnerRemote reference
br/public:avm/res/resources/resource-group:0.4.1Remote reference

Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

Changelog

Changelog

0.1.1

Changes
  • Regenerated main.json and README.md with Bicep 0.49.2 so that they match main.bicep (#206).
  • Released by the hardened pipeline: published only when main.json changes, release tag created after a successful publish, GitHub Release per tag (ADR 0004, ADR 0003, ADR 0005).
Breaking Changes
  • None

0.1.0

Changes
  • Adding initial spoke configuration with sub patterns (#89)
Breaking Changes
  • None

Version history

VersionPublished
0.1.12026-11-16
0.1.02025-02-04