針對 Windchill ESI 配置 Azure Blob 儲存體容器
Windchill 支援在 Azure Blob 儲存體中發佈 ESI 回應檔案。然後,使用者可以使用 Azure Blob 儲存體中的 XML 或 JSON 回應檔案,根據其偏好設定進行自訂。
欲在 Azure Blob 容器中儲存回應檔案,請參閱下列使用案例:
1. 使用安全性認證驗證配置的 Azure 儲存帳戶
呼叫 blob 組態公用程式 windchill com.ptc.windchill.objectstorage.azureblob.tools.BlobConfigurationTool configure -u <admin username> -p <admin password> 時,且如果選擇安全性認證驗證選項,您必須提供要以加密格式儲存的儲存帳戶名稱與金鑰。這用於在 Azure Blob 容器上配置 Windchill 儲存庫資料持續性的應用程式。如需有關使用 blob 組態公用程式配置儲存庫儲存的詳細資訊,請參閱 配置 Windchill 檔案儲存庫,以使用 Azure Blob。透過使用此加密組態,ESI 模組能夠識別正確的儲存帳戶。
2. 使用 MSI 驗證配置的儲存帳戶:
當使用 blob 組態公用程式將 Windchill 配置為使用 MSI 驗證時,不會擷取儲存帳戶名稱。欲識別發佈 ESI 回應的儲存帳戶,您必須使用 site.xconf 設定內容 esi.azure.storage.account。請參閱以下範例:
<Property name="esi.azure.storage.account"
overridable="true"
targetFile="codebase/wt.properties"
value="<azurestorageaccountname>"/>
將 Azure Blob 儲存體容器配置為由 Windchill 用來儲存 ESI 回應檔案
1. 已設定 esi.azure.storage.container 內容
如果將 esi.azure.storage.container 內容設定為 esi-responses-container,且發佈目標的「路徑」屬性值設定為 /esi/location1,則回應檔案會顯示在容器 esi-responses-container 中,且 Blob 名稱會加上前缀 /esi/location1。您必須使用 site.xconf 設定此內容。請參閱以下範例:
<Property name="esi.azure.storage.container"
overridable="true"
targetFile="codebase/wt.properties"
value="<container-name>"/>
2. 未設定 esi.azure.storage.container 內容
如果未設定 esi.azure.storage.container 內容,且發佈目標的「路徑」屬性值設定為 /esi/location1,則 Windchill 會嘗試將回應檔案放置在名為 "esi" 的容器中,且 Blob 名稱會加上前綴 "/location1"。換句話說,「路徑」屬性值中的第一個元素將會被視為容器名稱。
這是否有幫助?