Logo Env Strategy

Env Strategy

Cộng đồng
korchard333
env-strategy

Chiến lược và cấu trúc liên kết môi trường Power Platform. Dùng khi: loại môi trường, môi trường dành cho nhà phát triển, sandbox, production, nhóm môi trường, định tuyến môi trường, quy ước đặt tên, cấp phát môi trường, cấu trúc liên kết môi trường, Managed Environments, vòng đời môi trường, nhiều khu vực địa lý, biến môi trường giữa các môi trường.

Add to TypingMind

Tổng quan

Nhà phát hànhkorchard333
Kho mãclaude-power-platform-community
Tên kỹ năngenv-strategy
Sao
50
Bản fork
6
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được korchard333 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Env Strategy trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/korchard333/claude-power-platform-community/tree/main/.claude/skills/env-strategy
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/korchard333/claude-power-platform-community.git /tmp/claude-power-platform-community
mkdir -p .claude/skills
cp -r /tmp/claude-power-platform-community/.claude/skills/env-strategy .claude/skills/env-strategy
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Env Strategy trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Env Strategy ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Env Strategy với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Skill: Environment Strategy

When to Use

Trigger when designing environment topology, choosing environment types, provisioning environments, setting up developer environments, configuring Managed Environments, planning multi-geo deployments, or establishing environment naming conventions.


Environment Types

TypePurposeDataverseCapacity CostKey Characteristics
ProductionLive workloadsYesCounts against tenantFull backup (up to 28 days), full control, cannot be reset
SandboxDev/test/UATYesCounts against tenantCan be copied, reset, deleted; 7-day backup default
DeveloperPersonal dev workspaceYesFree (does not count)1 per user (up to 3), auto-cleanup after 90 days inactive, no sharing
DefaultAuto-created per tenantYesCounts against tenantAll licensed users get Environment Maker role — NOT for production
TrialShort-term evaluationYesFree30-day expiry, 1 per user, auto-deleted
Dataverse for TeamsTeam-scoped appsYes (Teams)Included with M365Security follows Teams membership, limited to 1M rows / 2GB

Decision Table: Which Environment Type?

ScenarioUse This TypeWhy
Individual maker experimentingDeveloperFree, isolated, auto-cleanup
Team building a proof of conceptSandboxShareable, resettable, low-risk
Formal testing / UATSandbox (Managed)Copy from prod, Managed Environment controls
Production workloadProduction (Managed)Full backup, governance, pipeline target
Quick demo for stakeholdersTrialNo capacity cost, self-service, 30 days
Teams-native app (< 1M rows)Dataverse for TeamsZero admin overhead, M365-licensed
CI/CD build environmentSandboxAutomated reset between builds

Naming Convention

Use a consistent pattern across all environments:

[Org]-[Project]-[Stage]-[Region]

Examples:

EnvironmentName
Contoso HR app — DevContoso-HR-Dev-AU
Contoso HR app — TestContoso-HR-Test-AU
Contoso HR app — UATContoso-HR-UAT-AU
Contoso HR app — ProductionContoso-HR-Prod-AU
Shared services — DevContoso-Shared-Dev-AU
Developer env (personal)Auto-named: {User}'s Environment

Rules:

  • Never use special characters or spaces (Power Platform admin APIs handle them poorly)
  • Include the region suffix for multi-geo tenants
  • Match the environment name to the solution name where possible
  • Document the naming convention in your governance wiki — consistency matters more than the specific format

Standard Environment Topology

Minimum Viable (Small Team)

Default (leave alone — personal productivity only)
  │
Developer environments (auto-provisioned per maker)
  │
[Project]-Dev (sandbox, unmanaged solutions)
  │
[Project]-Prod (production, managed solutions only)

Recommended (Enterprise)

Default (locked down — DLP, no premium connectors)
  │
Developer environments (auto-provisioned, DLP-restricted)
  │
[Project]-Dev (sandbox, unmanaged, maker workspace)
  │
[Project]-Test (sandbox, Managed Env, CI/CD target, managed solutions)
  │
[Project]-UAT (sandbox, Managed Env, user acceptance)
  │
[Project]-Prod (production, Managed Env, managed solutions only)
  │
[Shared]-Services (production, shared components, CoE)

Multi-Project Enterprise

Shared-Platform-Prod      ← CoE, shared connectors, base solution
  ├── ProjectA-Dev / Test / UAT / Prod
  ├── ProjectB-Dev / Test / UAT / Prod
  └── ProjectC-Dev / Test / UAT / Prod

Developer Environments

Developer environments are free, personal, and isolated. They are the recommended starting point for all makers.

Key Facts

  • Free — included with Power Apps Developer Plan (self-service sign-up)
  • Up to 3 per user
  • Auto-cleanup — turned off after 90 days of inactivity, then deleted if owner doesn't respond
  • Cannot share apps or flows with other users
  • Dataverse included — full schema creation, no capacity charge
  • No Dynamics 365 apps — D365 apps cannot be installed
  • Managed Environments NOT included — Developer Plan does not entitle Managed Environment features at runtime

When to Use Developer Environments

  • Learning and experimentation
  • Personal productivity apps (single user)
  • Initial prototyping before moving to a shared sandbox
  • Testing Web API scripts against a disposable Dataverse instance

Default Environment Routing

Automatically redirect new makers away from the default environment to personal developer environments:

Power Platform Admin Center → Settings → Environment routing
  → Enable "Route new makers to their own personal developer environment"

This prevents the default environment from becoming a dumping ground.


Environment Groups

Environment groups allow administrators to manage environments as collections and apply rules consistently.

Setup

Power Platform Admin Center → Environment groups → New group
  → Add environments → Apply rules

Common Group Patterns

GroupEnvironmentsRules Applied
All-ProductionAll prod environmentsManaged Env enabled, strict DLP, Solution Checker enforcement
All-DevelopmentAll dev/sandbox environmentsModerate DLP, sharing limits
Personal-ProductivityDeveloper environmentsRestrictive DLP, no premium connectors
ProjectA-LifecycleProjectA Dev/Test/UAT/ProdProject-specific DLP, pipeline stages

Environment Group Rules

Rule TypeDescriptionExample
DLP policyApply data policies to the groupBlock HTTP connector in production group
Sharing limitsRestrict how broadly apps can be sharedMax 20 users in personal-productivity group
Solution CheckerEnforce quality gatesBlock deployment if critical issues found
Managed EnvironmentAuto-enable Managed Environment featuresEnable for all production environments
Maker welcome contentCustom guidance for makersLink to governance wiki

Managed Environments

Managed Environments is the governance overlay for Power Platform. It adds premium controls on top of any environment type (except Developer at runtime).

When to Enable

Environment StageManaged Environments?Rationale
ProductionAlwaysFull governance, telemetry, pipeline target
UATAlwaysMirrors production governance
Test / CI-CD targetAlwaysPipeline targets require Managed Environments (Feb 2026)
Developer (shared sandbox)RecommendedSharing limits, solution checker
Personal developer envNot requiredNo entitlement under Developer Plan
DefaultRecommendedLock down with sharing limits

Feb 2026 mandate: Power Platform Pipeline target environments must be Managed Environments. Auto-enabled on pipeline targets starting February 2026.

Key Capabilities

CapabilityWhat It Does
IP FirewallRestrict access to specific IP ranges
IP Cookie BindingPrevent session hijacking across IPs
Customer Managed KeysEncrypt at rest with your Azure Key Vault keys
LockboxRequire approval for Microsoft engineer data access
Weekly DigestUsage summary emailed to admins
Limit SharingCap how many users an app can be shared with
Solution Checker EnforcementBlock deployments failing quality checks
Export to App InsightsTelemetry to Azure Application Insights
Conditional Access per AppEntra ID conditional access on individual apps
VNet SupportConnect to your Azure Virtual Network
License Auto-ClaimAutomatically assign licenses when users access apps

Licensing

Managed Environments is included with:

  • Power Apps Premium (per-user)
  • Power Automate Premium (per-user)
  • Dynamics 365 Enterprise licenses
  • Copilot Studio licenses
  • Power Pages licenses

NOT included with: Developer Plan (at runtime), M365 seeded licenses, trial licenses.


Environment Variable Cascading

Environment variables let you define configuration once in a solution and set different values per environment.

Pattern

Solution contains:
  environmentvariabledefinition: contoso_ApiBaseUrl (type: String)
    └── environmentvariablevalue: (no default — set per environment)

Dev environment:   contoso_ApiBaseUrl = "https://api-dev.contoso.com"
Test environment:  contoso_ApiBaseUrl = "https://api-test.contoso.com"
Prod environment:  contoso_ApiBaseUrl = "https://api.contoso.com"

Best Practices

  • Never set default values in the solution for environment-specific config — force explicit values per environment
  • Use deployment settings files to automate value injection during CI/CD (see alm skill)
  • Secret type environment variables reference Azure Key Vault — use for API keys, connection strings
  • JSON type for complex configuration (feature flags, endpoint maps)

Multi-Geo Considerations

ConcernGuidance
Data residencyEnvironments store data in the geo where they're created — cannot move after creation
Cross-geo pipelinesPower Platform Pipelines support cross-geo deployment (when enabled on host)
User latencyCreate environments in the geo closest to the majority of users
ComplianceSome regulations (GDPR, data sovereignty) require data to stay in specific geos
Geo availabilityNot all features are available in all geos — check availability matrix

Geo Naming in Environment Names

Contoso-HR-Prod-AU    ← Australia
Contoso-HR-Prod-EU    ← Europe
Contoso-HR-Prod-US    ← United States

Environment Lifecycle

Create → Configure (DLP, Managed Env, security) → Active
  │
  ├── Copy (sandbox → sandbox, production → sandbox)
  │
  ├── Reset (sandbox only — wipes data, keeps config)
  │
  ├── Backup → Restore (production: up to 28 days)
  │
  └── Delete (permanent — no undo)

Backup & Restore Cadence

Environment TypeSystem BackupRetentionManual Backup
ProductionContinuous (every ~1 hour)Up to 28 daysYes
SandboxContinuous7 daysYes
DeveloperNoneNoneNo
DefaultContinuous7 daysYes

Pre-Deployment Backup

Always take a manual backup before deploying to production:

powershell
# PowerShell — backup before deployment
$envId = "00000000-0000-0000-0000-000000000000"
$backupLabel = "Pre-deploy-v2.1.0-$(Get-Date -Format 'yyyy-MM-dd')"

# Using Power Platform admin connector or Admin API
# Power Platform Admin Center → Environments → [env] → Backups → Create

Anti-Patterns

  • Everyone builds in the default environment — leads to ungoverned sprawl, no ALM possible, data comingled
  • No DLP on developer environments — makers learn bad habits with unblocked connectors, then can't deploy to prod
  • Manual environment creation for each developer — use developer environments (free, self-service, auto-cleanup) instead
  • No Managed Environments on pipeline targets — will break after Feb 2026 mandate
  • Skipping the test/UAT stage — deploying from dev straight to production with no intermediate validation
  • Using production environment for development — risk of data corruption, no reset capability
  • No naming convention — impossible to identify environment purpose at scale
  • Ignoring environment variable cascading — hardcoding URLs/keys per environment instead of using env vars in solutions
  • Creating sandbox environments without cleanup plan — sandbox sprawl consumes capacity
  • No environment groups — managing 50+ environments individually instead of as governed collections

Related Skills

  • alm — CI/CD pipelines, solution promotion across environments
  • governance — DLP policies, tenant settings applied per environment
  • licensing — Managed Environment licensing requirements
  • security — Security roles and access control per environment

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Env Strategy làm được gì?

Chiến lược và cấu trúc liên kết môi trường Power Platform. Dùng khi: loại môi trường, môi trường dành cho nhà phát triển, sandbox, production, nhóm môi trường, định tuyến môi trường, quy ước đặt tên, cấp phát môi trường, cấu trúc liên kết môi trường, Managed Environments, vòng đời môi trường, nhiều khu vực địa lý, biến môi trường giữa các môi trường.

Vì sao nên dùng Env Strategy trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Env Strategy là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Env Strategy trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/korchard333/claude-power-platform-community/tree/main/.claude/skills/env-strategy. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Env Strategy?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Env Strategy với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Env Strategy với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Env Strategy có miễn phí không?

Có. Kỹ năng này được korchard333 phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇