Created
April 28, 2021 21:46
-
-
Save soulemike/c74a07c41da4e1659ffc98ae476a1146 to your computer and use it in GitHub Desktop.
Utilize the ManagedServices resource provider to perform an offer registration for an Azure Marketplace Offer (aka Lighthouse)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| targetScope = 'subscription' | |
| param name string = guid(utcNow()) | |
| @description('Long Name of your Partner Center Offering') | |
| param definitionName string | |
| param definitionDescription string = '' | |
| @description('The Service Provider\'s Azure AD Tenant GUID') | |
| param managedByTenantId string | |
| @description('The AdminAgents, or other, Azure AD Group GUID') | |
| param adminAgents string | |
| param authorizations array = [ | |
| { | |
| principalId: adminAgents | |
| principalIdDisplayName: 'AdminAgents' | |
| // Contributor | |
| roleDefinitionId: 'b24988ac-6180-42a0-ab88-20f7382dd24c' | |
| delegatedRoleDefinitionIds: [] | |
| } | |
| { | |
| principalId: adminAgents | |
| principalIdDisplayName: 'AdminAgents' | |
| // User Access Administrator | |
| roleDefinitionId: '18d7d88d-d35e-4fb5-a5c3-7773c20a72d9' | |
| delegatedRoleDefinitionIds: [ | |
| // Reader | |
| 'acdd72a7-3385-48ef-bd42-f606fba81ae7' | |
| // Contributor | |
| 'b24988ac-6180-42a0-ab88-20f7382dd24c' | |
| ] | |
| } | |
| ] | |
| @description('The Partner short name') | |
| param publisherId string | |
| @description('The Offer ID from Partner Center') | |
| param offerId string | |
| @description('The Plan ID from Partner Center') | |
| param planId string | |
| @description('The Plan Version from Partner Center') | |
| param planVersion string | |
| resource name_resource 'Microsoft.ManagedServices/registrationDefinitions@2019-06-01' = { | |
| name: name | |
| plan: { | |
| name: planId | |
| product: offerId | |
| publisher: publisherId | |
| version: planVersion | |
| } | |
| properties: { | |
| registrationDefinitionName: definitionName | |
| description: definitionDescription | |
| managedByTenantId: managedByTenantId | |
| authorizations: authorizations | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment