def server_ad_admin_set(cmd, client, resource_group_name, server_name, **kwargs
    ):
    """
    Sets a server's AD admin.
    """
    from azure.cli.core._profile import Profile
    profile = Profile(cli_ctx=cmd.cli_ctx)
    sub = profile.get_subscription()
    kwargs['tenant_id'] = sub['tenantId']
    return client.create_or_update(server_name=server_name,
        resource_group_name=resource_group_name, properties=kwargs)
