Token导航 LogoToken导航

Agent Skill · 研究检索

amr-migration-skill(amr 迁移技能)

amr-migration-skill 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

amr-migration-skill 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 46,029。

总安装 815周安装 35GitHub Stars 1下载 286核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:amr-migration-skill(amr 迁移技能)
来源仓库:https://github.com/azuremanagedredis/amr-migration-skill
仓库路径:skills/amr-migration-skill
安装命令:
npx skills add https://github.com/azuremanagedredis/amr-migration-skill --skill amr-migration-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/azuremanagedredis/amr-migration-skill --skill amr-migration-skill

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

amr-migration-skill 协助将 Azure Cache for Redis(ACR)基础/标准/高级版迁移至 Azure Managed Redis(AMR)。支持通过 ARM REST API 实现自动化迁移,并提供术语统一处理(如 OSS、ACR 视为同义词)。

不适用于 Enterprise 层级迁移,若用户提问超出范围则引导至官方文档或技术支持渠道。安装后可通过 npx 添加,但需确认当前环境是否符合目标平台要求。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/amr-migration-skill

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/azuremanagedredis/amr-migration-skill --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

amr-migration-skill 怎么安装?

在终端执行 npx skills add https://github.com/azuremanagedredis/amr-migration-skill --skill amr-migrat…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

amr-migration-skill 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

amr-migration-skill 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/azuremanagedredis/amr-migration-skill --skill amr-migration-skill 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

amr-migration-skill 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

amr-migration-skill 用的人多吗?

公开数据是累计安装 815 次,近一周安装 35 次,下载 286 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

amr-migration-skill 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
amr-migration-skill

amr 迁移技能 · 本页

8151执行命令未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Azure Managed Redis Migration Skill

This skill assists users in migrating from Azure Cache for Redis (ACR) Basic/Standard/Premium tiers to Azure Managed Redis (AMR), including automated migration via ARM REST APIs.

📝 Terminology Note

Users may refer to Azure Cache for Redis by several names: OSS, ACR, or by tier name (Basic, Standard, Premium). These all refer to the same product. Treat these terms interchangeably when users ask about migration.

⚠️ Scope Limitation: Enterprise Tier NOT Supported

This skill does not cover Azure Cache for Redis Enterprise (ACRE) migrations. If users ask about migrating from Enterprise or Enterprise Flash tiers, explain that those have different migration paths and suggest contacting Microsoft support or consulting the official documentation.

Supported source tiers: Basic (C0-C6), Standard (C0-C6), Premium (P1-P5)

⚠️ AMR Terminology: No "Shards"

Avoid using the term "shards" when describing AMR. In AMR, sharding is managed internally and not exposed to customers, so the concept doesn't apply and would be confusing. The term only applies to ACR Premium clustered caches. When discussing AMR, refer to the performance tier (e.g., Balanced, Memory Optimized) and size (e.g., B10, M20) instead.


Agent Guidance

⛔ Destructive Operation Confirmation (Mandatory)

Before executing Migrate or Cancel actions via the migration scripts, the agent must:

  1. Display the full source and target resource IDs to the user
  2. Clearly state the action being performed (e.g., "This will initiate a DNS switch migration from ACR to AMR")
  3. Ask for explicit user confirmation using the ask_user tool before running the script
  4. Never auto-confirm or assume consent for these operations

This applies regardless of how the user phrased their request. Even if the user says "go ahead and migrate", the agent must confirm the specific resource IDs before executing.

For the bash script, always pass --yes when the agent runs it (since the agent cannot interact with the terminal prompt), but only after obtaining user confirmation through the ask_user tool first.

🔍 Validate-Before-Migrate (Mandatory)

Before executing Migrate, the agent must first run Validate with the same source and target resource IDs and present the results to the user. Do not proceed to Migrate if validation returns errors. If validation returns warnings, explain them and ask the user whether to proceed with -ForceMigrate $true (PowerShell) or --force-migrate (bash).

Version Check (manual only — triggered by user request)

Do not check for updates automatically. Only perform a version check when the user explicitly asks (e.g., "check for updates for the amr skill", "is there a newer version of amr-migration-skill?").

When requested:

  1. Read the local VERSION file in this skill's root directory.
  2. Fetch the remote version from: https://raw.githubusercontent.com/AzureManagedRedis/amr-migration-skill/main/VERSION
  3. If the remote version is newer, tell the user: *"A newer version of the AMR Migration Skill is available (local: X, latest: Y). Update from: https://github.com/AzureManagedRedis/amr-migration-skill"*
  4. If versions match, tell the user: *"You're on the latest version (X)."*
  5. If the fetch fails, tell the user the check failed and suggest trying again later.

Detecting Platform for Script Selection

Check the user's OS to choose the right migration script variant:

  • Windows / PowerShell: Use .ps1 scripts (requires Azure CLI)
  • Linux / macOS / WSL / Bash: Use .sh scripts (requires Azure CLI + jq)

If the OS is unclear, prefer the bash scripts — they work cross-platform. Both script variants use Azure CLI (az rest) for ARM API calls.

Constructing ARM Resource IDs

Users will typically provide a cache name, resource group, and subscription. Construct the full ARM resource IDs as follows:

  • ACR source: /subscriptions/<subId>/resourceGroups/<rg>/providers/Microsoft.Cache/Redis/<cacheName>
  • AMR target: /subscriptions/<subId>/resourceGroups/<rg>/providers/Microsoft.Cache/redisEnterprise/<cacheName>

If the user only provides a cache name, use az redis show -n <name> -g <rg> --query id -o tsv to retrieve the full resource ID. If the subscription or RG is also unknown, use az redis list --query "[?name=='<name>'].{id:id, rg:resourceGroup}" -o table to find it.

Validating SKU Recommendations

Before recommending an AMR SKU to the user, cross-check it against the valid SKU list in AMR SKU Specs. Never recommend a SKU that doesn't appear in that file. If the ideal capacity falls between two SKU sizes, recommend the next size up.

Connection Changes Reminder

Always mention these when discussing migration — they require application changes:

  • TLS port: ACR uses 6380 → AMR uses 10000
  • Non-TLS: ACR 6379 → not supported on AMR
  • DNS suffix: .redis.cache.windows.net → <region>.redis.azure.net
  • Redis version: 6 → 7.4

If the user is using the automated migration with DNS switching, the old hostname continues to work, but the port change still applies.

Post-migration recommendation: Suggest adopting Microsoft Entra ID authentication as a replacement for access keys. Entra ID configurations are not migrated automatically and must be set up on the new AMR instance.

Available Resources

Important: Always use the provided scripts for pricing lookups and metrics retrieval. Do not craft custom API calls or scripts — the provided ones already handle tier-specific calculation logic (HA, shards, MRPP) and metric aggregation correctly. For metrics, use a default time range of 7 days unless the user specifies otherwise.

Documentation Access

Note: Most migration guidance is already available in this skill's local reference files. Only use the MCP server to look up information not covered locally (e.g., latest release notes, region availability, or new features).

Use the Microsoft Learn MCP server to fetch up-to-date documentation:

  • MCP Endpoint: https://learn.microsoft.com/api/mcp
  • Setup Guide: See MCP Server Configuration for setup instructions (GitHub Copilot, Claude Desktop)
  • Key documentation paths:

- /azure/azure-cache-for-redis/ - General Azure Redis documentation - /azure/azure-cache-for-redis/managed-redis/ - AMR-specific documentation - /azure/azure-cache-for-redis/cache-overview - Product overview

Azure CLI Command Reference

See Azure CLI Commands for practical az redis examples to:

  • List ACR caches in a subscription or resource group
  • Extract cache details (region, SKU, shard count, replicas)
  • Check persistence and geo-replication settings

SKU Mapping Reference

See SKU Mapping Guide for guidelines, ACR → AMR mapping tables, selection criteria, and decision matrix. For AMR SKU definitions (M, B, X, Flash series), see AMR SKU Specs.

Dynamic Pricing Lookup

Once you've identified candidate SKUs, get real-time pricing with monthly cost calculations:

# Windows PowerShell
.\scripts\get_redis_price.ps1 -SKU M10 -Region westus2
.\scripts\get_redis_price.ps1 -SKU M10 -Region westus2 -NoHA
.\scripts\get_redis_price.ps1 -SKU C3 -Region westus2 -Tier Standard
.\scripts\get_redis_price.ps1 -SKU P2 -Region westus2 -Shards 3 -Replicas 2

# Linux/Mac bash
./scripts/get_redis_price.sh M10 westus2
./scripts/get_redis_price.sh P2 westus2 --shards 3

Script options:

  • -NoHA / --no-ha - Non-HA deployment (AMR only, 50% savings for dev/test)
  • -Shards N / --shards N - Number of shards (ACR Premium clustered)
  • -Replicas N / --replicas N - Replicas per primary (ACR Premium MRPP, default: 1)
  • -Currency X / --currency X - Currency code (default: USD)

SKUs supported:

  • ACR: C0-C6 (Basic/Standard - must specify tier), P1-P5 (Premium)
  • AMR: M10-M2000, B0-B1000, X3-X700, A250-A4500

Resources:

Feature Comparison

See Feature Comparison for detailed comparison between ACR (Basic/Standard/Premium) and AMR features.

Retirement FAQ

See Retirement FAQ for retirement dates, timelines, and common migration questions.

Relevant to this skill (ACR Basic/Standard/Premium):

  • April 1, 2026: Creation blocked for new customers
  • October 1, 2026: Creation blocked for existing customers
  • September 30, 2028: Retirement date (instances disabled October 1, 2028)

Not covered by this skill:

  • Enterprise/Enterprise Flash retirement (March 31, 2027) — contact Microsoft support

Migration Overview

See Migration Overview for detailed migration guidance including:

  • Migration strategies (new cache, RDB export/import, dual-write, RIOT)
  • Connection string changes
  • Clustering policy and network isolation considerations

Infrastructure-as-Code (IaC) Template Migration

For converting ACR templates (ARM, Bicep, Terraform) to AMR format, use these reference docs:

- arm/ — 6 ARM JSON scenarios (basic, premium non-clustered, clustered, VNet, persistence, all-features) - arm-parameterized/ — 4 ARM JSON scenarios with separate parameter files - bicep/ — 2 Bicep scenarios (basic, premium clustered) - terraform/ — 2 Terraform scenarios (basic, premium clustered)

Workflow Selection

Choose the correct workflow based on the user's intent. The two workflows are independent — do not mix their steps.

User IntentSignal PhrasesWorkflow
Move a live cache to AMR"migrate cache", "move to AMR", "select SKU", "assess metrics", "migration strategy", "switch traffic"Migration Workflow (Steps 1-4)
Convert IaC templates to AMR format"convert template", "Bicep migration", "ARM to AMR", "Terraform", "IaC", "template transformation", "region buildout"IaC Migration Workflow (Steps 1-8)
Compare features or answer general questions"compare ACR vs AMR", "feature compatibility", "retirement date", "best practices"Answer directly using reference docs — no workflow needed

Ambiguous Requests

If the user's intent is unclear (e.g., "help me migrate to AMR" could mean either), ask:

"Are you looking to migrate a live cache (data migration, SKU selection, traffic cutover) or convert your infrastructure-as-code templates (Bicep/ARM/Terraform) to AMR format? Or both?"

Both Workflows

If the user needs both (e.g., "migrate everything including our IaC"):

  1. Run Migration Workflow first — this determines the target AMR SKU and validates sizing with metrics
  2. Then run IaC Migration Workflow — using the SKU selected in step 1 as the target

Migration Workflow

Step 1: Assess Current Cache

Gather metrics from the existing ACR cache to inform SKU selection:

# Windows PowerShell
.\scripts\get_acr_metrics.ps1 -SubscriptionId <id> -ResourceGroup <rg> -CacheName <name>
.\scripts\get_acr_metrics.ps1 -SubscriptionId <id> -ResourceGroup <rg> -CacheName <name> -Days 7

# Linux/Mac bash
./scripts/get_acr_metrics.sh <subscriptionId> <resourceGroup> <cacheName>
./scripts/get_acr_metrics.sh <subscriptionId> <resourceGroup> <cacheName> 7

Also retrieve the actual memory reservation to determine true usable capacity (defaults in the SKU mapping tables assume ~20%):

az redis show -n <cache-name> -g <resource-group> -o json \
  --query "{maxfragmentationmemoryReserved: redisConfiguration.maxfragmentationmemoryReserved, maxmemoryReserved: redisConfiguration.maxmemoryReserved}"

Both values are in MB. Actual Usable = SKU Capacity − (maxmemoryReserved + maxfragmentationmemoryReserved). Use this as the source of truth for sizing.

Requires: Azure CLI logged in (az login)

Fallback: If the scripts fail (e.g., locked tenant, insufficient permissions, no CLI access), direct the user to retrieve the same metrics manually from the Azure Portal under their cache's Monitoring → Metrics blade.

Metrics retrieved (Peak, P95, and Average for each):

  • Used Memory RSS (bytes and GB)
  • Server Load (%)
  • Connected Clients
  • Network Bandwidth — Cache Read and Cache Write (bytes/sec)
Clustered caches: For Premium caches with multiple shards, the scripts automatically detect the shard count and aggregate metrics across all shards. Memory and bandwidth are summed (total capacity), while Server Load and Connected Clients report the max per shard (bottleneck value). The output header indicates when shard aggregation is active.

Use these values to:

  1. Size the target AMR SKU (usable memory ≥ peak used memory — no extra buffer needed with an eviction policy)
  2. Choose tier (high Server Load + low memory → Compute Optimized X-series)
  3. Verify connection limits are sufficient
  4. Use P95 values to distinguish sustained load from occasional spikes

Zone pinning check: Also check if the source cache uses zone pinning:

az redis show -n <cache-name> -g <resource-group> -o json \
  --query "{zones: zones, zonalAllocationPolicy: properties.zonalAllocationPolicy}"

If zones is set and zonalAllocationPolicy is UserDefined, the cache is zone-pinned — deployed to specific availability zones chosen by the customer. Warn the user: AMR does not support zone pinning. When high availability is enabled, AMR is automatically zone redundant across all available zones in the region, but cannot be pinned to specific zones. If the user had zone pinning for co-locality with other resources (e.g., VMs in the same zone for lower latency), they should be aware this guarantee will not carry over to AMR.

Step 2: Select Target AMR SKU

  1. Refer to the SKU Mapping Guide
  2. Use metrics from Step 1 to validate sizing
  3. Get pricing for candidate SKUs: .\scripts\get_redis_price.ps1 -SKU M20 -Region westus2.\scripts\get_redis_price.ps1 -SKU B20 -Region westus2

Step 3: Plan Migration

  1. Determine migration strategy (dual-write, snapshot/restore, etc.)
  2. Clustering policy: For non-clustered ACR caches (Basic, Standard, non-clustered Premium), create the AMR cache with Enterprise clustering policy to avoid client application changes. OSS clustering policy exposes cluster topology and may require a cluster-aware client.
  3. Network isolation: ACR caches using VNet injection must be replaced with Private Link on AMR, as AMR does not support VNet injection. Ensure Private Endpoints are configured before cutover.
  4. Plan for potential downtime or data sync requirements
  5. Update application connection strings and configuration

Step 4: Execute Migration

  1. Create the target AMR cache
  2. Migrate data using appropriate method
  3. Validate data integrity
  4. Switch application traffic to new cache

IaC Migration Workflow

For the full 8-step workflow, see IaC Migration Workflow.

Converts ACR templates (ARM JSON, Bicep, Terraform) to AMR format using AI-driven transformation with reference docs for grounding. Includes SKU mapping, pricing comparison, feature gap analysis, customer confirmation gate, and template generation. Scripts are only used for pricing lookups.


Automated Migration (ARM REST API)

Azure offers an automated migration path from ACR to AMR via ARM REST APIs, handling DNS switching automatically so clients using the old OSS endpoint continue to work after migration.

Important: This feature is currently in Public Preview. Use the manual migration strategies (Steps 1–4 above) for production workloads until GA.

Key facts:

  • Supported: All Basic/Standard/Premium SKUs — except Private Link, VNet injected, or Geo-Replicated caches
  • Source and target must be in the same region and subscription
  • Migrates: access keys, OSS host endpoint (DNS switch), OSS port. Does not migrate cache data, Entra ID, persistence config, or managed identities
  • Workflow: Validate → Migrate → Status → Cancel (Rollback)
  • Also available via the Azure Portal behind a feature flag

Scripts:

  • PowerShell: scripts/Azure-Redis-Migration-Arm-Rest-Api-Utility.ps1 (requires Azure CLI)
  • Bash: scripts/azure-redis-migration-arm-rest-api-utility.sh (requires Azure CLI + jq)

📖 For the full workflow, prerequisites, script parameters, and troubleshooting, read Automated Migration Reference. For ARM API internals, see Migration Scripts Reference. For validation error codes, see Validation Errors & Warnings.

Common Questions

What is the difference between Azure Cache for Redis (ACR) and Azure Managed Redis (AMR)?

Refer to Feature Comparison for the full matrix. Key differences include:

  • AMR offers Redis Stack features (JSON, Search, Time Series, Bloom filters)
  • AMR has different SKU tiers optimized for different workloads
  • AMR provides enhanced performance and scalability options

How do I choose the right AMR SKU?

Refer to SKU Mapping Guide and consider:

  • Current memory usage
  • Compute pressure (Server Load %)
  • Feature requirements (clustering, geo-replication, Redis modules)
  • Budget constraints

What features are not available in AMR?

Check Feature Comparison for the current feature matrix. Use the MCP server to fetch the latest documentation for authoritative information.

What about Enterprise tier migration?

This skill does not cover Enterprise tier migrations. If asked about ACRE (Azure Cache for Redis Enterprise) migration, inform the user that Enterprise tier has different considerations and they should consult Microsoft support or official documentation.

Tips for Effective Migration

  1. Test thoroughly: Always test in a non-production environment first
  2. Monitor performance: Compare baseline metrics before and after migration
  3. Plan for rollback: Have a rollback strategy in case of issues
  4. Update client libraries: Ensure Redis client libraries support AMR features
  5. Review security settings: Update firewall rules, private endpoints, and authentication

平台分布

Codex

37.29%
按下载量换算107

Claude

29.76%
按下载量换算85

Cursor

18.41%
按下载量换算53

Gemini CLI

9.43%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/azuremanagedredis/amr-migration-skill --skill amr-migration-skill 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills