Sign in with your Apple ID in Apple Music on Windows
You already have an Apple ID if you subscribe to Apple Music or have an iCloud account. If you don’t have an Apple ID, you can set one up using Apple Music.
Set up a new Apple ID in the Apple Music app
In the Apple Music app on your Windows computer, select Sign In at the bottom of the sidebar, then select Sign In.
Select Create New Apple ID and follow the onscreen instructions.
Sign in to or out of the Apple Music app
After you set up an Apple ID, you can subscribe to Apple Music, sign in to the iTunes Store to buy music, view or change your account information, and see your purchase history.
Note: If you already signed in to the Apple TV app, you’re automatically signed in to Apple Music.
In the Apple Music app on your Windows computer, do one of the following:
Sign in: Select Sign In at the bottom of the sidebar, select Sign In, enter your Apple ID and Password, then press Enter.
If you forgot your Apple ID or password, select “Forgot Apple ID or password?” and follow the onscreen instructions.
Sign out: Select your name at the bottom of the sidebar, then select Sign Out.
See the Apple Support articles Sign in with your Apple ID and Two-factor authentication for Apple ID.