Created
March 5, 2020 20:37
-
-
Save thuru-zz/0da6d14c6a045782a1d58e0d37369c65 to your computer and use it in GitHub Desktop.
Azure Lighthouse ARM Template (subscription delegated management access)
This file contains 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"mspOfferName": { | |
"type": "string", | |
"metadata": { | |
"description": "Specify the name of the offer from the Managed Service Provider" | |
} | |
}, | |
"mspOfferDescription": { | |
"type": "string", | |
"metadata": { | |
"description": "Name of the Managed Service Provider offering" | |
} | |
}, | |
"managedByTenantId": { | |
"type": "string", | |
"metadata": { | |
"description": "Specify the tenant id of the Managed Service Provider" | |
} | |
}, | |
"authorizations": { | |
"type": "array", | |
"metadata": { | |
"description": "Specify an array of objects, containing tuples of Azure Active Directory principalId, a Azure roleDefinitionId, and an optional principalIdDisplayName. The roleDefinition specified is granted to the principalId in the provider's Active Directory and the principalIdDisplayName is visible to customers." | |
} | |
} | |
}, | |
"variables": { | |
"mspRegistrationName": "[guid(parameters('mspOfferName'))]", | |
"mspAssignmentName": "[guid(parameters('mspOfferName'))]" | |
}, | |
"resources": [ | |
{ | |
"type": "Microsoft.ManagedServices/registrationDefinitions", | |
"apiVersion": "2019-06-01", | |
"name": "[variables('mspRegistrationName')]", | |
"properties": { | |
"registrationDefinitionName": "[parameters('mspOfferName')]", | |
"description": "[parameters('mspOfferDescription')]", | |
"managedByTenantId": "[parameters('managedByTenantId')]", | |
"authorizations": "[parameters('authorizations')]" | |
} | |
}, | |
{ | |
"type": "Microsoft.ManagedServices/registrationAssignments", | |
"apiVersion": "2019-06-01", | |
"name": "[variables('mspAssignmentName')]", | |
"dependsOn": [ | |
"[resourceId('Microsoft.ManagedServices/registrationDefinitions/', variables('mspRegistrationName'))]" | |
], | |
"properties": { | |
"registrationDefinitionId": "[resourceId('Microsoft.ManagedServices/registrationDefinitions/', variables('mspRegistrationName'))]" | |
} | |
} | |
], | |
"outputs": { | |
"mspOfferName": { | |
"type": "string", | |
"value": "[concat('Managed by', ' ', parameters('mspOfferName'))]" | |
}, | |
"authorizations": { | |
"type": "array", | |
"value": "[parameters('authorizations')]" | |
} | |
} | |
} |
This file contains 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentParameters.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"mspOfferName": { | |
"value": "Aventude Ops Servive" | |
}, | |
"mspOfferDescription": { | |
"value": "Aventude Ops Service for Azure Managed Customers Tier1" | |
}, | |
"managedByTenantId": { | |
"value": "261e3bf5-f768-49cc-a8bb-ab7dcc73817c" | |
}, | |
"authorizations": { | |
"value": [ | |
{ | |
"principalId": "6665e9a2-e27a-42f0-8ce1-203c03255695", | |
"principalIdDisplayName": "Individual User", | |
"roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c" | |
}, | |
{ | |
"principalId": "52f00b53-e404-4b0e-9564-ffb8388702cd", | |
"principalIdDisplayName": "User Group Id (reccomended)", | |
"roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c" | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment