Microsoft Corp. lost the first round Monday in an effort to shift a proposed class action alleging unfair business practices out of San Francisco.

S.F. Superior Court Judge Stuart Pollak ruled coordination of more than 20 pending cases should remain in the city despite arguments by the Redmond, Wash., software maker’s attorneys that San Francisco’s proximity to Silicon Valley — home to many of Microsoft’s competitors — could prejudice a jury pool.