共用方式為


Get-AzLogProfile

取得記錄檔配置檔。

語法

Get-AzLogProfile
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzLogProfile Cmdlet 會取得記錄配置檔。

範例

範例 1:取得記錄檔配置檔

Get-AzLogProfile

StorageAccountId : /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/testrg/providers/Microsoft.Stor
age/storageAccounts/storageaccount
ServiceBusRuleId :
Locations
     : eastus
Categories
     : Delete
     : Write
     : Action
RetentionPolicy
Enabled : False
Days    : 0

Id               :
/subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/providers/microsoft.insights/logprofiles/exportlogprofile
Name             : exportlogprofile
Type             :
Location         :
Tags             :
Kind             :
Etag             :

此命令會取得記錄檔配置檔。

參數

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

指定要取得的記錄檔設定檔名稱。

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

輸入

String

輸出

PSLogProfileCollection