Set-AzOperationalInsightsStorageInsight
Updates a Storage Insight.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Set-AzOperationalInsightsStorageInsight
[-ResourceGroupName] <String>
[-WorkspaceName] <String>
[-Name] <String>
[[-StorageAccountKey] <String>]
[[-Tables] <String[]>]
[[-Containers] <String[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Set-AzOperationalInsightsStorageInsight
[-Workspace] <PSWorkspace>
[-Name] <String>
[[-StorageAccountKey] <String>]
[[-Tables] <String[]>]
[[-Containers] <String[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Set-AzOperationalInsightsStorageInsight cmdlet changes the configuration of a Storage Insight.
Examples
Example 1: Modify a Storage Insight by name
PS C:\>Set-AzOperationalInsightsStorageInsight -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-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"
PS C:\>Set-AzOperationalInsightsStorageInsight -Workspace $Workspace -Name "MyStorageInsight" -Containers @("wad-iis-logfiles")
The first command uses the Get-AzOperationalInsightsWorkspace 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.
Parameters
Specifies the list of containers that provide the data.
| Type: | String[] |
| Position: | 6 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies the name of a Storage Insight.
| Type: | String |
| Position: | 3 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies the name of an Azure resource group that contains a workspace.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies the access key for the storage account.
| Type: | String |
| Position: | 4 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies the list of tables that contain the data.
| Type: | String[] |
| Position: | 5 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies the workspace that contains the Storage Insight.
| Type: | PSWorkspace |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies the name of a workspace.
| Type: | String |
| Position: | 2 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Inputs
String[]