Set-AzOperationalInsightsDataSource
データ ソースを更新します。
構文
Default (既定)
Set-AzOperationalInsightsDataSource
[-DataSource] <PSDataSource>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
説明
Set-AzOperationalInsightsDataSource コマンドレットは、データ ソースを更新します。
例
例 1
$datasource = Get-AzOperationalInsightsDataSource -Kind CustomLog -ResourceGroupName testrg -WorkspaceName LogAnalyticsWorkspace
Set-AzOperationalInsightsDataSource -DataSource $datasource
Name : DataSource_CustomLog_Customlog_CL
ResourceGroupName : testrg
WorkspaceName : LogAnalyticsWorkspace
ResourceId : /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/testrg/providers/Microsoft.Ope
rationalInsights/workspaces/LogAnalyticsWorkspace/datasources/DataSource_CustomLog_Customlog_
CL
Kind : CustomLog
Properties : {"customLogName":"Customlog_CL","description":"","extractions":[{"extractionName":"TimeGenerated","
extractionProperties":{"dateTimeExtraction":{"joinStringRegex":null,"regex":null,"formatString":nul
l}},"extractionType":"DateTime"}],"inputs":[{"___location":{"fileSystemLocations":{"linuxFileTypeLogPa
ths":null,"windowsFileTypeLogPaths":["D:\\logs.txt"]}},"recordDelimiter":{"regexDelimiter":{"matchI
ndex":0,"numberdGroup":null,"pattern":"\\n"}}}]}
データ ソースを更新します。
パラメーター
-DataSource
このコマンドレットが更新するデータ ソースを指定します。
パラメーターのプロパティ
| 型: | PSDataSource |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
(All)
| 配置: | 0 |
| 必須: | True |
| パイプラインからの値: | True |
| プロパティ名別のパイプラインからの値: | False |
| 残りの引数からの値: | False |
-DefaultProfile
Azure との通信に使用される資格情報、アカウント、テナント、サブスクリプション
パラメーターのプロパティ
| 型: | IAzureContextContainer |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
パラメーター セット
(All)
| 配置: | Named |
| 必須: | False |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | False |
| 残りの引数からの値: | False |
CommonParameters
このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。
入力
PSDataSource
出力
PSDataSource
メモ
- キーワード: azure, azurerm, arm, リソース, 管理, マネージャー, 運用, 分析情報