---
title: Teams ボット統合の設定
slug: neurons-for-itsm/on-premises-help/jpn/2025/teams
createdAt: 2026-07-29T17:06:42.143Z
---

Microsoft Teams を Ivanti サービス マネージャと統合するには、オンプレミス ユーザーはまず [Ivanti MarketPlace](https://marketplace.ivanticloud.com/packages/MSTeamsBot/) からパッケージをダウンロードし、PowerShell スクリプトを実行して環境をセットアップする必要があります。

## Powershell スクリプトは何をするのですか?

- i**netpub&#x20;**&#x30D5;ォルダーにディレクトリを作成します。
- 新しいアプリケーション プールを作成し、その項目プロパティを設定します。
- 新しい Web アプリケーションを作成し、そのアイテム プロパティを設定します。
- 必要なアプリケーションをサイレント モードでインストールします。インストールを続行するためのプロンプトは表示されない場合があります。
- 必要なバイナリを宛先フォルダーにコピーします。
- IP アドレス/マシン名/ローカル ホスト名が指定されると、 appsetting.json が作成されます。

## Central Config API キーの設定

1. CentralConfig にログイン > **アプリケーションの構成** > **セキュリティ コントロール** > **ApiKeys**。
2. 以下に示すように、 **CentralConfigApiKey** を見つけて、値をコピーします。
3. コピーした値を appsettings.json ファイルの CentralConfigApiKeyに貼り付けます。 たとえば、 *central-config-api-key"=”xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”*

## PowerShell スクリプトの実行 (バージョン 2023.4 以降)

1. zip ファイルをマシン内の適切なフォルダーにダウンロードします。
2. zipファイルを解凍します。
3. PowerShell を管理者として開きます。
4. PowerShell スクリプトが配置されている場所、つまり zip ファイルを抽出した場所に移動します。
5. スクリプトを実行します - `.\\install.ps1`。
6. 以下のプロンプトに関連する詳細情報を入力してください。
   - 環境で SSL は有効になっていますか?
   - 環境で SSL が有効な場合のみ ISM テナント ID \[例: ismtenant.yourdomain.com] を入力してください。それ以外の場合は、アプリケーション サーバーの IP アドレスまたはホスト/ドメイン名を入力してください。
   - 環境で SSL が有効な場合のみ、Central Config テナント ID \[例: configtenant.yourdomain.com] を入力してください。それ以外の場合は、サーバーの IP アドレスまたはホスト/ドメイン名を入力してください。

:::Paragraph{indent="1"}
設定が完了しました。
:::

## PowerShell スクリプトの実行 (バージョン 2023.4 より前)

1. zip ファイルをマシン内の適切なフォルダーにダウンロードします。
2. zipファイルを解凍します。
3. PowerShell を管理者として開きます。
4. PowerShell スクリプトが配置されている場所、つまり zip ファイルを抽出した場所に移動します。
5. スクリプトを実行します - `.\\TeamsBot.ps1`。
6. Appserver と Central Config の IP アドレス/マシン名/ローカルホスト名の入力を求められます。 名前/ローカルホスト。 適切なアドレス/マシン名/ローカルホストを入力します。

:::Paragraph{indent="1"}
設定が完了しました。
:::

## トラブルシューティング

::::ExpandableHeading
## IP アドレス/マシン名/ローカル ホスト名が正しくありません (バージョン 2023.4 以降)

間違った IP アドレス/マシン名/ローカル ホスト名を指定した場合は、 inetpub > Teams Bot Service フォルダーからAppsetting.json ファイルを開き、次の値を確認して置き換えます。

- アプリケーションサーバーURI
- 中央構成URI
- ConfigServiceClientUri

:::ExpandableHeading
## AppSetting.json ファイルの例:

\{ "JsonMaxDepth": 128, "MicrosoftAppId": "", "MicrosoftAppPassword": "",

"IPCMServiceName": "/ServiceAPI/IPCMService.asmx", "LogLevel": "DEBUG", "CacheTimeout": "30",

"isOnPremise": true, "central-config-api-key": "", "AppServerUri": "https\://ism-onprem15-

tenant1.ivanticlouddev.com/HEAT", "FAQ 番号": 2, "ナレッジベース番号": 3, "Soap": \{

"OpenTimeout": "2", "CloseTimeout": "2", "SendTimeout": "2",

"ReceiveTimeout": "2" }, "CentralConfigUri": "https\://cfg-onprem15-

ism.ivanticlouddev.com/CentralConfig", "ビルドバージョン": "", "ConfigServiceClientUri": "https\://cfgonprem15-ism.ivanticlouddev.com/CentralConfig", "ISMConfigServiceClientName":

"api/centralconfig", "ConfigServiceClientName": "api/centralconfig", "UseInMemoryState": true,

"SecretStorageUri": "", "RedisStorageConfiguration": \{ "EnableRedisFlag": true,

"RedisConnectionString": "redis.redis.svc.cluster.local",

"sendmessagetochatservice": "reveivemessagefromteams", "closesocketsignal":

"closesocketsignal" }, "IocServices": \[ \{

"LifetimeType": "1", "AssemblyName": "ServiceManager.SimpleStorageStrategy",

"ClassName": "ServiceManager.SimpleStorageStrategy.AzureBlobStorage",

"InterfaceName": "ServiceManager.SimpleStorageStrategy.ISimpleStorageStrategy" },

\{ "LifetimeType": "1", "AssemblyName":

"ServiceManager.SimpleStorageStrategy", "ClassName":

"ServiceManager.SimpleStorageStrategy.SecretStorage.AppSettingSecretKey",

"InterfaceName": "ServiceManager.SimpleStorageStrategy.SecretStorage.ISimpleSecretStorageStrategy"

}, \{ "LifetimeType": "1", "AssemblyName":

"ServiceManager.AppServer.WebReference", "ClassName":

"ServiceManager.AppServer.WebReference.IPCMService", "InterfaceName":

"ServiceManager.AppServer.WebReference.IIPCMService" }, \{

"LifetimeType": "1", "AssemblyName": "ServiceManager.CentralConfig.WebReference",

"ClassName": "ServiceManager.CentralConfig.WebReference.Rest.ConfigServiceClientJson",

"InterfaceName": "CentralConfig.Contract.IConfigServiceAPI" }, \{

"LifetimeType": "1", "AssemblyName": "ServiceManager.Cache",

"ClassName": "HEAT.Cache.InMemory.InMemoryCache", "InterfaceName":

"HEAT.Cache.Contract.ICache" } ] }
:::
::::

::::ExpandableHeading
## IP アドレス/マシン名/ローカル ホスト名が正しくありません (バージョン 2023.4 より前)

間違った IP アドレス/マシン名/ローカル ホスト名を指定した場合は、 inetpub > Teams Bot Service フォルダーからAppsetting.json ファイルを開き、 AppserverIPAddress を正しいものに置き換えます。

:::ExpandableHeading
## AppSetting.json ファイルの例:

\{"MicrosoftAppId"="";"MicrosoftAppPassword"="";"IPCMURL"= "http\://$AppserverIPAddress/HEAT/ServiceApi/IPCMService.asmx"; "WorkflowURL"= "http\://$AppserverIPAddress/HEAT/ServiceApi/WorkflowService.asmx"; "ConfigURL"= "http\://$CentralConfigIPAddress/CentralConfig/ConfigServiceAPI.asmx"; "RetrieveTenantLogLevel\_ws\_url"= "http=//$CentralConfigIPAddress/CentralConfig/RetrieveTenantLogLevel.ashx"; "EnableCentralLogging"= false; "LoggingService\_ws\_url"= "http\://$AppserverIPAddress/Heat.Logging.Service/api/LoggingService/HeatServiceManagementLogging"; "ElapsedSecondsToFlushLog"= 60; "ItemSizeToFlushLog"= 1000; "LogSettingCacheTimeoutInMinutes"= 5; "SendLogFileLocation"= "C:\logs"; "WriteLogFileLocation"= "C:\logs"; "SendLogWaitInterval"= 300; "WriteLogWaitInterval"= 300; "EnableLogging"= true; "CacheTimeout"= "30"; "isOnPremise": false; ”CentralConfigApiKey”=”” }
:::
::::

:::hint{type="info"}
ブール値 (true/false) に二重引用符が含まれていないことを確認してください。
:::

:::ExpandableHeading
## 実行ポリシーリストを知るには

コマンドを実行します - `PS C:\\Users\\Administrator>Get-ExecutionPolicy - List`

*ポリシーリストのサンプル画像*

::Image[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/zjqJ3Qu1v1T5-JAGiPYft_getexecutionpolicy.png" position="flex-start" size="31" width="313" height="82" initialPath="../Config-Teams-Using-Powershell/GetExecutionPolicy.png" githubPath="ITSM-On-Prem-Help/Content/ConfigDB_Guide/Config-Teams-Using-Powershell/GetExecutionPolicy.png" showCaption="false"}
:::

:::ExpandableHeading
## 実行ポリシーを設定するには

PowerShell スクリプトが正常に実行されたら、コマンド - `Set-ExecutionPolicy -ExecutionPolicy “PROVIDE PREVIOUS VALUE” -Scope LocalMachine` を実行して実行ポリシーを設定します。

*実行ポリシー設定のサンプル画像*

::Image[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/EihGJ9JyfiZWHHqtmtEOY_setexecutionpolicy.png" position="flex-start" size="62" width="624" height="95" initialPath="../Config-Teams-Using-Powershell/SetExecutionPolicy.png" githubPath="ITSM-On-Prem-Help/Content/ConfigDB_Guide/Config-Teams-Using-Powershell/SetExecutionPolicy.png" showCaption="false"}
:::

```bash
```
