ข้ามไปยังเนื้อหาหลัก

เปิดใช้งาน Storage Monitoring

Storage monitoring เป็นบริการที่ทรงพลังซึ่งช่วยให้สามารถทำ sanitization ของประเภทไฟล์ที่รองรับโดยอัตโนมัติ ณ จุดที่อัปโหลดได้ โดยสามารถตรวจสอบทรัพยากร cloud storage ได้อย่างต่อเนื่องหลากหลายประเภท และทำ sanitization ไฟล์แบบเรียลไทม์ได้

ทำตามขั้นตอนเหล่านี้เพื่อเปิดใช้งานการผสานรวม OVA กับ Storage Monitoring.

ข้อกำหนดเบื้องต้น

ก่อนเริ่มต้น ตรวจสอบให้แน่ใจว่าเป็นไปตามข้อกำหนดต่อไปนี้:

  • ชื่อโดเมน: กำหนดค่าชื่อโดเมนสำหรับบริการ Storage Monitoring ด้วยที่อยู่ IP สาธารณะ ตรวจสอบให้แน่ใจว่าได้กำหนดค่าใบรับรอง SSLอย่างถูกต้องสำหรับโดเมนที่เลือก
  • Azure Tenant ID: ระบุ tenant_id สำหรับ Azure tenant ที่จะใช้งาน
  • jq: install jq on your machine if not already present:
    sudo dnf install -y jq
  • Azure CLI: install the Azure CLI and authenticate using:
    az login
  • App Registration Setup: run the provided shell script to create an App registration and an Enterprise application.
    • หมายเหตุ: เก็บบันทึกค่าที่แสดงผลไว้ เนื่องจากจะต้องใช้ในขั้นตอนถัดไป
    bash create-azure-app-registrations-storage-monitor.sh

การติดตั้ง storage monitor

OVA มี Helm chart และ container image ของ storage monitor รวมอยู่แล้ว โดยติดตั้งล่วงหน้าด้วย 0 replicas ให้ SSH เข้าไปยัง VM และทำตามขั้นตอนต่อไปนี้เพื่อเปิดใช้งาน

1. สร้าง Kubernetes secrets

บริการ storage monitoring ต้องใช้ tenant ID, client ID และ client secret สำหรับ service principal

สำคัญ:

  • ระบุค่าเป็นข้อความธรรมดา โดยสคริปต์จะจัดการการเข้ารหัส Base64 ให้อัตโนมัติ
  • การรันสคริปต์ซ้ำด้วยคีย์ที่มีอยู่จะอัปเดตค่าที่จัดเก็บไว้ใน Kubernetes secret

เรียกใช้สคริปต์ดังนี้:

bash add_secrets.sh graphapi-clientid <client-id>
bash add_secrets.sh graphapi-clientsecret <client-secret>
bash add_secrets.sh graphapi-tenantid <tenant-id>

2. เปิดใช้งานการตรวจสอบที่เก็บข้อมูล

เรียกใช้สคริปต์ enable_storage_monitor.sh พร้อมชื่อโดเมนและชื่อ Azure tenant ของคุณ การดำเนินการนี้จะเริ่มบริการ storage monitor และเปิดใช้งานหน้า SharePointMonitoring และ OneDriveMonitoring ในพอร์ทัล Halo

bash enable_storage_monitor.sh <domain_name> <tenant_name>

ตัวอย่างเช่น:

bash enable_storage_monitor.sh sm.example.com Contoso

3. หลังการติดตั้ง

เมื่อการติดตั้งเสร็จสมบูรณ์เรียบร้อยแล้ว ให้ทำตามคำแนะนำใน Storage Monitoring — Microsoft SharePoint เพื่อกำหนดค่ามอนิเตอร์สำหรับ Microsoft SharePoint, OneDrive และ Outlook