@@ -52,7 +52,7 @@ function Test-SetAzureRmDiagnosticSetting
52
52
{
53
53
try
54
54
{
55
- $actual = Set-AzureRmDiagnosticSetting - ResourceId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourcegroups/ insights- integration/ providers/ test.shoebox/ testresources2/ pstest0000eastusR2 - StorageAccountId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourceGroups/ montest/ providers/ Microsoft.Storage/ storageAccounts/ montest3470 - Enable $true
55
+ $actual = Set-AzureRmDiagnosticSetting - ResourceId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourcegroups/ insights- integration/ providers/ test.shoebox/ testresources2/ pstest0000eastusR2 - StorageAccountId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourceGroups/ montest/ providers/ Microsoft.Storage/ storageAccounts/ montest3470 - Enabled $true
56
56
57
57
Assert-AreEqual $actual.StorageAccountId " /subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/Microsoft.Storage/storageAccounts/montest3470"
58
58
Assert-AreEqual " /subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/Microsoft.ServiceBus/namespaces/ns1/authorizationrules/ar1" $actual.ServiceBusRuleId
@@ -80,7 +80,7 @@ function Test-SetAzureRmDiagnosticSettingWithRetention
80
80
{
81
81
try
82
82
{
83
- $actual = Set-AzureRmDiagnosticSetting - ResourceId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourcegroups/ insights- integration/ providers/ test.shoebox/ testresources2/ pstest0000eastusR2 - StorageAccountId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourceGroups/ montest/ providers/ Microsoft.Storage/ storageAccounts/ montest3470 - Enable $true - RetentionEnabled $true - RetentionInDays 90
83
+ $actual = Set-AzureRmDiagnosticSetting - ResourceId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourcegroups/ insights- integration/ providers/ test.shoebox/ testresources2/ pstest0000eastusR2 - StorageAccountId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourceGroups/ montest/ providers/ Microsoft.Storage/ storageAccounts/ montest3470 - Enabled $true - RetentionEnabled $true - RetentionInDays 90
84
84
85
85
Assert-AreEqual $actual.StorageAccountId " /subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/Microsoft.Storage/storageAccounts/montest3470"
86
86
Assert-AreEqual " workspace1" $actual.WorkspaceId
@@ -115,7 +115,7 @@ function Test-SetAzureRmDiagnosticSetting-CategoriesOnly
115
115
{
116
116
try
117
117
{
118
- $actual = Set-AzureRmDiagnosticSetting - ResourceId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourcegroups/ insights- integration/ providers/ test.shoebox/ testresources2/ pstest0000eastusR2 - StorageAccountId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourceGroups/ montest/ providers/ Microsoft.Storage/ storageAccounts/ montest3470 - Enable $true - Categories TestLog2
118
+ $actual = Set-AzureRmDiagnosticSetting - ResourceId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourcegroups/ insights- integration/ providers/ test.shoebox/ testresources2/ pstest0000eastusR2 - StorageAccountId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourceGroups/ montest/ providers/ Microsoft.Storage/ storageAccounts/ montest3470 - Enabled $true - Categories TestLog2
119
119
120
120
Assert-AreEqual $actual.StorageAccountId " /subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/Microsoft.Storage/storageAccounts/montest3470"
121
121
Assert-AreEqual " /subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/Microsoft.ServiceBus/namespaces/ns1/authorizationrules/ar1" $actual.ServiceBusRuleId
@@ -144,7 +144,7 @@ function Test-SetAzureRmDiagnosticSetting-TimegrainsOnly
144
144
{
145
145
try
146
146
{
147
- $actual = Set-AzureRmDiagnosticSetting - ResourceId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourcegroups/ insights- integration/ providers/ test.shoebox/ testresources2/ pstest0000eastusR2 - StorageAccountId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourceGroups/ montest/ providers/ Microsoft.Storage/ storageAccounts/ montest3470 - Enable $true - Timegrains PT1M
147
+ $actual = Set-AzureRmDiagnosticSetting - ResourceId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourcegroups/ insights- integration/ providers/ test.shoebox/ testresources2/ pstest0000eastusR2 - StorageAccountId / subscriptions/ 1a66ce04- b633- 4a0b- b2bc- a912ec8986a6/ resourceGroups/ montest/ providers/ Microsoft.Storage/ storageAccounts/ montest3470 - Enabled $true - Timegrains PT1M
148
148
149
149
Assert-AreEqual $actual.StorageAccountId " /subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/Microsoft.Storage/storageAccounts/montest3470"
150
150
Assert-AreEqual " workspace1" $actual.WorkspaceId
0 commit comments