---
title: "アップグレード・アイデンティティ・サーバー"
slug: "upgrade-identity-server"
abstract: ""
---
# アップグレード・アイデンティティ・サーバー

## データベースのアップグレード

最新バージョンのSitecore Identity Serverをインストールする前に、セキュリティデータベースをアップグレードしてください。

セキュリティデータベースのアップグレード:

1.  Sitecore.IdentityServer.UpgradeScripts.9.0.zipファイルを解凍してください。
2.  セキュリティデータベースで CMS\_security\_IdentityServer.sql スクリプトを実行してください。

データベースアップグレードスクリプトはセキュリティデータベースに適用された変更を含みます。このスクリプトは、依存するソフトウェアの新しいバージョンをサポートするためにテーブルを修正します。

## Application Insights Connection stringの設定

Sitecore Identity Server 8.0以降、Azure Application Insightsの設定時にConnection Stringの入力が必要になります。Instrumentation Keyの使用はもはやサポートされていません。Instrumentation Keysは今後のSitecore Identity Serverバージョンで廃止されます。

詳細については、SitecoreのKB記事「 [Application Insights – Instrumentation Key Ingestionのサポート終了](https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB1003554)」をご参照ください。

Application Insights接続文字列を取得するには、Application Insightsリソースの概要ページから値をコピーできます。次のセクションで説明するように、Sitecore Identity Server 9をARMテンプレートでアップグレードする際にこの値は必要になります。

## ARMテンプレートでアイデンティティサーバーをアップグレードする

Sitecore Identity Serverのアップグレード:

1.  以下のファイルをAzureストレージアカウントにアップロードしてください:
    
    -   Sitecore.IdentityServer.9.0.X.scwdp.zip.下の表のパラメータ siMsDeployPackageUrl にはこのブロブのURLが必要です。
    -   azuredeploy.json.このブロブのURLはPowerShellスクリプトで必要です。
2.  ここで説明されているように、azuredeploy.parameters.jsonファイルのパラメータ値を更新してください:
    
    -   sqlServer - サーバーの名前Azure SQL。
    -   sqlDatabasePrefix - SQLデータベースのプレフィックス名。
    -   securitySqlDatabaseUserName - セキュリティデータベースの接続文字列で使用されるユーザー名。
    -   securitySqlDatabasePassword - セキュリティデータベース接続文字列のSQLパスワード。
    -   cmInstanceUrl - Sitecore Content ManagementウェブアプリのHTTP(s)URL。
    -   siApplicationSuffixName - Sitecore Identity Server Web App and Sitecore Identity Server App Service プランの接尾辞名。
    -   siClientSecret\- Sitecore Identity Serverのクライアントシークレットで、Sitecore Content Managementインスタンスの sitecoreidentity.secret connection 文字列内の...\\App\_Config\\ConnectionStrings.configファイルと同じ値です。
    -   siMsDeployPackageUrl - Sitecore Identity Server Web DeployパッケージのHTTP(s)URL。
    -   applicationInsightsConnectionString - オプション。Application Insightsアプリケーションへの接続文字列。
    -   certificateThumbprint - 既存の認証証明書の指紋。
    -   templateLinkAccessToken - オプション。ストレージがパブリックに設定されていない場合、ストレージアカウント用のアクセストークン。パブリックの場合は、このパラメータを渡す必要はありません。例えば、?st=2019-03-185Z&se=2019-03-220Z&sp=rl&sv=2018-03-28&sr=c&sg=4cM%3D " "
    
    deploymentIdとlicenseXmlパラメータはPowerShellスクリプトで埋められます。
    
    siApplicationSuffixNameパラメータが既存のSitecore Identity ServerウェブアプリやIdentity Serverアプリサービスプランのサフィックス名Sitecore一致する場合、リソースは提供されたサフィックス名で上書きされます。デフォルトでは、Sitecore環境PaaS展開では**si**がサフィックスとして使われます。
    
3.  既存のSitecore Identity Serverウェブアプリを上書きする場合は、Identity Server Appサービスを停止してください。
    
4.  GitHubのREADME.mdファイルにある[Quickstart Templates Sitecore Azure PowerShell](https://github.com/Sitecore/Sitecore-Azure-Quickstart-Templates/tree/master/Identity%20Server%209.0)スクリプトを実行します。
    
5.  専用のIdentity Serverウェブアプリを展開する場合は、Sitecore Content Management (CM)インスタンスの: ...\\App\_Config\\Sitecore\\Owin.Authentication.IdentityServer\\Sitecore.Owin.Authentication.IdentityServer.configファイルを更新してください。
    
    identityServerAuthorityを新しいSitecoreアイデンティティサーバーのURLに設定してください。
    
6.  変更を適用するためにSitecoreインスタンスを再起動してください。
    

これでCMサーバーにログインしてログアウトしてもエラーが表示されることはありません。