public RoleAssignment(string roleDefinitionName, string signInName, HostPool scope, bool isServicePrincipal = false)
        {
            RoleDefinitionName = roleDefinitionName;
            if (isServicePrincipal)
            {
                AppId = signInName;
            }
            else
            {
                SignInName = signInName;
            }

            TenantGroupName = scope.TenantGroupName;
            TenantName      = scope.TenantName;
            HostPoolName    = scope.HostPoolName;
        }
 public RegistrationInfo(HostPool hostPool)
 {
     TenantGroupName = hostPool.TenantGroupName;
     TenantName      = hostPool.TenantName;
     HostPoolName    = hostPool.HostPoolName;
 }