共用方式為


Disable-AzureWebsiteApplicationDiagnostic

停用 Azure 網站的應用程式診斷。

注意

本文件中參考的 Cmdlet 用於管理使用 Azure Service Manager(ASM) API 的舊版 Azure 資源。 建立新的資源時,不建議使用此舊版 PowerShell 模組,因為 ASM 已排定淘汰。 如需詳細資訊,請參閱 Azure Service Manager 淘汰

Az PowerShell 模組是使用 PowerShell 管理 Azure Resource Manager (ARM) 資源的建議 PowerShell 模組。

語法

Disable-AzureWebsiteApplicationDiagnostic
       [-PassThru]
       [-File]
       [-TableStorage]
       [-BlobStorage]
       [-Name <String>]
       [-Slot <String>]
       [-Profile <AzureSMProfile>]
       [<CommonParameters>]

Description

本主題描述 Microsoft Azure PowerShell 模組 0.8.10 版本中的 Cmdlet。 若要取得您所使用的模組版本,請在 Azure PowerShell 控制台中輸入 (Get-Module -Name Azure).Version

停用 Azure 網站的應用程式診斷。 停用設定為儲存在文件系統或 Azure 上的記錄。

範例

範例 1:停用應用程式記錄檔

PS C:\> Disable-AzureWebsiteApplicationDiagnostic -Name MyWebsite -File

下列範例會停用檔案系統上的應用程式記錄。

範例 2:使用 Azure 記憶體停用記錄

PS C:\> Disable-AzureWebsiteApplicationDiagnostic -Name MyWebsite -Storage

下列範例會停用使用記憶體的應用程式記錄。

參數

-BlobStorage

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-File

指定您想要使用檔案系統來儲存記錄檔。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-Name

指定網站的名稱。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-PassThru

如果成功,則傳回 true 的旗標。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Profile

指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設配置檔讀取。

類型:AzureSMProfile
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Slot

指定位置的名稱。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-TableStorage

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False