How to: Import PST Files into Office 365 Mailboxes

4 min read

I was recently tasked with migrating a client from POP3 email to Office 365 and I used the PST upload method of migration. Follow this simple guide and video to get an idea of how the process works.

Full guide follows after the break

Part 1 – Day 1 – Preperation

  1. Login as your Global Admin user or if required add the global admin role to your user.
  2. On the sidebar click Admin Centres -> Exchange -> Permissions -> Admin Roles
  3. Click Organisation Management Role and press the edit button.
  4. Under the Roles section click plus symbol and add Mailbox Import Export Role
  5. Under Members add your Global Admin user. Save the Group
  6. Wait at least 24 hours

Part 2 – Day 2 – Upload PSTs to Azure

  1. From main Office 365 admin go to Users -> Data Migration -> Upload PST
  2. Click New Import Job and give it a name in lower case only and press next.
  3. Open notepad ready to take notes.
  4. Click the link to Show network upload SAS URL and copy to your notepad when ready
  5. Click the Link to download the Azure AzCopy Tool and install.
  6. Download Azure Storage Explorer from and install.
  7. Click to Open Companion Guide -> Step by Step -> Use network upload to import PST files
  8. Click Step 2: Upload your PST files to office 365 and copy the sample command in point 3 to your notepad
  9. Click Step 4: Create the PST Import mapping file – Click Download a copy of the PST Import Mapping File
  10. Place all your PSTs to upload into a folder eg (C:\PST)
  11. In your notepad edit the sample command
    AzCopy.exe /Source:<Location of PST files> /Dest:<SAS URL> /V:<Log file location>

    Replacing the Items in chevrons with your specific information. EG C:\PST (use speech marks if a long filename path or has spaces) Dest is your SAS URL from elsewhere in your notepad. Please put this in speech marks. Eg and lastly put a valid path to make a log file Eg C:\PST\upload.log

  12. From Start Menu open the Microsoft Azure Storage Command Line
  13. Copy and paste your completed command from notepad to the command prompt and press return to execute it.
  14. Wait for this to finish. If anything fails, check the log file, correct issue & try again.
  15. Open Azure Storage Explorer and click the plug icon on the left.
  16. Choose the use SAS option and press next, then use SAS URL and paste in your url from your notepad to the shared storage space. Press Next, then Connect
  17. Confirm all the files you expect to be there have uploaded and have correct sizes etc
  18. Important: Right click ingestiondata in the tree and click Detach

Part 3 – Day 2 or 3 (Depending on upload time)
Mapping File and Import

  1. Open your downloaded sample mapping file
  2. Fill out a line for each pst file you uploaded with the following info in each column
    • Workload – Leave this as Exchange
    • FilePath – Leave this blank unless you have put files in Azure into a folder
    • Name – The filename of your PST file.
    • Mailbox – The primary mailbox email / sign in of the destination mailbox
    • IsArchive – If this is an archive.pst, click yes to import to archive instead of mailbox
    • TargetRootFolder – If items are to be imported to a subfolder of mailbox type it here e.g. /Imported would place all items into a folder called imported as a subfolder of the root of the mailbox.
    • SPFileContainer, SPManifestContainer, SPSiteUrl – Leave Blank
    • Save your mapping file.
  3. Return to Office 365 Admin -> Users -> Data Migration -> Upload PST
  4. Click New Import Job and give it a name in lower case only and press next.
  5. Tick I’m done uploading my files and I have access to the mapping file.
  6. When requested attach your mapping file and click next. It will be verified and then an analysis will be run
  7. Give this 5 minutes to complete.
  8. Refresh the import job page and will show when ready to upload.
  9. You will be prompted to filter data if required. Eg emails older than…
  10. Start the import job – Keep checking the import screen for progress on the import.

All done.

You can repeat as many times as is necessary, you may want to do in batches depending on the time you have available and your upload bandwidth.

If you have any questions please ask.

Leave a Comment