< Back

Set-AzureRmOperationalInsightsStorageInsight

Thu Apr 04, 2019 5:40 am

NAME Set-AzureRmOperationalInsightsStorageInsight



SYNOPSIS

Updates a Storage Insight.





SYNTAX

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>]





DESCRIPTION

The Set-AzureRmOperationalInsightsStorageInsight cmdlet changes the configuration of a Storage Insight.





PARAMETERS

-Containers <String[]>

Specifies the list of containers that provide the data.



Required? false

Position? 6

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of a Storage Insight.



Required? true

Position? 3

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of an Azure resource group that contains a workspace.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-StorageAccountKey <String>

Specifies the access key for the storage account.



Required? false

Position? 4

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Tables <String[]>

Specifies the list of tables that contain the data.



Required? false

Position? 5

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Workspace <PSWorkspace>

Specifies the workspace that contains the Storage Insight.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-WorkspaceName <String>

Specifies the name of a workspace.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

PSWorkspace

Parameter 'Workspace' accepts value of type 'PSWorkspace' from the pipeline





OUTPUTS

Microsoft.Azure.Commands.OperationalInsights.Models.PSStorageInsight







NOTES









Example 1: Modify a Storage Insight by name



PS C:\\>Set-AzureRmOperationalInsightsStorageInsight -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "MyWorkspace" -Name

"MyStorageInsight" -Tables @("WADWindowsEventLogsTable")



This command modifies the tables from which the Storage Insight named MyStorageInsight reads.





Example 2: Modify a Storage Insight by using a workspace object



PS C:\\>$Workspace = Get-AzureRmOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"



PS C:\\>Set-AzureRmOperationalInsightsStorageInsight -Workspace $Workspace -Name "MyStorageInsight" -Containers @("wad-iis-logfiles")



The first command uses the Get-AzureRmOperationalInsightsWorkspace cmdlet to get the workspace named MyWorkspace, and then stores it in the

$Workspace variable.



The second command modifies the containers from which the Storage Insight named MyStorageInsight reads.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ageinsight

Azure Operational Insights Cmdlets

Get-AzureRmOperationalInsightsWorkspace