> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/ja/azure-gou-cheng/move-scepman-resources.md).

# リソースの移動

このガイドでは、SCEPman リソースを 1 つのサブスクリプションから、同じテナント内の別のサブスクリプションにある新しいリソース グループへ移動する方法を説明します。

{% hint style="warning" %}
SCEPman リソースを～から移動する **テナントからテナントへ** はサポートされていません。根本的な問題の詳細については、次を参照してください: <https://learn.microsoft.com/en-us/azure/key-vault/general/move-subscription>
{% endhint %}

## 準備

* プライベート エンドポイントに関連付けられたリソースは移動できません。したがって、SCEPman で Private endpoints を使用している場合、次の SCEPman リソースは移動できません:
  * 仮想ネットワーク 1個
  * プライベート エンドポイント 2個
  * ネットワーク インターフェイス 2個
  * プライベート DNS ゾーン 2個

{% hint style="info" %}
**アラートとアクション グループ** も移動できません。ある場合は、新しいサブスクリプションで再構成する必要があります。

次のものを使用している場合 **App Service マネージド証明書** それを [移動することはできません](https://learn.microsoft.com/th-th/azure/azure-resource-manager/management/move-limitations/app-service-move-limitations#move-with-free-managed-certificates)。代わりに、Web アプリを移動した後に削除して再作成してください。
{% endhint %}

* 移動可能な SCEPman リソースは次のとおりです:
  * App Service Plan
  * SCEPman と Certificate Master App Services
  * Storage Account
  * Key Vault
  * Log Analytics Workspace

#### Private Endpoints は移動できないため、次の手順を実行する必要があります（SCEPman で Private endpoints を使用していない場合は、この手順をスキップしてください）:

* まず、Key Vault と Storage Account でパブリック アクセスを有効にし、プライベート エンドポイントを削除します

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FPVyvbhquYINjIylO3x7t%2F2024-09-30%2016_38_27-kv-scepman-n4gwfa6u2pwuc%20-%20Microsoft%20Azure%20and%208%20more%20pages%20-%20ADMIN%20MPN%20Tenant%20-.png?alt=media&amp;token=594a6303-e212-404b-99b9-a38b92ce3999" alt=""><figcaption></figcaption></figure>

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FClxm4dAVrwea1HIYpU6q%2Fimage.png?alt=media&amp;token=bbbb91ff-87fa-4c4f-9886-aa63b2fac85e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FrOcBeHk6kqjAaqr83Kso%2Fimage.png?alt=media&amp;token=484b64b3-e649-4f8e-a044-9975ee083368" alt=""><figcaption></figcaption></figure>

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FMu4YixBzLzkjhjDhbtDd%2Fimage.png?alt=media&amp;token=e4d0550c-7fe1-4205-b709-31717109d021" alt=""><figcaption></figcaption></figure>

* 次に、両方のアプリ サービスで送信ネットワーク統合を切断します

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fav0rirjsNogsIeQQ3GR1%2Fimage.png?alt=media&amp;token=15b6e216-e93a-460f-bba9-3f06639d9bdb" alt=""><figcaption></figcaption></figure>

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2F1OkRY6w18hm0V0GjJafn%2Fimage.png?alt=media&amp;token=fae535e4-4f22-4079-a603-417497613f7c" alt=""><figcaption></figcaption></figure>

Certificate Master App service にも同じことが当てはまります。

## リソースの移動

{% hint style="warning" %}
SCEPman リソースを新しいサブスクリプションに移動すると、SCEPman は Storage Account への接続を失います。これを解決するには、 [Complete-SCEPmanInstallation コマンドを実行する必要があります](/ja/scepman-nodepuroi/permissions/post-installation-config.md#disabled-homepage)。これは唯一の **ダウンタイム** です（リソースの移動からコマンドの実行までの間）。この停止は 3～5 分以内に解消されるはずです。
{% endhint %}

{% hint style="warning" %}
必ず [必要な権限](/ja/scepman-nodepuroi/permissions/post-installation-config.md#prerequisites) を持って、 [*Complete-SCEPmanInstallation* CMDlet](/ja/scepman-nodepuroi/permissions/post-installation-config.md#running-the-scepman-installation-cmdlet) リソースを移動する前に、実行できるようにしてください。
{% endhint %}

* ターゲットのサブスクリプションに新しい Resource group を作成します。
* 次に、リソースを移動します。簡単な方法は、Resource group でそれらを選択し、「Move to another subscription」オプションを選ぶことです

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FsQNXQuMlCyIhrSEFTSe0%2Fimage.png?alt=media&amp;token=22acd8bf-cefc-48b0-9a06-a236328c53e6" alt=""><figcaption></figcaption></figure>

* 次に、新しい Subscription と Resource group を選択すると、リソースが検証されて移動されます。

## SCEPman リソースを移動した後:

* Storage Account への接続を修復するには、 [次の *Complete-SCEPmanInstallation* CMDlet を実行してください。](/ja/scepman-nodepuroi/permissions/post-installation-config.md#running-the-scepman-installation-cmdlet)
* これで、次で説明されているようにプライベート エンドポイントを再構成することもできます: [プライベート エンドポイント](https://docs.scepman.com/architecture/private-endpoints)

## 移動した SCEPman リソースの場所に関する考慮事項

* 同じ Resource group の場所内でリソースを移動することは可能です。
* 異なる Resource group の場所間でリソースを移動する場合、リソースは元の場所に残り、新しい Resource group では別の場所として一覧表示されるだけです。例:

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FaVWlOMLMUazmUYex3s9u%2Fimage.png?alt=media&amp;token=42ac6084-e7dc-4427-8ce4-c1e3b6fd5119" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.scepman.com/ja/azure-gou-cheng/move-scepman-resources.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
