SHARE
TWEET

Untitled

a guest Jan 21st, 2020 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
  3.     "contentVersion": "1.0.0.0",
  4.     "parameters": {
  5.         "mspOfferName": {
  6.             "type": "string",
  7.             "metadata": {
  8.                 "description": "Specify the name of the offer from the Managed Service Provider"
  9.             }
  10.         },
  11.         "mspOfferDescription": {
  12.             "type": "string",
  13.             "metadata": {
  14.                 "description": "Name of the Managed Service Provider offering"
  15.             }
  16.         },
  17.         "managedByTenantId": {
  18.             "type": "string",
  19.             "metadata": {
  20.                 "description": "Specify the tenant id of the Managed Service Provider"
  21.             }
  22.         },
  23.         "authorizations": {
  24.             "type": "array",
  25.             "metadata": {
  26.                 "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."
  27.             }
  28.         }              
  29.     },
  30.     "variables": {
  31.         "mspRegistrationName": "[guid(parameters('mspOfferName'))]",
  32.         "mspAssignmentName": "[guid(parameters('mspOfferName'))]"
  33.     },
  34.     "resources": [
  35.         {
  36.             "type": "Microsoft.ManagedServices/registrationDefinitions",
  37.             "apiVersion": "2019-06-01",
  38.             "name": "[variables('mspRegistrationName')]",
  39.             "properties": {
  40.                 "registrationDefinitionName": "[parameters('mspOfferName')]",
  41.                 "description": "[parameters('mspOfferDescription')]",
  42.                 "managedByTenantId": "[parameters('managedByTenantId')]",
  43.                 "authorizations": "[parameters('authorizations')]"
  44.             }
  45.         },
  46.         {
  47.             "type": "Microsoft.ManagedServices/registrationAssignments",
  48.             "apiVersion": "2019-06-01",
  49.             "name": "[variables('mspAssignmentName')]",
  50.             "dependsOn": [
  51.                 "[resourceId('Microsoft.ManagedServices/registrationDefinitions/', variables('mspRegistrationName'))]"
  52.             ],
  53.             "properties": {
  54.                 "registrationDefinitionId": "[resourceId('Microsoft.ManagedServices/registrationDefinitions/', variables('mspRegistrationName'))]"
  55.             }
  56.         }
  57.     ],
  58.     "outputs": {
  59.         "mspOfferName": {
  60.             "type": "string",
  61.             "value": "[concat('Managed by', ' ', parameters('mspOfferName'))]"
  62.         },
  63.         "authorizations": {
  64.             "type": "array",
  65.             "value": "[parameters('authorizations')]"
  66.         }
  67.     }
  68. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top