Azure Lighthouse: Cross Tenant Management

%3CLINGO-SUB%20id%3D%22lingo-sub-756436%22%20slang%3D%22en-US%22%3EAzure%20Lighthouse%3A%20Cross%20Tenant%20Management%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756436%22%20slang%3D%22en-US%22%3E%3CP%3EAzure%20Lighthouse%20makes%20MSP%2Fservice%20provider%E2%80%99s%20life%20easier%20in%20terms%20of%20customer%2Ftenants%20management%20and%20onboarding.%3C%2FP%3E%0A%3CDIV%20class%3D%22wp-block-image%22%3E%0A%3CFIGURE%20class%3D%22aligncenter%22%3E%3CIMG%20class%3D%22wp-image-1217%22%20src%3D%22http%3A%2F%2Fsakaldeep.com.np%2Fwp-content%2Fuploads%2F2019%2F07%2F1.jpg%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3CFIGCAPTION%3E%3CEM%3EPC%3A%20Nikhil%20Sharma%3C%2FEM%3E%3C%2FFIGCAPTION%3E%0A%3C%2FFIGURE%3E%0A%3C%2FDIV%3E%0A%3CP%3EAzure%20Lighthouse%20has%20changed%20things%20in%20many%20ways%20and%20here%20we%20are%20discussing%20one%20of%20them.%20As%20a%20service%20provider%2C%20earlier%2C%20to%20access%20the%20customer%E2%80%99s%20resources%20in%20the%20process%20of%20giving%20support%20our%20engineers%20must%20be%20in%20customer%E2%80%99s%20tenants%20as%20a%20guest%20user%20for%20all%20the%20customer.%20From%20the%20engineer%E2%80%99s%20point%20of%20view%2C%20they%20need%20to%20switch%20the%20directory%2Ftenants%20in%20order%20to%20work%20with%20a%20different%20customer.%20Now%2C%20we%20don%E2%80%99t%20need%20to%20be%20a%20guest%20user%20in%20each%20customer%20tenants%20and%20we%20don%E2%80%99t%20need%20to%20switch%20directory%2Ftenants%20in%20order%20to%20work%20with%20multiple%20customers.%20Once%20we%20login%20into%20the%20portal%2C%20we%20can%20see%20all%20the%20customers%20under%20%E2%80%98%3CEM%3EMy%20Customer%3C%2FEM%3E%E2%80%98%20and%20we%20can%20access%20their%20resources%20from%20there.%20As%20shown%20in%20below%20image%20%E2%80%98janakpur%E2%80%99%20is%20the%20customer%20and%20once%20we%20click%20on%20the%20janakpur%2C%20we%20can%20navigate%20to%20the%20subscription%20and%20will%20get%20access%20to%20the%20resources%20as%20per%20the%20permission%20assigned.%3C%2FP%3E%0A%3CFIGURE%20class%3D%22wp-block-image%20is-resized%22%3E%3CIMG%20class%3D%22wp-image-1250%22%20src%3D%22http%3A%2F%2Fsakaldeep.com.np%2Fwp-content%2Fuploads%2F2019%2F07%2Fcustomer-1024x372.png%22%20border%3D%220%22%20alt%3D%22%22%20width%3D%22583%22%20height%3D%22211%22%20%2F%3E%3C%2FFIGURE%3E%0A%3CP%3EOn%20top%20of%20this%2C%20it%20is%20highly%20automated%20and%20has%20many%20ARM%20template%20to%20make%20the%20onboarding%20process%20easier.%3C%2FP%3E%0A%3CP%3EIn%20this%20post%2C%20we%20are%20going%20to%20demonstrate%20how%20to%20defines%20roles%20and%20permission%20of%20support%20engineers%20into%20all%20the%20customer%E2%80%99s%20tenants.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EPreresequites%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EYou%20must%20have%20at%20least%20two%20tenants%20to%20perform%20this%20task%2C%20one%20will%20be%20treated%20as%20an%20MSP%20and%20another%20as%20a%20customer.%20The%20customer%E2%80%99s%20tenant%20must%20have%20an%20active%20Azure%20subscription.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EScenario%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EAzure%20user%20Group%20Nepal%20(AUGN)%20is%20a%20service%20provider%20and%20has%20multi-levels%20of%20support%20team%20named%20%E2%80%98%20Tier%201%20Engineer%E2%80%99%2C%20%E2%80%98Tier%202%20Engineer%E2%80%99%2C%20and%20%E2%80%98Tier%203%20Engineer%E2%80%99.%20As%20a%20service%20provider%2C%20we%20want%20Tier%201%20engineer%20should%20have%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3ERead%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3Epermission%2C%20Tier%202%20and%20Tier%203%20engineer%20should%20have%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EContributor%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3Epermission%20in%20all%20customer%E2%80%99s%20tenants.%20To%20achieve%20this%2C%20we%20are%20going%20to%20create%20three%20groups%20to%20assign%20permission%20instead%20of%20assigning%20to%20each%20individual%20user.%20We%20create%20the%20groups%20as%20below%20in%20the%20service%20provider%20tenants.%3C%2FP%3E%0A%3CTABLE%20class%3D%22wp-block-table%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%3E%3CSTRONG%3EGroup%20Name%3C%2FSTRONG%3E%3C%2FTD%3E%0A%3CTD%3E%3CSTRONG%3EMember%20of%20the%20Group%3C%2FSTRONG%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3ETier%201%3C%2FTD%3E%0A%3CTD%3EAll%20the%20tier%201%20engineers%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3ETier%202%3C%2FTD%3E%0A%3CTD%3EAll%20the%20tier%202%20engineers%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3ETier%203%3C%2FTD%3E%0A%3CTD%3EAll%20the%20tier%203%20engineers%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%3CSTRONG%3EPrepare%20MSP%20Tenants%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThere%20is%20ARM%20template%20available%20on%20Github%20by%20Microsoft.%20We%20need%20to%20modify%20the%20parameters%20file%20as%20per%20our%20tenants.%20Download%20below%20both%20files%20and%20modify%20the%20parameters%20file.%3C%2FP%3E%0A%3CTABLE%20class%3D%22wp-block-table%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%3E%3CSTRONG%3EFile%20Name%3C%2FSTRONG%3E%3C%2FTD%3E%0A%3CTD%3E%3CSTRONG%3EDescription%3C%2FSTRONG%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fsakaldeepyadav%2FAzure-Lighthouse-DelegatedResource%2Fblob%2Fmaster%2FdelegatedResourceManagement.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EdelegatedResourceManagement.json%3C%2FA%3E%3C%2FTD%3E%0A%3CTD%3ETemplate%20JSON%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fsakaldeepyadav%2FAzure-Lighthouse-DelegatedResource%2Fblob%2Fmaster%2FdelegatedResourceManagement.parameters.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EdelegatedResourceManagement.parameters.json%3C%2FA%3E%3C%2FTD%3E%0A%3CTD%3EParameters%20JSON%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3EBefore%20modifying%20the%20file%20we%20need%20to%20gather%20certain%20information%20from%20the%20service%20provider%20tenants.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EmspName%3C%2FSTRONG%3E%3A%20Name%20of%20the%20MSP%2Fservice%20provider.%20In%20this%20case%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EAzure%20User%20Group%20Nepal.%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EmspOfferDecription%3C%2FSTRONG%3E%3A%20The%20service%20we%20offer%20to%20the%20customer.%20Here%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EAUGN%20Fully%20Managed%20Service%3C%2FEM%3E.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EmanagedByTenantid%3C%2FSTRONG%3E%3A%20Tenant%20ID%20of%20the%20MSP%20(%3CEM%3EAzure%20Active%20Directory-%26gt%3BProperties-%26gt%3BDirectory%20ID%3C%2FEM%3E)%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EprincipalId%3C%2FSTRONG%3E%3A%20Object%20Id%20of%20the%20group%2Fuser%20(Get-AzADGroup%20-DisplayName%20%E2%80%98%3CYOURGROUPNAME%3E%E2%80%99).id%20.%20Here%2C%20object%20ID%20of%20Tier1%2C%20Tier2%2C%20and%20Tier3.%3C%2FYOURGROUPNAME%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EprincipleIdDisplayName%3C%2FSTRONG%3E%3A%20the%20display%20name%20of%20the%20group%2Fuser%20in%20the%20customer%E2%80%99s%20tenant.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EroleDefinitionID%3C%2FSTRONG%3E%3A%20predefined%20GUID%20of%20the%20role%2C%20like%20Reader%2C%20Contributor%2C%20and%20Owner.%20We%20can%20find%20it%20from%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-in%2Fazure%2Frole-based-access-control%2Fbuilt-in-roles%23contributor%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%20PowerShell%20command%20to%20get%20it%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3E(Get-AzRoleDefinition%20-Name%20%E2%80%98%3CROLENAME%3E%E2%80%99).id%3C%2FROLENAME%3E%3C%2FEM%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CPRE%20class%3D%22wp-block-code%22%3E%3CCODE%3E%7B%0A%20%20%20%20%22%24schema%22%3A%20%22https%3A%2F%2Fschema.management.azure.com%2Fschemas%2F2018-05-01%2FsubscriptionDeploymentParameters.json%23%22%2C%0A%20%20%20%20%22contentVersion%22%3A%20%221.0.0.0%22%2C%0A%20%20%20%20%22parameters%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22mspName%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22value%22%3A%20%22Azure%20User%20Group%20Nepal%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%22mspOfferDescription%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22value%22%3A%20%22AUGN%20Fully%20Managed%20Service%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%22managedByTenantId%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22value%22%3A%20%2209fsdsdb677-425a-4d83-aa73-7455477bc7%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%22authorizations%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22value%22%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22principalId%22%3A%20%225ae35555-7c67-4adb-876e-67657hf9ad4c6%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22principalIdDisplayName%22%3A%20%22Tier%201%20Support%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22roleDefinitionId%22%3A%20%22acdd72a7-3385-48ef-bd42-f606fba81ae7%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22principalId%22%3A%20%22f29f1555-af6d-4555-b32c-6803a943d7d3%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22principalIdDisplayName%22%3A%20%22Tier%202%20Support%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22roleDefinitionId%22%3A%20%22b24988ac-6180-42a0-ab88-20f7382dd24c%22%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22principalId%22%3A%20%22fe514555-cf72-4agd42-8e55-dbf93d775cdf%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22principalIdDisplayName%22%3A%20%22Tier%203%20Support%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22roleDefinitionId%22%3A%20%22b24988ac-6180-42a0-ab88-20f7382dd24c%22%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%5D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EWe%20are%20ready%20with%20the%20service%20provider%E2%80%99s%20tenant%2C%20now%20we%20need%20to%20work%20on%20customer%E2%80%99s%20tenant.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeploying%20the%20Template%20in%20Customer%E2%80%99s%20Tenant%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20customer%E2%80%99s%20tenant%20must%20have%20registered%20to%20the%20%26nbsp%3B%3CSTRONG%3EMicrosoft.ManagedServices%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ebefore%20onboarding.%20To%20register%2C%20log%20in%20to%20the%20Azure%20portal%2C%20Click%20on%20the%20subscription-%26gt%3BNavigate%20to%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EResource%20providers%3C%2FEM%3E-%26gt%3BSearch%20for%20%26nbsp%3B%3CEM%3EMicrosoft.ManagedServices%3C%2FEM%3E-%26gt%3BClick%20on%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3ERegister%3C%2FEM%3E.%3C%2FP%3E%0A%3CP%3EIt%20will%20take%20a%20moment%20to%20get%20registered.%20After%20the%20registration%2C%20it%20should%20look%20like%20as%20below.%3C%2FP%3E%0A%3CFIGURE%20class%3D%22wp-block-image%22%3E%3CIMG%20class%3D%22wp-image-1242%22%20src%3D%22http%3A%2F%2Fsakaldeep.com.np%2Fwp-content%2Fuploads%2F2019%2F07%2Fregistration.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FFIGURE%3E%0A%3CP%3EThe%20ARM%20template%20we%20created%20earlier%20need%20to%20deploy%20at%20subscription%20level%20in%20each%20customer%20tenant.%20Login%20into%20customer%E2%80%99s%20tenant%20using%20PowerShell.%20The%20user%20must%20be%20non-guest%20in%20customer%E2%80%99s%20tenants.%20We%20have%20to%20repeat%20this%20step%20for%20each%20customer.%3C%2FP%3E%0A%3CPRE%20class%3D%22wp-block-code%22%3E%3CCODE%3ELogin-AzAccount%0AGet-AzSubscription%0A%24context%20%3D%20Get-AzSubscription%20-SubscriptionId%20xxxxxxx-axxx-xxx4-xxx-xxxxx%0ASet-AzContext%20%24context%0ANew-azdeployment%20-Name%20%22AUGN%22%20-Location%20westeurope%20-TemplateFile%20.%5CdelegatedResourceManagement.json%20-TemplateParameterFile%20.%5CdelegatedResourceManagement.parameters.json%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CFIGURE%20class%3D%22wp-block-image%22%3E%3CIMG%20class%3D%22wp-image-1230%22%20src%3D%22http%3A%2F%2Fsakaldeep.com.np%2Fwp-content%2Fuploads%2F2019%2F07%2Foutput.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FFIGURE%3E%0A%3CP%3E%3CSTRONG%3EOn%20MSP%20Portal%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EClick%26nbsp%3B%3CSTRONG%3EAll%20Services%3C%2FSTRONG%3E%26nbsp%3Band%20search%20for%26nbsp%3B%3CSTRONG%3EMy%20Customers%3C%2FSTRONG%3E%2C%20and%20click%20on%20it.%20In%20the%20new%20window%20click%20on%26nbsp%3B%3CSTRONG%3EMy%20Customers%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CFIGURE%20class%3D%22wp-block-image%22%3E%3CIMG%20class%3D%22wp-image-1234%22%20src%3D%22http%3A%2F%2Fsakaldeep.com.np%2Fwp-content%2Fuploads%2F2019%2F07%2F1.1.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FFIGURE%3E%0A%3CP%3EWe%20can%20see%20above%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3ECustomer%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(janakpur)%20is%20under%20the%20customer%20section%20and%20see%20below%20under%20the%20Delegations%2C%20we%20see%20the%20appropriate%20right%20has%20assigned.%3C%2FP%3E%0A%3CFIGURE%20class%3D%22wp-block-image%22%3E%3CIMG%20class%3D%22wp-image-1223%22%20src%3D%22http%3A%2F%2Fsakaldeep.com.np%2Fwp-content%2Fuploads%2F2019%2F07%2F2-1024x221.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FFIGURE%3E%0A%3CP%3EWe%20can%20more%20dig%20down%20and%20see%20IAM%2C%20resource%20group%2C%20resources%2C%20etc.%20We%20can%20access%20the%20resources%20of%20janakpur%20(customer)%20without%20switching%20the%20directory.%3C%2FP%3E%0A%3CUL%20class%3D%22wp-block-gallery%20columns-1%20is-cropped%22%3E%0A%3CLI%20class%3D%22blocks-gallery-item%22%3E%0A%3CFIGURE%3E%3CIMG%20class%3D%22wp-image-1224%22%20src%3D%22http%3A%2F%2Fsakaldeep.com.np%2Fwp-content%2Fuploads%2F2019%2F07%2F3-1024x463.png%22%20border%3D%220%22%20alt%3D%22%22%20data-id%3D%221224%22%20data-link%3D%22http%3A%2F%2Faugn.azurewebsites.net%2F%3Fattachment_id%3D1224%22%20%2F%3E%3C%2FFIGURE%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3EOn%20Customer%20Portal%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EClick%26nbsp%3B%3CSTRONG%3EAll%20Services%3C%2FSTRONG%3E%26nbsp%3Band%20search%20for%26nbsp%3B%3CSTRONG%3EService%20Provider%3C%2FSTRONG%3E%2C%20and%20click%20on%20it.%20In%20the%20new%20window%20click%20on%26nbsp%3B%3CSTRONG%3EService%20Provider%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CFIGURE%20class%3D%22wp-block-image%22%3E%3CIMG%20class%3D%22wp-image-1236%22%20src%3D%22http%3A%2F%2Fsakaldeep.com.np%2Fwp-content%2Fuploads%2F2019%2F07%2F4.1.png%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2FFIGURE%3E%0A%3CP%3EHere%2C%20we%20can%20see%2C%20Azure%20User%20Group%20Nepal%20is%20a%20service%20provider%20for%20janakpur.%20As%20a%20customer%2C%20we%20can%20see%20what%20are%20the%20permission%20service%20provider%20has%20in%20the%20tenants%20as%20below.%3C%2FP%3E%0A%3CUL%20class%3D%22wp-block-gallery%20columns-1%20is-cropped%22%3E%0A%3CLI%20class%3D%22blocks-gallery-item%22%3E%0A%3CFIGURE%3E%3CIMG%20class%3D%22wp-image-1260%22%20src%3D%22http%3A%2F%2Fsakaldeep.com.np%2Fwp-content%2Fuploads%2F2019%2F07%2F6.png%22%20border%3D%220%22%20alt%3D%22%22%20data-id%3D%221260%22%20data-link%3D%22http%3A%2F%2Faugn.azurewebsites.net%2F%3Fattachment_id%3D1260%22%20%2F%3E%3C%2FFIGURE%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIf%20any%20new%20engineer%20joins%20the%20service%20provider%20team%20and%20once%20he%2Fshe%20will%20be%20in%20the%20right%20group%2C%20he%2Fshe%20will%20automatically%20get%20access%20to%20the%20customer%E2%80%99s%20tenants.%20We%20don%E2%80%99t%20need%20to%20invite%20them%20manually.%20And%20once%20he%2Fshe%20will%20leave%20the%20service%20provider%20and%20removed%20from%20the%20group%2C%20automatically%20permission%20will%20withdraw%20and%20we%20don%E2%80%99t%20need%20to%20delete%20guest%20user%20from%20the%20customer%E2%80%99s%20tenant.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-756436%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-803552%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Lighthouse%3A%20Cross%20Tenant%20Management%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-803552%22%20slang%3D%22en-US%22%3EI%20have%20a%20ton%20of%20questions%20about%20this%20service.%20Where%20would%20the%20best%20place%20to%20be%20to%20post%20them%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-804651%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Lighthouse%3A%20Cross%20Tenant%20Management%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-804651%22%20slang%3D%22en-US%22%3EHi%20Lynn%2C%20you%20can%20post%20here.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1324267%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Lighthouse%3A%20Cross%20Tenant%20Management%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1324267%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F147143%22%20target%3D%22_blank%22%3E%40sakaldeep%20yadav%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20published%20Azure%20shared%20dashboard%20into%20my%20customer%20tenant%20resource%20group%20using%20Azure%20Lighthouse.%26nbsp%3B%20However%20i%20do%20not%20understand%20how%20to%20implement%20RBAC%20to%20access%2Flimit%20users%20from%20accessing%20this%20dashboard%20at%20a%20customer%20tenant.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAppreciate%20any%20advice.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1397369%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Lighthouse%3A%20Cross%20Tenant%20Management%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1397369%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F147143%22%20target%3D%22_blank%22%3E%40sakaldeep%20yadav%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20a%20look%20at%20the%20community%20pages%2C%20but%20can't%20find%20a%20section%20specific%20to%20Lighthouse%2C%20so%20pardon%20me%20for%20posting%20here.%20If%20there%20is%20a%20dedicated%20space%2C%20I%20would%20appreciate%20a%20link.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20an%20issue%20pulling%20in%20customer%20log%20information%20with%20Log%20Analytics.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20group%20that%20gets%20assigned%20Contributor%20rights%20to%20the%20customer%20environment%20at%20subscription%20level.%20I%20am%20able%20to%20browse%20all%20resources%2C%20and%20I%26nbsp%3B%20have%20verified%20that%20I%20can%20create%20resources.%20However%2C%20when%20I%20access%20the%20Log%20Analytics%20workspace(s)%2C%20I%20am%20unable%20to%20run%20any%20queries%20(or%20query%20any%20VM%20performance%20data%20through%20Azure%20Monitor)%2C%20and%20it's%20as%20if%20it%20just%20hangs%20there%20trying%20to%20retrieve%20the%20log%20data.%20Attached%20is%20a%20snip%20of%20what%20I%20see.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3ELogging%20in%20to%20the%20customer%20tenant%20directly%20with%20Owner%20permissions%20I%20am%20able%20to%20successfully%20query%20the%20logs%20and%20view%20VM%20performance%20data.%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20advise%20if%20there%20are%20any%20specific%20considerations%20in%20terms%20of%20permissions.%20I%20assumed%20Contributor%20access%20would%20have%20sufficed.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3CBR%20%2F%3E%3CBR%20%2F%3ESebastiaan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1512481%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Lighthouse%3A%20Cross%20Tenant%20Management%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512481%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F147143%22%20target%3D%22_blank%22%3E%40sakaldeep%20yadav%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Enice%20short%20explanation%2C%20i%20have%20another%20question%20%2C%20have%20searched%20around%20several%20blogs%20and%20so%20on%20the%20internet.%20im%20working%20on%20a%20case%2C%20where%20i%20want%20to%20use%20PIM%20for%20the%20groups%20that%20i%20have%20created%20for%20the%20delegated%20access%20with%20azure%20lighthouse.%20Any%20experience%20with%20that%3F%20Is%20it%20even%20possible%3F%20or%20should%20i%20post%20this%20on%20azure%20active%20directory%3C%2FP%3E%3CP%3EI%20could%20not%20find%20any%20on%20this%20except%20some%20suggestion%20on%20the%20user%20voice.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ffeedback.azure.com%2Fforums%2F169401-azure-active-directory%2Fsuggestions%2F38627143-customer-tenants-should-be-manageable-by-pim%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ffeedback.azure.com%2Fforums%2F169401-azure-active-directory%2Fsuggestions%2F38627143-customer-tenants-should-be-manageable-by-pim%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1574719%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Lighthouse%3A%20Cross%20Tenant%20Management%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1574719%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F194398%22%20target%3D%22_blank%22%3E%40Joe%20Tahsin%3C%2FA%3E%26nbsp%3BKeep%20an%20eye%20out.%26nbsp%3B%20It%20was%20announced%20at%20Insight%20and%20is%20in%20Private%20Preview.%3C%2FP%3E%3C%2FLINGO-BODY%3E
MVP

Azure Lighthouse makes MSP/service provider’s life easier in terms of customer/tenants management and onboarding.

PC: Nikhil Sharma

Azure Lighthouse has changed things in many ways and here we are discussing one of them. As a service provider, earlier, to access the customer’s resources in the process of giving support our engineers must be in customer’s tenants as a guest user for all the customer. From the engineer’s point of view, they need to switch the directory/tenants in order to work with a different customer. Now, we don’t need to be a guest user in each customer tenants and we don’t need to switch directory/tenants in order to work with multiple customers. Once we login into the portal, we can see all the customers under ‘My Customer‘ and we can access their resources from there. As shown in below image ‘janakpur’ is the customer and once we click on the janakpur, we can navigate to the subscription and will get access to the resources as per the permission assigned.

On top of this, it is highly automated and has many ARM template to make the onboarding process easier.

In this post, we are going to demonstrate how to defines roles and permission of support engineers into all the customer’s tenants.

Preresequites

You must have at least two tenants to perform this task, one will be treated as an MSP and another as a customer. The customer’s tenant must have an active Azure subscription.

Scenario

Azure user Group Nepal (AUGN) is a service provider and has multi-levels of support team named ‘ Tier 1 Engineer’, ‘Tier 2 Engineer’, and ‘Tier 3 Engineer’. As a service provider, we want Tier 1 engineer should have Read permission, Tier 2 and Tier 3 engineer should have Contributor permission in all customer’s tenants. To achieve this, we are going to create three groups to assign permission instead of assigning to each individual user. We create the groups as below in the service provider tenants.

Group Name Member of the Group
Tier 1 All the tier 1 engineers
Tier 2 All the tier 2 engineers
Tier 3 All the tier 3 engineers

Prepare MSP Tenants

There is ARM template available on Github by Microsoft. We need to modify the parameters file as per our tenants. Download below both files and modify the parameters file.

File Name Description
delegatedResourceManagement.json Template JSON
delegatedResourceManagement.parameters.json Parameters JSON

Before modifying the file we need to gather certain information from the service provider tenants.

  • mspName: Name of the MSP/service provider. In this case, Azure User Group Nepal.
  • mspOfferDecription: The service we offer to the customer. Here, AUGN Fully Managed Service.
  • managedByTenantid: Tenant ID of the MSP (Azure Active Directory->Properties->Directory ID)
  • principalId: Object Id of the group/user (Get-AzADGroup -DisplayName ‘<yourGroupName>’).id . Here, object ID of Tier1, Tier2, and Tier3.
  • principleIdDisplayName: the display name of the group/user in the customer’s tenant.
  • roleDefinitionID: predefined GUID of the role, like Reader, Contributor, and Owner. We can find it from here. PowerShell command to get it (Get-AzRoleDefinition -Name ‘<roleName>’).id
{
    "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentParameters.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "mspName": {
            "value": "Azure User Group Nepal"
        },
        "mspOfferDescription": {
            "value": "AUGN Fully Managed Service"
        },
        "managedByTenantId": {
            "value": "09fsdsdb677-425a-4d83-aa73-7455477bc7"
        },
        "authorizations": {
            "value": [
                {
                    "principalId": "5ae35555-7c67-4adb-876e-67657hf9ad4c6",
                    "principalIdDisplayName": "Tier 1 Support",
                    "roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
                },
                {
                    "principalId": "f29f1555-af6d-4555-b32c-6803a943d7d3",
                    "principalIdDisplayName": "Tier 2 Support",
                    "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c"                    
                },

                {
                    "principalId": "fe514555-cf72-4agd42-8e55-dbf93d775cdf",
                    "principalIdDisplayName": "Tier 3 Support",
                    "roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c"                    
                }
                
            ]
        }
    }
}

We are ready with the service provider’s tenant, now we need to work on customer’s tenant.

Deploying the Template in Customer’s Tenant

The customer’s tenant must have registered to the  Microsoft.ManagedServices before onboarding. To register, log in to the Azure portal, Click on the subscription->Navigate to the Resource providers->Search for  Microsoft.ManagedServices->Click on Register.

It will take a moment to get registered. After the registration, it should look like as below.

The ARM template we created earlier need to deploy at subscription level in each customer tenant. Login into customer’s tenant using PowerShell. The user must be non-guest in customer’s tenants. We have to repeat this step for each customer.

Login-AzAccount
Get-AzSubscription
$context = Get-AzSubscription -SubscriptionId xxxxxxx-axxx-xxx4-xxx-xxxxx
Set-AzContext $context
New-azdeployment -Name "AUGN" -Location westeurope -TemplateFile .\delegatedResourceManagement.json -TemplateParameterFile .\delegatedResourceManagement.parameters.json

On MSP Portal

  1. Click All Services and search for My Customers, and click on it. In the new window click on My Customers.

We can see above the Customer (janakpur) is under the customer section and see below under the Delegations, we see the appropriate right has assigned.

We can more dig down and see IAM, resource group, resources, etc. We can access the resources of janakpur (customer) without switching the directory.

On Customer Portal

  1. Click All Services and search for Service Provider, and click on it. In the new window click on Service Provider.

Here, we can see, Azure User Group Nepal is a service provider for janakpur. As a customer, we can see what are the permission service provider has in the tenants as below.

If any new engineer joins the service provider team and once he/she will be in the right group, he/she will automatically get access to the customer’s tenants. We don’t need to invite them manually. And once he/she will leave the service provider and removed from the group, automatically permission will withdraw and we don’t need to delete guest user from the customer’s tenant.

6 Replies
I have a ton of questions about this service. Where would the best place to be to post them?
Hi Lynn, you can post here.

@sakaldeep yadav 

 

I published Azure shared dashboard into my customer tenant resource group using Azure Lighthouse.  However i do not understand how to implement RBAC to access/limit users from accessing this dashboard at a customer tenant.

 

Appreciate any advice.

 

Thanks.

@sakaldeep yadav 

I had a look at the community pages, but can't find a section specific to Lighthouse, so pardon me for posting here. If there is a dedicated space, I would appreciate a link.

 

I have an issue pulling in customer log information with Log Analytics.

 

I have a group that gets assigned Contributor rights to the customer environment at subscription level. I am able to browse all resources, and I  have verified that I can create resources. However, when I access the Log Analytics workspace(s), I am unable to run any queries (or query any VM performance data through Azure Monitor), and it's as if it just hangs there trying to retrieve the log data. Attached is a snip of what I see.

Logging in to the customer tenant directly with Owner permissions I am able to successfully query the logs and view VM performance data.

Please advise if there are any specific considerations in terms of permissions. I assumed Contributor access would have sufficed.

Thanks

Sebastiaan

@sakaldeep yadav 

 

nice short explanation, i have another question , have searched around several blogs and so on the internet. im working on a case, where i want to use PIM for the groups that i have created for the delegated access with azure lighthouse. Any experience with that? Is it even possible? or should i post this on azure active directory

I could not find any on this except some suggestion on the user voice. 

https://feedback.azure.com/forums/169401-azure-active-directory/suggestions/38627143-customer-tenant... 

 

@Deleted Keep an eye out.  It was announced at Insight and is in Private Preview.