{"content":"<div></div>","rawMetadata":{"metadata":{"_op_canonicalUrlPrefix":"https://learn.microsoft.com/zh-tw/powershell/","_op_gitContributorInformation":{"author":{"display_name":"Banreet Kaur","id":"92906285","name":"Banreet","profile_url":"https://github.com/Banreet"},"contributors":[{"display_name":"Alex Buck","id":"27705684","name":"alexbuckgit","profile_url":"https://github.com/alexbuckgit"},{"display_name":"Aaron Czechowski","id":"26784733","name":"aczechowski","profile_url":"https://github.com/aczechowski"}],"update_at":"2026/8/3","updated_at_date_time":"2026-08-03T08:08:29.9379008Z"},"_path":"module/configurationmanager/import-cmaadserverapplication.json","_rel":"../../","_tocRel":"../sccm-ps/toc.json","apiPlatform":"powershell","author":"Banreet","breadcrumb_path":"/powershell/sccm/bread/toc.json","canonical_url":"https://learn.microsoft.com/zh-tw/powershell/module/configurationmanager/import-cmaadserverapplication?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/Import-CMAADServerApplication.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","document_id":"c7aabfd6-1e69-8372-64d3-e450d7738c4b","document_version_independent_id":"e473f1c4-bf3d-2263-3d3a-18148abe6c71","external help file":"AdminUI.PS.dll-Help.xml","feedback_product_url":"https://feedbackportal.microsoft.com/feedback/forum/4669adfc-ee1b-ec11-b6e7-0022481f8472","feedback_system":"Standard","git_commit_id":"f69582fd5f23f80e432c3d68a59bc14785063ef3","gitcommit":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/f69582fd5f23f80e432c3d68a59bc14785063ef3/sccm-ps/ConfigurationManager/Import-CMAADServerApplication.md","github_contributors":["alexbuckgit","aczechowski"],"locale":"zh-tw","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"11/20/2020","ms.service":"microsoft-endpoint-configuration-manager","ms.subservice":"other","ms.topic":"reference","online version":"","open_to_public_contributors":true,"original_content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/live/sccm-ps/ConfigurationManager/Import-CMAADServerApplication.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/Import-CMAADServerApplication.md","PlatyPS schema version":"2.0.0","products":["https://authoring-docs-microsoft.poolparty.biz/devrel/f1499c3b-793f-48c3-a9ce-20285bcc6541"],"site_name":"Docs","titleSuffix":"Configuration Manager","uhfHeaderId":"MSDocsHeader-Powershell","updated_at":"2026-08-03 08:08 AM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/import-cmaadserverapplication","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Import-CMAADServerApplication","schemaType":"PowershellCmdlet","summary":"<p>在 Configuration Manager 中建立 Microsoft Entra server 應用程式定義。</p>\n","uid":"ConfigurationManager.Import-CMAADServerApplication"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.Import-CMAADServerApplication":{"href":"import-cmaadserverapplication","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Import-CMAADServerApplication","schemaType":"PowershellCmdlet","summary":"<p>在 Configuration Manager 中建立 Microsoft Entra server 應用程式定義。</p>\n","uid":"ConfigurationManager.Import-CMAADServerApplication"}},"description":"<p>使用此 Cmdlet 從 Microsoft Entra ID 匯入伺服器應用程式，併為 Configuration Manager 月台定義它。 它假設 Azure 系統管理員已在 Microsoft Entra ID 中建立應用程式。 在 Microsoft Entra ID 中，此應用程式稱為 <em>Web</em> 應用程式註冊。</p>\n<p>如需如何使用此 Cmdlet 建立雲端管理閘道 (CMG) 的詳細資訊，請參閱 <a href=\"/powershell/sccm/2010-release-notes#cloud-management-gateway\">2010 版本資訊：雲端管理閘道</a>。</p>\n<p>如需在 Configuration Manager 中Microsoft Entra 應用程式的詳細資訊，請參閱 <a href=\"/mem/configmgr/core/servers/deploy/configure/azure-services-wizard\">設定 Azure 服務</a>。</p>\n<div class=\"NOTE\">\n<p>注意事項</p>\n<p>此 Cmdlet 可能與其他 Azure 服務搭配運作，但只會使用 <strong>雲端管理</strong> 連線進行測試，以支援雲端管理閘道 (CMG) 。</p>\n</div>\n","examples":[{"code":"$date = [datetime]::parseexact(\"11/16/2021\", 'MM/dd/yyyy', $null)\n\nImport-CMAADServerApplication -TenantName \"Contoso\" -TenantId \"05a349fa-298a-4427-8771-9efcdb73431e\" -AppName \"CmgServerApp\" -ClientId \"7078946d-fc1c-43b7-8dee-dd6e6b00d783\" -SecretKey \"1uXGR^!0@Cjas6qI*J02ZeS&&zY19^hC*9\" -SecretKeyExpiry $date","description":"","summary":"<p>在此範例中，第一個命令會建立 的 <code>11/16/2021</code>datetime 變數。 第二個命令會使用此日期變數作為秘密金鑰到期日，當其使用提供的詳細數據匯入伺服器應用程式時。</p>\n","title":"範例 1"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">None</span>\n"}],"links":[{"href":"get-cmaadapplication","text":"Get-CMAADApplication"},{"href":"import-cmaadclientapplication","text":"Import-CMAADClientApplication"},{"href":"/mem/configmgr/core/servers/deploy/configure/azure-services-wizard","text":"設定 Azure 服務"}],"module":"ConfigurationManager","name":"Import-CMAADServerApplication","notes":"","outputs":[{"description":"","name":"<span class=\"no-loc xref\">IResultObject</span>\n"}],"parameters":[{"aliases":"","defaultValue":"None","description":"<p>在 Microsoft 管理中心中指定應用程式註冊專案的應用程式 <strong>識別碼 URI</strong> 。 此值在您的 Microsoft Entra 租用戶中必須是唯一的。 它位於 Configuration Manager 用戶端用來要求存取服務的存取令牌中。 格式類似於 https://ConfigMgrService.</p>\n","name":"AppIdUri","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Uri</span>\n"},{"aliases":"ApplicationName","defaultValue":"None","description":"<p>指定應用程式的易記名稱。 此值是應用程式註冊中的顯示名稱。</p>\n","isRequired":true,"name":"AppName","parameterValueGroup":"","position":"2","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定此應用程式註冊是在全域 Azure 雲端 () <code>AzurePublicCloud</code> ，還是 Azure Government 雲端 (<code>AzureUSGovernmentCloud</code>) 。</p>\n","name":"AzureEnvironmentOption","parameterValueGroup":"AzurePublicCloud, AzureUSGovernmentCloud","position":"Named","type":"<span class=\"no-loc xref\">AzureEnvironment</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>在 Microsoft Entra ID 中指定應用程式註冊的應用程式 (<strong>客戶</strong> 端) 識別符值。 格式為標準 GUID。</p>\n","isRequired":true,"name":"ClientId","parameterValueGroup":"","position":"3","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"cf","defaultValue":"None","description":"<p>執行 Cmdlet 之前提示您確認。</p>\n","name":"Confirm","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>此參數會將通配符視為常值字元值。 您無法將其與 <strong>ForceWildcardHandling</strong> 結合。</p>\n","name":"DisableWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>此參數會處理通配符，並可能導致非預期的行為 (不建議) 。 您無法將其與 <strong>DisableWildcardHandling</strong> 結合。</p>\n","name":"ForceWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定從 Azure 入口網站複製此應用程式的秘密金鑰。 當您在 Microsoft Entra ID 中註冊應用程式時，已複製秘密密鑰。</p>\n","isRequired":true,"name":"SecretKey","parameterValueGroup":"","position":"4","type":"<span class=\"no-loc xref\">SecureString</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定 <strong>SecretKey</strong> 到期的日期。 當您在 Microsoft Entra ID 中建立應用程式的秘密密鑰時，會設定此值。</p>\n","isRequired":true,"name":"SecretKeyExpiry","parameterValueGroup":"","position":"5","type":"<span class=\"no-loc xref\">DateTime</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定 Microsoft Entra 租使用者的 GUID。</p>\n","isRequired":true,"name":"TenantId","parameterValueGroup":"","position":"1","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定您的 Microsoft Entra 租用戶名稱。</p>\n","isRequired":true,"name":"TenantName","parameterValueGroup":"","position":"0","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"wi","defaultValue":"None","description":"<p>顯示執行 Cmdlet 時會發生什麼情況。 Cmdlet 不會執行。</p>\n","name":"WhatIf","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"}],"schema":"PowershellCmdlet","summary":"<p>在 Configuration Manager 中建立 Microsoft Entra server 應用程式定義。</p>\n","syntaxes":["Import-CMAADServerApplication [-AppIdUri <Uri>] [-AppName] <String>\n [-AzureEnvironmentOption <AzureEnvironment>] [-ClientId] <String> [-SecretKey] <SecureString>\n [-SecretKeyExpiry] <DateTime> [-TenantId] <String> [-TenantName] <String> [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]"],"uid":"ConfigurationManager.Import-CMAADServerApplication","hideEdit":true,"ms.translationtype":"MT","ms.contentlocale":"zh-tw","loc_version":"2024-08-21T21:18:36.7205003Z","loc_source_id":"Github-72476255#live","loc_file_id":"Github-72476255.live.MSDN.sccm-powershell.sccm-ps/ConfigurationManager/Import-CMAADServerApplication.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/import-cmaadserverapplication","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Import-CMAADServerApplication","schemaType":"PowershellCmdlet","summary":"<p>在 Configuration Manager 中建立 Microsoft Entra server 應用程式定義。</p>\n","uid":"ConfigurationManager.Import-CMAADServerApplication"}],"canonical_url":"https://learn.microsoft.com/zh-tw/powershell/module/configurationmanager/import-cmaadserverapplication?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/zh-tw/powershell/module/configurationmanager/import-cmaadserverapplication?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>使用此 Cmdlet 從 Microsoft Entra ID 匯入伺服器應用程式，併為 Configuration Manager 月台定義它。 它假設 Azure 系統管理員已在 Microsoft Entra ID 中建立應用程式。 在 Microsoft Entra ID 中，此應用程式稱為 <em>Web</em> 應用程式註冊。</p>\n<p>如需如何使用此 Cmdlet 建立雲端管理閘道 (CMG) 的詳細資訊，請參閱 <a href=&quot;/powershell/sccm/2010-release-notes#cloud-management-gateway&quot;>2010 版本資訊：雲端管理閘道</a>。</p>\n<p>如需在 Configuration Manager 中Microsoft Entra 應用程式的詳細資訊，請參閱 <a href=&quot;/mem/configmgr/core/servers/deploy/configure/azure-services-wizard&quot;>設定 Azure 服務</a>。</p>\n<div class=&quot;NOTE&quot;>\n<p>注意事項</p>\n<p>此 Cmdlet 可能與其他 Azure 服務搭配運作，但只會使用 <strong>雲端管理</strong> 連線進行測試，以支援雲端管理閘道 (CMG) 。</p>\n</div>\n\" />\r\n<meta name=\"hideEdit\" content=\"true\" />\r\n<meta name=\"loc_file_id\" content=\"Github-72476255.live.MSDN.sccm-powershell.sccm-ps/ConfigurationManager/Import-CMAADServerApplication.md\" />\r\n<meta name=\"loc_source_id\" content=\"Github-72476255#live\" />\r\n<meta name=\"loc_version\" content=\"2024-08-21T21:18:36.7205003Z\" />\r\n<meta name=\"module\" content=\"ConfigurationManager\" />\r\n<meta name=\"ms.contentlocale\" content=\"zh-tw\" />\r\n<meta name=\"ms.translationtype\" content=\"MT\" />\r\n<meta name=\"name\" content=\"Import-CMAADServerApplication\" />\r\n<meta name=\"notes\" content=\"\" />\r\n<meta name=\"schema\" content=\"PowershellCmdlet\" />\r\n<meta name=\"summary\" content=\"<p>在 Configuration Manager 中建立 Microsoft Entra server 應用程式定義。</p>\n\" />\r\n<meta name=\"syntaxes\" content=\"Import-CMAADServerApplication [-AppIdUri <Uri>] [-AppName] <String>\n [-AzureEnvironmentOption <AzureEnvironment>] [-ClientId] <String> [-SecretKey] <SecureString>\n [-SecretKeyExpiry] <DateTime> [-TenantId] <String> [-TenantName] <String> [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.Import-CMAADServerApplication\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}