简体   繁体   English

使用 Azure ARM 模板和 C# 部署时设置调试级别

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

How to set debug level when deploying using Azure ARM template with C#使用 Azure ARM 模板和 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:在 Powershell 中,我们可以使用一个选项:

New-AzureRmResourceGroupDeployment -deploymentdebuglevel

source 资源

As Suggested by mtz1406 you can try checking the below debug setting class in ARM template.根据mtz1406的建议,您可以尝试在 ARM 模板中检查以下调试设置 class。

public class DebugSetting

Inherite the object as debug继承 object 作为调试

Here is the Microsoft Documentation for Debug class setting.这是用于调试 class 设置的 Microsoft 文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM