關於 Microsoft Entra PowerShell 的常見問題。
Microsoft Graph PowerShell SDK 與 Microsoft Entra PowerShell 模組有什麼不同?
Microsoft Entra PowerShell 是我們對 Microsoft Graph PowerShell SDK 增加投資的一部分。 它將高品質且情境優化的 Microsoft Entra 資源管理帶到 Microsoft Graph PowerShell SDK 中。 不過,它保留了 Microsoft Graph PowerShell SDK 在授權、連線管理、錯誤處理及(低階)API 覆蓋等方面的所有優勢。 由於該模組建立在 Microsoft Graph PowerShell SDK 之上,因此具備互通性。
Microsoft Entra PowerShell 模組與 Microsoft Graph PowerShell 相容嗎?
Yes. 如果你已經使用 Microsoft Graph PowerShell 模組,就不需要切換。 這兩個模組是可以協同運作的,至於你是使用 Microsoft Entra PowerShell 模組 cmdlets 還是 Microsoft Graph PowerShell SDK cmdlets 來管理 Microsoft Entra 資源,則是個人偏好的問題。
我需要從已棄用的模組遷移過來。 我應該等 Microsoft Entra PowerShell 嗎?
我們使用 Microsoft Entra PowerShell 的目標之一,就是協助你更快從 Azure AD PowerShell 遷移。 該模組支援先前使用 Azure AD PowerShell 的腳本簡化遷移,透過啟用 Enable-EntraAzureADAlias 設定,實現超過 98% 相容性。 不過,重要的是要注意,舊有模組現已棄用,將於 2025 年 3 月 30 日後停用(停止運作)。 我們建議您立即行動,開始遷移您的 MSOnline 與 Azure AD PowerShell 腳本。 Microsoft Entra PowerShell 與 Microsoft Graph PowerShell SDK 皆使用最新的 Microsoft Graph API。
對於測試環境和非生產系統,你可以遷移到 Microsoft Entra PowerShell。 我們建議只有在模組達到正式可用性後,才遷移到生產系統模組。 如果你現在就把腳本遷移到 Microsoft Graph PowerShell SDK,就不需要再用 Microsoft Entra PowerShell 來更新腳本。 此模組無需取代 Microsoft Graph PowerShell SDK 即可運作。
我應該將 Microsoft Graph PowerShell 腳本更新成 Microsoft Entra PowerShell 嗎?
No. Microsoft Entra PowerShell 是 Microsoft Graph PowerShell 的一部分,兩個模組可互通。 你可以將兩個模組並排安裝。
Microsoft Entra PowerShell 是像 Azure AD PowerShell 或 MSOnline 那樣的預先同意模組嗎?
No. Microsoft Entra PowerShell 權限並非預先授權,使用者必須自行申請所需的特定應用程式權限。 這種細緻度確保應用程式僅擁有必要的權限,提供對資源管理的細緻控制。
為了最大化應用程式權限的彈性與細緻度,我們建議使用 Microsoft Entra PowerShell 建立自訂應用程式。 透過在租戶中為不同 PowerShell 用途建立不同的應用程式,你可以掌控特定情境下的應用程式權限。 若要使用您自己的應用程式身份搭配 Microsoft Entra PowerShell,可以使用 Connect-Entra 指令檔。 例如:
Connect-Entra -ClientId 'YOUR_APP_ID'
我剛接觸 Microsoft Entra PowerShell;我該從哪裡開始?
我該如何對 Microsoft Entra PowerShell 模組提供回饋?
你可以造訪我們的 GitHub 倉庫議題區塊,提供回饋。 用你的回饋、建議或遇到的問題,創造一個新的問題。 我們團隊積極監控並回應回饋,以改進模組。
我該如何貢獻 Microsoft Entra PowerShell 模組?
我們歡迎社群的貢獻,無論是提交錯誤回報、建議新功能,或是對劇本和範例的改進貢獻。 要開始,請造訪 倉庫,查看我們的貢獻指引,並建立包含你變更的拉取請求。