Using AZCopy

April 11, 2018 | by iaur | posted as M365 Migration, PST(EXO & SPO)

It depends on the capacity of your network, but it typically takes several hours for each terabyte (TB) of data to be uploaded to the Azure storage area for your organization. After the PST files are copied to the Azure storage area, a PST file is imported to an Office 365 mailbox at a rate of at least 24 GB per day. If this rate doesn’t meet your needs, you might consider other methods for migrating email data to Office 365. For more information, see Ways to migrate multiple email accounts to Office 365.

Step 1:  Assign the proper permission on both EAC and SecCom

  • Add Mailbox Import Export role

EAC > Permission > Admin Roles > Organization Management > Assigned roles > Mailbox Import Export role

Office 365 
Admin 
Exchange admin center 
dashboard 
recipients 
permissions 
compliance management 
organization 
protection 
advanced threats 
mail low 
mobile 
public folders 
unified messaging 
hybrid 
admin roles user roles 
Compliance Management 
Discovery Management 
Help Desk 
Hygiene Management 
OrganZation Management 
Recipient Management 
Records Management 
Outlook Web App policies 
RIM-MaiIboxAdminsc8763a4bba8d43238d6d51f12875fb62 
Security Administrator 
Security Reader 
TenantAdmins -410814694 
LIM Management 
Vie\'FOnIy Organization Management 
Organization Management 
Members of this management role group have permissions to manage Exchange objects and their properties in the 
Exchange organization. Members can also delegate role groups and management roles in the organization. This role 
group shouldn't be deleted. 
Assigned Roles 
Audit Logs 
Compliance Admin 
Data Loss Prevention 
Distribution Groups 
E-Mail Address Policies 
Federated Sharing 
Information Rights Management 
Journaling 
Legal Hold 
Mail Enabled Public Folders 
Mail Recipient Creation 
Mail Recipients 
Mail Tips 
Mailbox Import Export 
Message Tracking 
Migration

You have to be assigned the Mailbox Import Export role in Exchange Online to import PST files to Office 365 mailboxes. By default, this role isn’t assigned to any role group in Exchange Online. You can add the Mailbox Import Export role to the Organization Management role group. Or you can create a new role group, assign the Mailbox Import Export role, and then add yourself as a member. For more information, see the “Add a role to a role group” or the “Create a role group” sections in Manage role groups.

  • Add Mail Recipients role

You have to be assigned the Mail Recipients role in Exchange Online. By default, this role is assigned to the Organization Management and Recipient Management roles groups.

EAC > Permission > Admin Roles > Organization Management > Add your account as a member

EAC > Permission > Admin Roles > Recipient Management > Add your account as a member

  • Or assign your role as a Global Administrator

Step 2: Copy the SAS URL and install Azure AzCopy

  • Go to https://protection.office.com and sign in using the credentials for an administrator account in your Office 365 organization.
  • In the left pane of the Security & Compliance Center, click Data governance > Import.
    Note: You have to be assigned the appropriate permissions to access the Import page in the Security & Compliance Center. See the Before you begin section for more information.
  • On the Import page, click 
Add Icon

 New import job.
The import job wizard is displayed.

  • Type a name for the PST import job, and then click Next. Use lowercase letters, numbers, hyphens, and underscores. You can’t use uppercase letters or include spaces in the name.
  • On the Do you want to upload or ship data? page, click Upload your data and then click Next.
Click Upload your data to create a network upload import job
  • On the Import data page, do the following two things:
Machine generated alternative text:
Kick off an importjob to bring 
your data into Office 365. 
Name your job 
Import data 
Import data 
1. Review the companion guide for uploading email (PST) data. The instructions in this guide will heli 
you complete the steps in this wizard. 
Open the companion guide for uploading email (PST) data. 
2. Copy the SAS URL for network upload. You'll use this in the Dest parameter of the Azure AzCopy t 
https://S2e9Sbb014eö4e77b830d31_blob_core_windows.net/ng 
Copy to clipboard 
3. use the Azure AzCopy tool to upload your files. 
Download Azure AzCopy 
4. Prepare the mapping file. 
I'm done uploading my files * 
I have access to the mapping file * 
Back 
Next 
Cancel
  • In step 2, click Show network upload SAS URL. After the URL is displayed, copy it and save it to a file. Be sure to copy the entire URL.
  • In step 3, click Download Azure AzCopy to download and install the Azure AzCopy tool. As previously stated, version 7.1.0 will be downloaded.
    In the pop-up window, click Run to install AzCopy.
icrosoft Azu 
o 
o 
S rage 
Set 
Welcome to the Microsoft Azure Storage 
Tools - v7.1.0 Setup Wizard 
The Setup Wizard will install Microsoft Azure Storage Tools - 
v7.1.0 on your computer Click Next to contnue or Cancel to 
exit the Setup Wizard. 
Sack

Note: Be sure to install the AzCopy tool in the default location (%ProgramFiles(x86)%\Microsoft SDKs\Azure) on a computer running 64-bit Windows).

  • You can leave the Import data page open (in case you need to copy the SAS URL again) or click Cancel to close it.

Step 3: Prepare the files for mapping using MS Azure Storage Tools

  • Complete the code below
AzCopy.exe /Source:”LOCATION_OF_THE_PST” /Dest:”SAS_URL_HERE”  /V:LOCATION_OF_THE_LOGS /Y

Note:

Location of the PST file(note: do not place the name of the PST file, just the location of the PST)

Make sure the folders are accessible and can be renamed or edit

AzCopy.exe /Source:”C:\Users\admin_fs\Desktop\ForImport” /Dest:”https://52e95bb014ab4e77b830d31.blob.core.windows.net/ingestiondata?sv=2015-04-05&sr=c&si=IngestionSasForAzCopy201805152117322234&sig=mb3O27Qm78TM8XNnNf%2BWBiLMExZh5Mm4eo3zDfPqrV4%3D&se=2018-07-14T00%3A17%3A13Z”  /V:C:\Users\admin_fs\Desktop\Logs /Y

  • Open Azure Storage Tools Command line
  • Paste the completed code
Machine generated alternative text:
Administrator: Microsoft Azure Storage tools 
Files / Source : 
/ Dest : "https://52e95bbø14ab4e77b83ød31 . blob. core . windows . ne 
-2018-07-14røøz3R1?z3R13z•• 
[2018/06/14 Fail to open verbose log File 
ktop\Logs 
. Access to the path ' is denied.. 
Rzc 
py will not write verbose log in this transferring. 
[2018/06/14 [WARNING] ro transfer a directory please specify recursive 
ode option / S or File pattern option / Pattern. Otherwise all Files in the local 
source directory will be transfered in a non—recursive mode . 
inished 4 OF total 4 File(s). 
[2018/06/14 Transfer summary: 
otaI Files transferred: 4 
ransFer successfully: 
ransFer skipped: 
ransFer Failed: 
lapsed time: 
: \Program Files 
SDKs\Rzure

Step 4:  Create a mapping file (CSV file)  

  • Download the sample csv below

https://go.microsoft.com/fwlink/p/?LinkId=544717

(note: you can just download a sample of the template of the mapping file) 

  • Fill it out each column accordingly

Workload :Office 365 service

Name: Name of the PST file

Mailbox : The email address of the mailbox you want to map the pst file

IsArchive: Where the pst will be mapped in the Online Archive

Sample:

Machine generated alternative text:
Workload 
Exchange 
Exchange 
Exchange 
FilePath 
Name 
berniel.pst 
bernie3.pst 
berniel.pst 
Mailbox 
userl@faceresionem.xvz 
user2@faceresionem.xvz 
user3@faceresionem.onmicrosoft.com 
IsArchive TargetRootFolder 
FALSE \ 
FALSE \ 
FALSE 
SPFileContainer SPManifestContainer SPSiteUrl 
2 
4

Step 5: Complete the Import job

  • Go back to the Import Data page
  • Check the two boxes
Kick off an import job to bring 
your data into Office 365. 
Name your job 
Import data 
x 
Import data 
1. Review the companion guide for uploading email (PST) data. The instructions in this guide will help 
you complete the steps in this wizard. 
Open the companion guide for uploading email (PST) data. 
2. Copy the SAS URL for network upload. You'll use this in the Dest parameter of the Azure AzCopy tool. 
https://S2e9Sbb014eö4e77b830d31_blob_core_windows.net/ng 
Copy to clipboard 
3. use the Azure AzCopy tool to upload your files. 
Download Azure AzCopy 
4. Prepare the mapping file. 
I'm done uploading my files * 
I have access to the mapping file * 
Back 
Next 
Cancel
  • Select the mapping file and click validate
Kick off an import job to bring 
your data into Office 365. 
Name your job 
Import data 
Select the mapping file 
Select the CSV file that contains the mapping information. 
Mapping file name * 
PstlmportMappingFile.csv 
+ Select mapping file 
Back 
Validate 
Cancel 
x 
Feedback
  • If all green, click save and wait
Kick off an importjob to bring 
your data into Office 365. 
Name your job 
Import data 
x 
Upload to the cloud 
Success! 
You've added an import job "test" into Offce 365. 
When your data is ready, you'll be able to trim it based on age, type and owner before importing into Office 365. 
Feedback

Step 6: Import the completed job to Office 365

  • Wait for the status and progress to say Complete and Ready to import
+ New import job 
Created 
6/14/18 1:02 AM 
5/15/18 9:48 PM 
CD Refresh 
Search 
Job name 
test 
test_import_flwa 
Download li: 
Status 
Analysis in progress 
Analysis completed 
Progress 
Ready to import to Office 365
  • Click import to Office 365
test_import_flwa 
Import to Office 365 
Status 
Analysis completed 
File name 
berrie2.pst 
berriel.pst 
Total files: 2. 
Delete job 
Complete 
Complete 
2 completed, O skipped due to corruption, O skipped due to encryption, O skipped due to analysis failure. 
Last modified time 
5/15/18 9:55 PM 
Job type 
Network upload 
Created by 
Feedback
  • Filter your data
Know your data. Import what really 
matters into Office 365. 
Filter your data 
Import data to Office 365 
Decide if you want to filter your data before importing it 
Want to make sure you're importing only the data that matters most to your organization? 
Before you kick off the import, filter your data based on things like its age, type, or owner. 
100% 
100% (2.97 MB) of your data is over 2 years Old. You can filter out this 
data if you don't need it in Office 365. 
Do you want to filter your data? 
O Yes, I want to filter it before importing 
No, I want to import everything 
Next 
Cancel
  • Finalize the import
Know your data. Import what really 
matters into Office 365. 
Filter your data 
Import data to Office 365 
Import data to Office 365 
Success! 
2.97 MB of the job "test_import_flwa" will be imported. Check the Progress column on the Import page to see how much data's been imported.
  • Monitor the import
test_import_flwa 
Ij Delete job 
Status 
Import in progress 
File name 
berrie2.pst 
berriel.pst 
Filters 
I terns imported 
Iterns skipped (corruptm 
Iterns skipped (large) 
Iterns skipped (other) 
Status detail 
Ir progress - 
In progress 
Age: Keeps all data. 
Type: Includes all types. 
Users: Includes all users. 
Last modified time 
5/15/18 9:55 PM

Reference

https://support.office.com/en-us/article/use-network-upload-to-import-your-organization-s-pst-files-to-office-365-103f940c-0468-4e1a-b527-cc8ad13a5ea6?ui=en-US&rs=en-US&ad=US#step1