Update-AzApplicationInsightsLinkedStorageAccount
Update linked storage accounts for an Application Insights component.
Syntax
Update-AzApplicationInsightsLinkedStorageAccount
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
[-LinkedStorageAccountResourceId <String>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Update-AzApplicationInsightsLinkedStorageAccount
-InputObject <IApplicationInsightsIdentity>
[-LinkedStorageAccountResourceId <String>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Description
Update linked storage accounts for an Application Insights component.
Examples
Example 1: Update linked storage account
$account = Get-AzStorageAccount -ResourceGroupName "rgName" -Name "accountName"
Get-AzApplicationInsights -ResourceGroupName "rgName" -Name "componentName" | Update-AzApplicationInsightsLinkedStorageAccount -LinkedStorageAccountResourceId $account.Id
Update linked storage account under component "componentName" to associate with $account
Parameters
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | PSObject |
| Aliases: | AzureRMContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
| Type: | IApplicationInsightsIdentity |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Linked storage account resource ID
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The name of the Application Insights component resource.
| Type: | String |
| Aliases: | ApplicationInsightsComponentName, ComponentName |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The name of the resource group. The name is case insensitive.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The ID of the target subscription.
| Type: | String |
| Position: | Named |
| Default value: | (Get-AzContext).Subscription.Id |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
Outputs
IComponentLinkedStorageAccounts
Notes
ALIASES
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
INPUTOBJECT <IApplicationInsightsIdentity>: Identity Parameter
[AnnotationId <String>]: The unique annotation ID. This is unique within a Application Insights component.[ComponentName <String>]: The name of the Application Insights component resource.[ExportId <String>]: The Continuous Export configuration ID. This is unique within a Application Insights component.[Id <String>]: Resource identity path[KeyId <String>]: The API Key ID. This is unique within a Application Insights component.[PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned.[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.[ResourceName <String>]: The name of the Application Insights component resource.[StorageType <StorageType?>]: The type of the Application Insights component data source for the linked storage account.[SubscriptionId <String>]: The ID of the target subscription.[WebTestName <String>]: The name of the Application Insights WebTest resource.
Feedback
Submit and view feedback for