purple-train-14007
04/01/2021, 6:06 PMpurple-train-14007
04/01/2021, 6:07 PMpurple-train-14007
04/02/2021, 5:36 PMpurple-train-14007
04/02/2021, 5:38 PMprehistoric-coat-10166
04/02/2021, 5:41 PMPulumi.Azure
documentation can be found under "Classic providers" https://www.pulumi.com/docs/reference/pkg/azure/purple-train-14007
04/02/2021, 5:42 PMpurple-train-14007
04/02/2021, 5:43 PMpowerful-printer-57241
04/03/2021, 2:48 PMpowerful-printer-57241
04/03/2021, 4:10 PMpublic sealed class AzureAlertStack : Stack
{
public AzureAlertStack()
{
var alertId = CreateAlert(...);
RegisterOutput("AlertId", alertId);
}
}
instead of
public sealed class AzureAlertStack : Stack
{
[Output] public Output<string> AlertId { get; set; }
public AzureAlertStack()
{
AlertId = CreateAlert(...);
}
}
purple-train-14007
04/12/2021, 10:13 PMpurple-train-14007
04/12/2021, 10:14 PMbreezy-salesmen-85534
04/13/2021, 11:31 AMworried-city-86458
04/15/2021, 7:33 PMlate-diamond-14259
04/21/2021, 8:11 PMpulumi up
? For example I want to run: dotnet build /p:GenerateTsProxy=False
. I want to include the /p:GenerateTsProxy=False
. something like this pulumi up -- /p:GenerateTsProxy=False
worried-city-86458
04/28/2021, 5:59 AM--disable-integrity-checking
--logflow
--logtostderr
--verbosity
• Are there plans to eventually avoid the need for InstallPluginAsync
?
• ... otherwise has anyone tried to automate this step somehow?worried-city-86458
04/28/2021, 6:34 AMSystem.MissingMethodException: Method not found: 'Void YamlDotNet.Core.Events.MappingStart..ctor(System.String, System.String, Boolean, YamlDotNet.Core.Events.MappingStyle)'.
at Pulumi.Automation.Serialization.Yaml.ProjectRuntimeYamlConverter.WriteYaml(IEmitter emitter, Object value, Type type)
at YamlDotNet.Serialization.ObjectGraphVisitors.CustomSerializationObjectGraphVisitor.Enter(IObjectDescriptor value, IEmitter context)
at YamlDotNet.Serialization.ObjectGraphTraversalStrategies.FullObjectGraphTraversalStrategy.Traverse[[TContext]](Object name, IObjectDescriptor value, IObjectGraphVisitor`1 visitor, TContext context, Stack`1 path)
at YamlDotNet.Serialization.ObjectGraphTraversalStrategies.FullObjectGraphTraversalStrategy.TraverseProperties[[TContext]](IObjectDescriptor value, IObjectGraphVisitor`1 visitor, TContext context, Stack`1 path)
at YamlDotNet.Serialization.ObjectGraphTraversalStrategies.FullObjectGraphTraversalStrategy.TraverseObject[[TContext]](IObjectDescriptor value, IObjectGraphVisitor`1 visitor, TContext context, Stack`1 path)
at YamlDotNet.Serialization.ObjectGraphTraversalStrategies.FullObjectGraphTraversalStrategy.Traverse[[TContext]](Object name, IObjectDescriptor value, IObjectGraphVisitor`1 visitor, TContext context, Stack`1 path)
at YamlDotNet.Serialization.ObjectGraphTraversalStrategies.FullObjectGraphTraversalStrategy.YamlDotNet.Serialization.IObjectGraphTraversalStrategy.Traverse[[TContext]](IObjectDescriptor graph, IObjectGraphVisitor`1 visitor, TContext context)
at YamlDotNet.Serialization.SerializerBuilder.ValueSerializer.SerializeValue(IEmitter emitter, Object value, Type type)
at YamlDotNet.Serialization.Serializer.EmitDocument(IEmitter emitter, Object graph, Type type)
at YamlDotNet.Serialization.Serializer.Serialize(IEmitter emitter, Object graph)
at YamlDotNet.Serialization.Serializer.Serialize(TextWriter writer, Object graph)
at YamlDotNet.Serialization.Serializer.Serialize(Object graph)
at Pulumi.Automation.Serialization.LocalSerializer.SerializeYaml[[T]](T object) in LocalSerializer.cs:41
at Pulumi.Automation.LocalWorkspace.SaveProjectSettingsAsync(ProjectSettings settings, CancellationToken cancellationToken) in LocalWorkspace.cs:419
at Pulumi.Automation.LocalWorkspace.InitializeProjectSettingsAsync(ProjectSettings projectSettings, CancellationToken cancellationToken) in LocalWorkspace.cs:355
at Pulumi.Automation.LocalWorkspace.CreateStackHelperAsync(InlineProgramArgs args, Func`4 initFunc, CancellationToken cancellationToken) in LocalWorkspace.cs:275
at Pharos.Gemini.DeployCommand.ExecuteAsync(CommandContext context, Settings settings)
creamy-knife-93354
05/03/2021, 3:13 PMKralizek.Extensions.Configuration.AWSSecretsManager
. However, because Pulumi appends a generated ID to the secret names, I'm not sure what the best way is to map the secrets to .NET POCOs, since my app won't know the exact secret name.. Has anyone got some pro tips on this matter?worried-city-86458
05/04/2021, 6:26 AMpolite-guitar-77512
05/07/2021, 12:18 PMprehistoric-coat-10166
05/07/2021, 12:20 PMnew Pulumi.Config("azure-native").Get("location")
should workprehistoric-coat-10166
05/07/2021, 12:25 PMPulumi.AzureNative.Config
class with some of the configuration options as static membersenough-butcher-66045
05/08/2021, 1:25 PM"properties": {
...
"Name": "asasfasfasf",
"TenantId": "6e9924f5-0f9c-4946-a7e9-a01e08f2a84c",
"provisioningState": "Succeeded",
"WorkspaceResourceId": "/subscriptions/blabla/providers/microsoft.operationalinsights/workspaces/test-main",
"IngestionMode": "LogAnalytics",
}
using Pulumi;
using AzureNative = Pulumi.AzureNative;
class MyStack : Stack
{
public MyStack()
{
var ai = new AzureNative.Insights.Component("ai", new AzureNative.Insights.ComponentArgs
{
ApplicationType = "web",
FlowType = "Redfield",
IngestionMode = "LogAnalytics",
Kind = "web",
Location = "westus2",
RequestSource = "IbizaAIExtension",
ResourceGroupName = "DefaultResourceGroup-EUS",
ResourceName = "asasfasfasf",
RetentionInDays = 90,
}, new CustomResourceOptions
{
Protect = true,
});
}
How do I go about describing this scenario? Thanks.enough-butcher-66045
05/08/2021, 1:51 PMbored-activity-40468
05/09/2021, 5:29 PMboundless-tailor-35598
05/10/2021, 2:06 PMworried-city-86458
05/11/2021, 8:55 PMminiature-leather-70472
05/18/2021, 8:06 AMInputList<Union<string, CertificatePermissions>>
Should I not then be able to pass it an
InputList<CertificatePermissions>
This generates a conversion error if I tryminiature-leather-70472
05/18/2021, 8:53 AMbumpy-grass-54508
05/18/2021, 1:24 PMOutput<string> handlerCode = ... // based on other outputs in the stack
var handlerArchive = handlerCode.Apply(code => (Archive)new AssetArchive(new Dictionary<string, AssetOrArchive>
{
["index.js"] = new StringAsset(code),
}));
var function = new Pulumi.Aws.Lambda.Function("function", new Pulumi.Aws.Lambda.FunctionArgs
{
Code = handlerArchive,
Handler = "index.handler",
Role = role.Arn,
Runtime = Pulumi.Aws.Lambda.Runtime.NodeJS14dX,
});
creating the function works fine, and subsequent up
operations sometimes work fine - but in one particular stack I am working on I consistently get this error
System.InvalidOperationException: Expected Pulumi.Archive but got System.String deserializing Pulumi.Aws.Lambda.Function.code
at Pulumi.Serialization.Converter.ConvertObject(String context, Object val, Type targetType)
at Pulumi.Serialization.Converter.ConvertValue(String context, Value value, Type targetType, ImmutableHashSet`1 resources)
at Pulumi.Deployment.CompleteResourceAsync(Resource resource, Boolean remote, Func`2 newDependency, ResourceArgs args, ResourceOptions options, ImmutableDictionary`2 completionSources)
at Pulumi.Deployment.Runner.<>c__DisplayClass9_0.<<WhileRunningAsync>g__HandleCompletion|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Pulumi.Deployment.Runner.WhileRunningAsync()<{%reset%}>)
want to double check I should even be creating this Archive in an Apply or if that is not supportedworried-city-86458
05/19/2021, 9:01 PMSourceContext
, which is used to configure logging per source.worried-city-86458
05/19/2021, 9:01 PMSourceContext
, which is used to configure logging per source.config.Development.yml
to configure logging:
Serilog:
MinimumLevel:
Override:
Microsoft: Information
Microsoft.Hosting.Lifetime: Warning
WriteTo:
- Name: Seq
Args:
serverUrl: <http://localhost:5341>
But I can't control the dotnet automation api logging without a source contextILogger<T>
instead of ILogger
where type T
becomes the source contextpublic sealed partial class DeployCommand : AsyncCommandBase<DeployCommand.Settings>
{
public DeployCommand(IOptions<Config> options, ILogger<DeployCommand> logger, IServiceProvider serviceProvider) : base(options, logger)
{
}
protected override async Task<int> OnExecuteAsync(CommandContext context, Settings settings)
{
Logger.LogInformation("Deploying resources...");
using var totalTimeLogger = new ElapsedTimeLogger(Logger, "Deployed resources");
...
}
}
public abstract class AsyncCommandBase<TSettings> : AsyncCommand<TSettings> where TSettings : CommandSettings
{
protected AsyncCommandBase(IOptions<Config> options, ILogger logger)
{
Config = options.Value;
Logger = logger;
}
protected Config Config { get; }
protected ILogger Logger { get; }
}
tall-librarian-49374
05/20/2021, 5:46 AMworried-city-86458
05/20/2021, 7:53 AMbored-oyster-3147
05/20/2021, 10:46 AMworried-city-86458
05/20/2021, 10:59 AMSerilog.Log.ForContext<Deployment>()
. It gets ugly when PULUMI_DOTNET_LOG_VERBOSE
is defined as this creates a new logger which wipes my sinks.Pulumi.Deployment
so I can control it with say:
Serilog:
MinimumLevel:
Override:
Pulumi.Deployment: Debug
Pulumi.Deployment