Skip to content

Commit 7ac9862

Browse files
committed
[Shoebox] Allow storage to be ommited when disabling diagnostic settings.
1 parent 2ecd948 commit 7ac9862

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public class SetAzureRmDiagnosticSettingCommand : ManagementCmdletBase
4242
/// <summary>
4343
/// Gets or sets the storage account parameter of the cmdlet
4444
/// </summary>
45-
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account id")]
45+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account id")]
46+
[ValidateNotNullOrEmpty]
4647
public string StorageAccountId { get; set; }
4748

4849
/// <summary>

0 commit comments

Comments
 (0)