File tree Expand file tree Collapse file tree 2 files changed +622
-7395
lines changed
src/ApplicationInsights/ApplicationInsights.Test
SessionRecords/Microsoft.Azure.Commands.ApplicationInsights.Test.ScenarioTests.LinkedStorageAccountTests Expand file tree Collapse file tree 2 files changed +622
-7395
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,22 @@ function Test-LinkedStorageAccountCRUD
51
51
52
52
Remove-AzApplicationInsightsLinkedStorageAccount - ResourceGroupName $rgname - ComponentName $appName
53
53
54
+ # Test CRUD by pipeline.
55
+ New-AzApplicationInsightsLinkedStorageAccount - InputObject $app - LinkedStorageAccountResourceId $account1.Id
56
+ $linkedAccount = Get-AzApplicationInsightsLinkedStorageAccount - InputObject $app
57
+
58
+ Assert-NotNull $linkedAccount
59
+ Assert-AreEqual $account1.Id $linkedAccount.linkedStorageAccount
60
+ Assert-AreEqual " serviceprofiler" $linkedAccount.Name
61
+
62
+ Update-AzApplicationInsightsLinkedStorageAccount - InputObject $app - LinkedStorageAccountResourceId $account2.Id
63
+ $linkedAccount = Get-AzApplicationInsightsLinkedStorageAccount - InputObject $app
64
+
65
+ Assert-NotNull $linkedAccount
66
+ Assert-AreEqual $account2.Id $linkedAccount.linkedStorageAccount
67
+
68
+ Remove-AzApplicationInsightsLinkedStorageAccount - InputObject $app
69
+
54
70
Remove-AzStorageAccount - ResourceGroupName $rgname - Name $accountName1 - force
55
71
Remove-AzStorageAccount - ResourceGroupName $rgname - Name $accountName2 - force
56
72
You can’t perform that action at this time.
0 commit comments