set debug level when deploying using Azure ARM template with C#

Viewed 157

How to set debug level when deploying using Azure ARM template with C#

var deployment = azure.Deployments.Define(parameters.DeploymentName)
    .WithExistingResourceGroup(parameters.ResourceGroupName)
    .WithTemplate(vmTemplate)
    .WithParameters(deploymentParameters)
    .WithMode(DeploymentMode.Complete)
    .Create();

In Powershell, there is an option we can use:

New-AzureRmResourceGroupDeployment -deploymentdebuglevel

source

1 Answers

As Suggested by mtz1406 you can try checking the below debug setting class in ARM template.

public class DebugSetting

Inherite the object as debug

Here is the Microsoft Documentation for Debug class setting.

Related