Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up
Find file
Copy path
Azure-Lighthouse-DelegatedResource/delegatedResourceManagement.json
Find file
Copy path
Fetching contributors…

{ | |
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"mspName": { | |
"type": "string", | |
"metadata": { | |
"description": "Specify the Managed Service Provider name" | |
} | |
}, | |
"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('mspName'))]", | |
"mspAssignmentName": "[guid(parameters('mspName'))]" | |
}, | |
"resources": [ | |
{ | |
"type": "Microsoft.ManagedServices/registrationDefinitions", | |
"apiVersion": "2019-06-01", | |
"name": "[variables('mspRegistrationName')]", | |
"properties": { | |
"registrationDefinitionName": "[parameters('mspName')]", | |
"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": { | |
"mspName": { | |
"type": "string", | |
"value": "[concat('Managed by', ' ', parameters('mspName'))]" | |
}, | |
"authorizations": { | |
"type": "array", | |
"value": "[parameters('authorizations')]" | |
} | |
} | |
} |