Skip to content

Commit d2b4cc2

Browse files
committed
Fix Set-AzureRmDiagnosticSetting
1 parent 3b0dfba commit d2b4cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/Insights/Commands.Insights/Diagnostics/SetAzureRmDiagnosticSettingCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected override void ProcessRecordInternal()
8282

8383
ServiceDiagnosticSettings properties = getResponse.Properties;
8484

85-
if (this.Enabled && string.IsNullOrWhiteSpace(properties.StorageAccountId) && string.IsNullOrWhiteSpace(properties.StorageAccountId))
85+
if (this.Enabled && string.IsNullOrWhiteSpace(this.StorageAccountId))
8686
{
8787
throw new ArgumentException("StorageAccountId can't be null when enabling");
8888
}

0 commit comments

Comments
 (0)