Skip to content

Commit 366e5d0

Browse files
committed
Add warning when deployment debug setting is enabled
1 parent 9389435 commit 366e5d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ResourceManager/Resources/Commands.Resources/ResourceGroupDeployments/NewAzureResourceGroupDeploymentCommand.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ public override void ExecuteCmdlet()
6363
DeploymentDebugLogLevel = GetDeploymentDebugLogLevel(DeploymentDebugLogLevel)
6464
};
6565

66+
if(!string.IsNullOrEmpty(DeploymentDebugLogLevel))
67+
{
68+
WriteWarning("The DeploymentDebug setting has been enabled. This can potentially log secrets like passwords used in resource property or listKeys operations when you retrieve the deployment operations through Get-AzureRmResourceGroupDeploymentOperation");
69+
}
70+
6671
if(this.Mode == DeploymentMode.Complete)
6772
{
6873
this.ConfirmAction(

0 commit comments

Comments
 (0)