你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Set-AzureRmOperationalInsightsStorageInsight
汇报 存储 Insight。
警告
截至 2024 年 2 月 29 日,AzureRM PowerShell 模块已正式弃用。 为了确保持续获得支持和更新,建议用户从 AzureRM 迁移到 Az PowerShell 模块。
尽管 AzureRM 模块仍可能正常运行,但它不再维护或受支持,但会根据用户的自由裁量权和风险继续使用任何继续使用模块。 有关过渡到 Az 模块的指导,请参阅我们的迁移资源。
语法
Set-AzureRmOperationalInsightsStorageInsight
[-ResourceGroupName] <String>
[-WorkspaceName] <String>
[-Name] <String>
[[-StorageAccountKey] <String>]
[[-Tables] <String[]>]
[[-Containers] <String[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Set-AzureRmOperationalInsightsStorageInsight
[-Workspace] <PSWorkspace>
[-Name] <String>
[[-StorageAccountKey] <String>]
[[-Tables] <String[]>]
[[-Containers] <String[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Set-AzureRmOperationalInsights存储Insight cmdlet 更改 存储 Insight 的配置。
示例
示例 1:按名称修改 存储 Insight
PS C:\>Set-AzureRmOperationalInsightsStorageInsight -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "MyWorkspace" -Name "MyStorageInsight" -Tables @("WADWindowsEventLogsTable")
此命令修改从中读取名为 My存储Insight 的 存储 Insight 的表。
示例 2:使用工作区对象修改 存储 Insight
PS C:\>$Workspace = Get-AzureRmOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"
PS C:\>Set-AzureRmOperationalInsightsStorageInsight -Workspace $Workspace -Name "MyStorageInsight" -Containers @("wad-iis-logfiles")
第一个命令使用 Get-AzureRmOperationalInsightsWorkspace cmdlet 获取名为 MyWorkspace 的工作区,然后将其存储在$Workspace变量中。 第二个命令修改存储 Insight 名为 My存储Insight 读取的容器。
参数
-Containers
指定提供数据的容器列表。
类型: | String[] |
Position: | 6 |
默认值: | None |
必需: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
类型: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定 存储 Insight 的名称。
类型: | String |
Position: | 3 |
默认值: | None |
必需: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
指定包含工作区的 Azure 资源组的名称。
类型: | String |
Position: | 1 |
默认值: | None |
必需: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StorageAccountKey
指定存储帐户的访问密钥。
类型: | String |
Position: | 4 |
默认值: | None |
必需: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Tables
指定包含数据的表的列表。
类型: | String[] |
Position: | 5 |
默认值: | None |
必需: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Workspace
指定包含 存储 Insight 的工作区。
类型: | PSWorkspace |
Position: | 0 |
默认值: | None |
必需: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WorkspaceName
指定工作区的名称。
类型: | String |
Position: | 2 |
默认值: | None |
必需: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
输入
参数:工作区(ByValue)
String[]