# リソースの移動

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

## 準備

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

{% 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 Service
  * Storage Account
  * Key Vault
  * Log Analytics Workspace

#### プライベート エンドポイントは移動できないため、以下の手順を実行する必要があります（SCEPman でプライベート エンドポイントを使用していない場合は、これらの手順をスキップしてください）:

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

<figure><img src="/files/b3e369e92dbf0ebd765def8d6be9efaedf2361b7" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/eb118787dcc77f572432f99dd87b0cab9dbfbcec" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/dafb8b19c79cbe987bfcff7fd46978100e0d76bb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/8c224f0e6f2d067969ec0faa750546115c0319a6" alt=""><figcaption></figcaption></figure>

* 次に、両方の App Service で送信ネットワーク統合を切断します

<figure><img src="/files/6b75cc79356b368159c09ca3e8bc21750782b282" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/f6f736004138b82f786bfd3d520b09c466e98141" alt=""><figcaption></figcaption></figure>

同じことが Certificate Master の App Service にも適用されます。

## リソースの移動

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

{% hint style="warning" %}
以下を必ず用意してください: [必要な権限](/ja/scepman-depuroi/permissions/post-installation-config.md#prerequisites) を実行するための [*Complete-SCEPmanInstallation* CMDlet](/ja/scepman-depuroi/permissions/post-installation-config.md#running-the-scepman-installation-cmdlet) を、リソースを移動する前に。
{% endhint %}

* 移動先のサブスクリプションに新しいリソース グループを作成します。
* 次に、リソースを移動します。リソースを移動する簡単な方法は、リソース グループ内でそれらを選択し、「別のサブスクリプションに移動」オプションを選ぶことです

<figure><img src="/files/09162b42edeafd3f74378d732edbb0cfbcc3f7ae" alt=""><figcaption></figcaption></figure>

* その後、新しいサブスクリプションとリソース グループを選択する必要があり、リソースは検証されて移動されます。

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

* Storage Account への接続を修正するには、 [次を実行してください *Complete-SCEPmanInstallation* CMDlet。](/ja/scepman-depuroi/permissions/post-installation-config.md#running-the-scepman-installation-cmdlet)
* 現在、 [プライベート エンドポイント](https://docs.scepman.com/architecture/private-endpoints)

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

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

<figure><img src="/files/b3f57eceabbc9e74b2aa5ac1e65f769c7e5b51ee" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
