AZ-802 Chương 11 5 Labs Ngày tạo: 22/05/2026

Azure Files, Azure File Sync và Hybrid Storage

Kết nối file services on-premises với Azure Files, Azure File Sync, cloud tiering, AzCopy và storage migration.

Thông tin thực hành

Exam: AZ-802 — Windows Server Hybrid Administrator

Ngày tạo: 22/05/2026

Nền tảng: Windows Server 2022/2025 lab, Windows 11, Azure, WAC

Ưu tiên: PowerShell/CLI trước, GUI là cách 02

Lý thuyết gắn gọn

Azure Files

Azure Files là dịch vụ file share SMB/NFS trên Azure. Nó phù hợp khi cần file share managed mà không muốn tự vận hành file server.

Azure File Sync

Azure File Sync đồng bộ file server on-premises với Azure Files. File server nội bộ vẫn phục vụ người dùng tại chi nhánh, còn Azure làm cloud endpoint.

Cloud tiering

Cloud tiering giữ file hay dùng trên local server và đưa file ít dùng lên Azure để tiết kiệm dung lượng local. File vẫn hiển thị nhưng có thể được tải về khi mở.

AzCopy

AzCopy là công cụ dòng lệnh copy dữ liệu tốc độ cao giữa local và Azure Storage. Nó hữu ích khi migration hoặc đồng bộ dữ liệu lớn.

Storage security

Bảo mật storage gồm RBAC, private endpoint, firewall, encryption và audit. Không nên để storage account public nếu không có yêu cầu rõ ràng.

Ghi chú tình huống doanh nghiệp

  • Không áp cấu hình trực tiếp lên production. Dùng OU/lab server/snapshot trước.
  • Ưu tiên PowerShell để lặp lại được, audit được và dùng trong automation.
  • GUI/WAC/Server Manager dùng để đối chiếu, vận hành hoặc đào tạo người mới.
  • Mỗi lab cần có evidence: output lệnh, Event Log, screenshot hoặc trạng thái Azure resource.

Bài tập lab step-by-step

LAB-051 PowerShell Windows Server Windows Admin Center Azure Portal Azure CLI

Thiết kế Azure Files cho branch office

Nền tảng thực hành: PowerShell, Windows Server, Windows Admin Center, Azure Portal, Azure CLI

Terminal: Windows Terminal / PowerShell 7; CMD nếu lab yêu cầu; Linux/macOS Terminal chỉ dùng cho Azure CLI từ máy quản trị.

Phiên bản: Windows Server 2022 hoặc 2025 lab, Windows 11 admin workstation, Windows Admin Center latest, Azure CLI 2.x, Az PowerShell 12.x+. Ngày tạo: 22/05/2026.

Cách 01 — PowerShell / CLI ưu tiên

  1. Mở PowerShell Administrator trên file server lab.
  2. Cài role File Server/DFS/FSRM nếu cần.
  3. Tạo thư mục, SMB share và phân quyền NTFS/share.
  4. Cấu hình DFS/FSRM/Azure File Sync hoặc migration theo lab.
  5. Kiểm tra truy cập từ client domain.
  6. Kiểm tra Event Viewer, SMB sessions và quyền truy cập.
  7. Ghi lại permission matrix và kết quả validate.
  8. Cleanup share, sync group hoặc migration demo.
PowerShell / CLI mẫu
New-Item -ItemType Directory -Path D:\Shares\Data
New-SmbShare -Name Data -Path D:\Shares\Data -FullAccess 'CORP\GG-IT-Admins'
Get-SmbShare -Name Data

Cách 02 — GUI / Windows Admin Center / Server Manager / Azure Portal

  1. Mở Windows Admin Center, Server Manager/MMC hoặc Azure Portal tùy lab.
  2. Chọn đúng server, role hoặc Azure resource lab.
  3. Tạo/cấu hình theo nội dung lab.
  4. Mở Overview, Event Viewer, Activity Log hoặc Monitoring để kiểm tra.
  5. Chụp screenshot cấu hình chính.
  6. Cleanup nếu không dùng.
Kiểm tra kết quả

Có output PowerShell/CLI, screenshot GUI/WAC/Portal hoặc Event Log chứng minh cấu hình hoạt động đúng.

Cleanup

Xóa VM, Resource Group, GPO/object demo, vault, policy assignment hoặc cấu hình lab nếu không còn dùng.

LAB-052 PowerShell Windows Server Windows Admin Center Azure Portal Azure CLI

Cấu hình Azure File Sync

Nền tảng thực hành: PowerShell, Windows Server, Windows Admin Center, Azure Portal, Azure CLI

Terminal: Windows Terminal / PowerShell 7; CMD nếu lab yêu cầu; Linux/macOS Terminal chỉ dùng cho Azure CLI từ máy quản trị.

Phiên bản: Windows Server 2022 hoặc 2025 lab, Windows 11 admin workstation, Windows Admin Center latest, Azure CLI 2.x, Az PowerShell 12.x+. Ngày tạo: 22/05/2026.

Cách 01 — PowerShell / CLI ưu tiên

  1. Mở PowerShell Administrator trên file server lab.
  2. Cài role File Server/DFS/FSRM nếu cần.
  3. Tạo thư mục, SMB share và phân quyền NTFS/share.
  4. Cấu hình DFS/FSRM/Azure File Sync hoặc migration theo lab.
  5. Kiểm tra truy cập từ client domain.
  6. Kiểm tra Event Viewer, SMB sessions và quyền truy cập.
  7. Ghi lại permission matrix và kết quả validate.
  8. Cleanup share, sync group hoặc migration demo.
PowerShell / CLI mẫu
New-Item -ItemType Directory -Path D:\Shares\Data
New-SmbShare -Name Data -Path D:\Shares\Data -FullAccess 'CORP\GG-IT-Admins'
Get-SmbShare -Name Data

Cách 02 — GUI / Windows Admin Center / Server Manager / Azure Portal

  1. Mở Windows Admin Center, Server Manager/MMC hoặc Azure Portal tùy lab.
  2. Chọn đúng server, role hoặc Azure resource lab.
  3. Tạo/cấu hình theo nội dung lab.
  4. Mở Overview, Event Viewer, Activity Log hoặc Monitoring để kiểm tra.
  5. Chụp screenshot cấu hình chính.
  6. Cleanup nếu không dùng.
Kiểm tra kết quả

Có output PowerShell/CLI, screenshot GUI/WAC/Portal hoặc Event Log chứng minh cấu hình hoạt động đúng.

Cleanup

Xóa VM, Resource Group, GPO/object demo, vault, policy assignment hoặc cấu hình lab nếu không còn dùng.

LAB-053 PowerShell Windows Server Windows Admin Center Azure Portal Azure CLI

Cấu hình cloud tiering policy

Nền tảng thực hành: PowerShell, Windows Server, Windows Admin Center, Azure Portal, Azure CLI

Terminal: Windows Terminal / PowerShell 7; CMD nếu lab yêu cầu; Linux/macOS Terminal chỉ dùng cho Azure CLI từ máy quản trị.

Phiên bản: Windows Server 2022 hoặc 2025 lab, Windows 11 admin workstation, Windows Admin Center latest, Azure CLI 2.x, Az PowerShell 12.x+. Ngày tạo: 22/05/2026.

Cách 01 — PowerShell / CLI ưu tiên

  1. Đăng nhập Azure CLI: `az login`.
  2. Chọn subscription lab: `az account set --subscription <SUBSCRIPTION_ID>`.
  3. Tạo hoặc chọn Resource Group lab.
  4. Tạo/onboard/cấu hình tài nguyên Azure theo lab.
  5. Chạy lệnh PowerShell/Azure CLI để xác minh trạng thái.
  6. Mở Azure Portal để đối chiếu trạng thái resource.
  7. Ghi lại Resource ID, screenshot và output CLI.
  8. Cleanup Resource Group, policy assignment, vault hoặc Arc resource nếu không dùng.
PowerShell / CLI mẫu
New-ADOrganizationalUnit -Name IT -Path 'DC=corp,DC=contoso,DC=local'
New-ADUser -Name 'User01' -SamAccountName user01 -Enabled $true -AccountPassword (Read-Host -AsSecureString)
New-ADGroup -Name 'GG-IT-Admins' -GroupScope Global

Cách 02 — GUI / Windows Admin Center / Server Manager / Azure Portal

  1. Mở Windows Admin Center, Server Manager/MMC hoặc Azure Portal tùy lab.
  2. Chọn đúng server, role hoặc Azure resource lab.
  3. Tạo/cấu hình theo nội dung lab.
  4. Mở Overview, Event Viewer, Activity Log hoặc Monitoring để kiểm tra.
  5. Chụp screenshot cấu hình chính.
  6. Cleanup nếu không dùng.
Kiểm tra kết quả

Có output PowerShell/CLI, screenshot GUI/WAC/Portal hoặc Event Log chứng minh cấu hình hoạt động đúng.

Cleanup

Xóa VM, Resource Group, GPO/object demo, vault, policy assignment hoặc cấu hình lab nếu không còn dùng.

LAB-054 PowerShell Windows Server Windows Admin Center Azure Portal Azure CLI

Dùng AzCopy copy dữ liệu lớn

Nền tảng thực hành: PowerShell, Windows Server, Windows Admin Center, Azure Portal, Azure CLI

Terminal: Windows Terminal / PowerShell 7; CMD nếu lab yêu cầu; Linux/macOS Terminal chỉ dùng cho Azure CLI từ máy quản trị.

Phiên bản: Windows Server 2022 hoặc 2025 lab, Windows 11 admin workstation, Windows Admin Center latest, Azure CLI 2.x, Az PowerShell 12.x+. Ngày tạo: 22/05/2026.

Cách 01 — PowerShell / CLI ưu tiên

  1. Mở PowerShell Administrator trên file server lab.
  2. Cài role File Server/DFS/FSRM nếu cần.
  3. Tạo thư mục, SMB share và phân quyền NTFS/share.
  4. Cấu hình DFS/FSRM/Azure File Sync hoặc migration theo lab.
  5. Kiểm tra truy cập từ client domain.
  6. Kiểm tra Event Viewer, SMB sessions và quyền truy cập.
  7. Ghi lại permission matrix và kết quả validate.
  8. Cleanup share, sync group hoặc migration demo.
PowerShell / CLI mẫu
New-Item -ItemType Directory -Path D:\Shares\Data
New-SmbShare -Name Data -Path D:\Shares\Data -FullAccess 'CORP\GG-IT-Admins'
Get-SmbShare -Name Data

Cách 02 — GUI / Windows Admin Center / Server Manager / Azure Portal

  1. Mở Windows Admin Center, Server Manager/MMC hoặc Azure Portal tùy lab.
  2. Chọn đúng server, role hoặc Azure resource lab.
  3. Tạo/cấu hình theo nội dung lab.
  4. Mở Overview, Event Viewer, Activity Log hoặc Monitoring để kiểm tra.
  5. Chụp screenshot cấu hình chính.
  6. Cleanup nếu không dùng.
Kiểm tra kết quả

Có output PowerShell/CLI, screenshot GUI/WAC/Portal hoặc Event Log chứng minh cấu hình hoạt động đúng.

Cleanup

Xóa VM, Resource Group, GPO/object demo, vault, policy assignment hoặc cấu hình lab nếu không còn dùng.

LAB-055 PowerShell Windows Server Windows Admin Center Azure Portal Azure CLI

Kiểm tra permission sau sync

Nền tảng thực hành: PowerShell, Windows Server, Windows Admin Center, Azure Portal, Azure CLI

Terminal: Windows Terminal / PowerShell 7; CMD nếu lab yêu cầu; Linux/macOS Terminal chỉ dùng cho Azure CLI từ máy quản trị.

Phiên bản: Windows Server 2022 hoặc 2025 lab, Windows 11 admin workstation, Windows Admin Center latest, Azure CLI 2.x, Az PowerShell 12.x+. Ngày tạo: 22/05/2026.

Cách 01 — PowerShell / CLI ưu tiên

  1. Mở PowerShell Administrator trên file server lab.
  2. Cài role File Server/DFS/FSRM nếu cần.
  3. Tạo thư mục, SMB share và phân quyền NTFS/share.
  4. Cấu hình DFS/FSRM/Azure File Sync hoặc migration theo lab.
  5. Kiểm tra truy cập từ client domain.
  6. Kiểm tra Event Viewer, SMB sessions và quyền truy cập.
  7. Ghi lại permission matrix và kết quả validate.
  8. Cleanup share, sync group hoặc migration demo.
PowerShell / CLI mẫu
New-Item -ItemType Directory -Path D:\Shares\Data
New-SmbShare -Name Data -Path D:\Shares\Data -FullAccess 'CORP\GG-IT-Admins'
Get-SmbShare -Name Data

Cách 02 — GUI / Windows Admin Center / Server Manager / Azure Portal

  1. Mở Windows Admin Center, Server Manager/MMC hoặc Azure Portal tùy lab.
  2. Chọn đúng server, role hoặc Azure resource lab.
  3. Tạo/cấu hình theo nội dung lab.
  4. Mở Overview, Event Viewer, Activity Log hoặc Monitoring để kiểm tra.
  5. Chụp screenshot cấu hình chính.
  6. Cleanup nếu không dùng.
Kiểm tra kết quả

Có output PowerShell/CLI, screenshot GUI/WAC/Portal hoặc Event Log chứng minh cấu hình hoạt động đúng.

Cleanup

Xóa VM, Resource Group, GPO/object demo, vault, policy assignment hoặc cấu hình lab nếu không còn dùng.

Zalo