clever-address-74879
07/07/2022, 8:29 PM$"zone.Id"
directly as a Cloudflare.Zone name, and now the name in pulumi is "Calling [ToString] on an [Output<T>] is not supported." I'm having issues recovering from that.rapid-football-44318
07/11/2022, 2:44 PMrapid-football-44318
07/11/2022, 2:46 PMflaky-school-82490
07/13/2022, 2:06 PMglamorous-waitress-51149
07/14/2022, 11:54 AMazure-native:web:AppServicePlan Staging-homepage-appplan error: building auth config: obtain subscription() from Azure CLI: Error parsing json result from the Azure CLI: Error waiting for the Azure CLI: exit status 1
elegant-eye-39446
07/18/2022, 1:59 PMRequestBodyTooLarge - The request body is too large and exceeds the maximum permissible limit
This is my code
var blob = new Blob(_blobAppServiceName, new BlobArgs
{
ResourceGroupName = resourceGroup.Name,
AccountName = storageAccount.Name,
ContainerName = container.Name,
Type = BlobType.Block,
Source = new FileArchive(@"publish\deploy.zip")
});
I've some dlls greater than 4MB, Is there any way to upload my zip?
And moreover can I upload on a different target folder? At this time all files are extracted on wwwroot folder
greetersgray-vr-25374
07/21/2022, 8:52 AMdazzling-gigabyte-42983
07/29/2022, 7:52 PMhappy-grass-18954
08/02/2022, 9:33 PMassumeRole
from Inline program?
Appreciate an example if someone has one.
It’s pretty straight-forward to set AWS region
await stack.SetConfigAsync("aws:region", new ConfigValue("us-east-1"));
I’m trying to figure out how to pass in the assumeRole settings using the same approach as the region.lemon-controller-56705
08/05/2022, 8:42 PMpulumi up
operation.
Unhandled exception. System.IO.FileNotFoundException: Error loading native library. Not found in any of the possible locations: /Users/tm/git/pronghorn/Programs/OperatingEnvironment/bin/Debug/net6.0/libgrpc_csharp_ext.arm64.dylib,/Users/tm/git/pronghorn/Programs/OperatingEnvironment/bin/Debug/net6.0/runtimes/osx-arm64/native/libgrpc_csharp_ext.arm64.dylib,/Users/tm/git/pronghorn/Programs/OperatingEnvironment/bin/Debug/net6.0/../../runtimes/osx-arm64/native/libgrpc_csharp_ext.arm64.dylib
at Grpc.Core.Internal.UnmanagedLibrary.FirstValidLibraryPath(String[] libraryPathAlternatives)
at Grpc.Core.Internal.UnmanagedLibrary..ctor(String[] libraryPathAlternatives)
at Grpc.Core.Internal.NativeExtension.LoadNativeMethodsUsingExplicitLoad()
at Grpc.Core.Internal.NativeExtension.LoadNativeMethods()
at Grpc.Core.Internal.NativeExtension..ctor()
at Grpc.Core.Internal.NativeExtension.Get()
at Grpc.Core.Internal.NativeMethods.Get()
at Grpc.Core.GrpcEnvironment.GrpcNativeInit()
at Grpc.Core.GrpcEnvironment..ctor()
at Grpc.Core.GrpcEnvironment.AddRef()
at Grpc.Core.Channel..ctor(String target, ChannelCredentials credentials, IEnumerable`1 options)
at Pulumi.GrpcEngine..ctor(String engine)
at Pulumi.Deployment..ctor()
at Pulumi.Deployment.<>c__102`1.<RunAsync>b__102_0()
at Pulumi.Deployment.CreateRunnerAndRunAsync(Func`1 deploymentFactory, Func`2 runAsync)
at Program.<Main>$(String[] args) in /Users/tm/git/pronghorn/Programs/OperatingEnvironment/Program.cs:line 9
at Program.<Main>(String[] args)
error: an unhandled error occurred: Program exited with non-zero exit code: 134
high-france-81657
08/09/2022, 3:53 PMhigh-france-81657
08/09/2022, 3:53 PMhigh-france-81657
08/09/2022, 4:02 PMasync Task<Output<string>> x()
{
return OutputUtilities.CreateUnknown("false");
}
output = Output.Create(x()).Apply(_ => _);
clever-address-74879
08/11/2022, 7:31 PMvar resourceGroup = ResourceGroup.Get(
$"rg-{stackName}",
$"/subscriptions/000-0000-0000-00000-0000/resourceGroups/rg-{stackName}");
var managedEnvironment = await AzureNative.App.GetManagedEnvironment.InvokeAsync(new AzureNative.App.GetManagedEnvironmentArgs
{
ResourceGroupName = resourceGroup.Name,
EnvironmentName = "AzureNative",
});
But the resourceGroup.Name
reference doesn't work. I'm still not fully comfortable with these Output<T> types, and I'm not exactly sure how to get the string value out.clever-address-74879
08/11/2022, 7:36 PMvar resourceGroupName = sharedStack.GetOutput("resourceGroupName");
I get a Output<object?>. How do I get a string value out? Any convenient methods to help here?ripe-russia-4239
08/18/2022, 9:38 AMIsPreview
but to indicate whether the deployment is an up
or a destroy
. I've not found anything yet, which leads me to believe I'm going about this the wrong way. Any advice on a better approach?bored-bear-61303
08/18/2022, 2:21 PMenough-ability-9030
08/18/2022, 9:51 PMenough-ability-9030
08/18/2022, 9:51 PMchilly-analyst-14900
08/22/2022, 12:23 PMstderr: error: failed to discover plugin requirements: unexpected output from 'dotnet list package --include-transitive'. Program does not appear to reference any 'Pulumi.*' packages
Any idea what this really means (GitHub action output)? Bare bones Pulumi csproj.victorious-ghost-35676
08/22/2022, 7:31 PMOutput
that is point to a InputList
something like this.
[Output("UserIds")]
public Output<string> UserIds { get; private set; }
var userIds = new InputList<string>();
UserIds = userIds
victorious-ghost-35676
08/23/2022, 5:55 PMglamorous-waitress-51149
08/24/2022, 10:58 AMUrl = Output.Format($"https://{app.Configuration.Apply(x => x!.Ingress).Apply(x => x!.Fqdn)}");
but obviously it’s cyclic dependency issue, you’re trying to add the url to the envvars but the url doesn’t exist yetfaint-mouse-9657
08/30/2022, 9:21 PMCode="InvalidRequestContent" Message="The request content was invalid and could not be deserialized: 'Error converting value \"/subscriptions/0b538061-fbd8-4498-98a5-b7fe568605a6/resourcegroups/wealthbuildapp-dev-westus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/dev-wealthbuildapiappmanagedidentity\" to type 'Microsoft.WindowsAzure.Governance.PolicyService.Models.Policy.UserAssignedResourceIdentity'. Path 'identity.userAssignedIdentities['/subscriptions/0b538061-fbd8-4498-98a5-b7fe568605a6/resourceGroups/wealthbuildapp-dev-westus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/dev-wealthbuildapiappmanagedidentity']'.'."
I'm not sure what to make off that. I was sure that I have the correct key value being supplied. I have done a few implementations but this is my most recent attempt.
public Output<Pulumi.AzureNative.Web.WebApp> WealthBuildAPIServicePlan(
Pulumi.AzureNative.Resources.ResourceGroup resourceGroup,
Pulumi.AzureNative.Web.AppServicePlan appServicePlan,
Pulumi.AzureNative.Sql.Server server,
Pulumi.AzureNative.Sql.Database database,
Pulumi.AzureNative.ManagedIdentity.UserAssignedIdentity managedIdentity)
{
string resourceName = $"{config.EnviromentAbbreviatedLowerCaseName()}-{config.WealthBuildAppAPIName()}";
string serverFarmId = $"/subscriptions/{config.WealthBuildAzureSubsctriptionId()}/resourceGroups/{config.WealthBuildAppResourceGroupName()}-{config.EnviromentAbbreviatedLowerCaseName()}-{config.LocationWestUS()}/providers/Microsoft.Web/serverFarms/{config.EnviromentAbbreviatedLowerCaseName()}-{config.WealthBuildAppAPIServerName()}";
Output<string> connectionString = Output.Tuple(server.Name, database.Name, config.WealthBuildAzureSqlServerPassword()).Apply(cs => $"Server=tcp:{cs.Item1}.<http://database.windows.net|database.windows.net>,1433;Initial Catalog={cs.Item2};Persist Security Info=False;User ID={config.WealthBuildAzueSqlServerAdminName()};Password={cs.Item3};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;");
Output<string> userAssignedIdentiy = Output.Tuple(resourceGroup.Name, managedIdentity.Name).Apply(uai => $"/subscriptions/{config.WealthBuildAzureSubsctriptionId()}/resourceGroups/{uai.Item1}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{uai.Item2}");
Output<Pulumi.AzureNative.Web.WebApp> output = Output.Tuple(connectionString, userAssignedIdentiy).Apply(ouputString =>
new Pulumi.AzureNative.Web.WebApp(
resourceName,
new WebAppArgs()
{
Name = resourceName,
HttpsOnly = true,
Kind = "api-app",
Location = resourceGroup.Location,
ResourceGroupName = resourceGroup.Name,
ServerFarmId = serverFarmId,
Identity = new ManagedServiceIdentityArgs()
{
Type = ManagedServiceIdentityType.UserAssigned,
UserAssignedIdentities =
{
{ ouputString.Item2, managedIdentity.Id }
}
},
KeyVaultReferenceIdentity = managedIdentity.Id,
SiteConfig = new SiteConfigArgs()
{
//AcrUserManagedIdentityID = managedIdentity.Id,
AppSettings = new InputList<NameValuePairArgs>()
{
new NameValuePairArgs()
{
Name = "ASPNETCORE_ENVIRONMENT",
Value = config.EnviromentName()
}
},
ConnectionStrings = new InputList<ConnStringInfoArgs>()
{
new ConnStringInfoArgs()
{
Name = "AzureSqlServer",
ConnectionString = ouputString.Item1,
Type = ConnectionStringType.SQLAzure
}
},
AppCommandLine = "dotnet WebApi.dll"
}
},
new CustomResourceOptions()
{
DependsOn = new InputList<Resource>()
{
appServicePlan,
server,
database,
managedIdentity
}
})
);
Console.WriteLine($"Created API Web App: {config.WealthBuildAppAPIName()}");
return output;
}
victorious-ghost-35676
08/31/2022, 5:16 PMvictorious-ghost-35676
09/01/2022, 5:45 PMCriteria
to line up correctlyancient-solstice-53934
09/12/2022, 7:36 AMbetter-agent-38563
09/16/2022, 7:27 PMable-train-72108
09/21/2022, 8:01 PMNote the use of the `Ready()` method; depending on the Chart resource directly will
// not work.
)
The problem is that I don't find the Ready function in the helm c# api, browsing here; https://github.com/pulumi/pulumi-kubernetes/blob/master/sdk/dotnet/Helm/V3/Chart.cs I cannot find the word ready in the page. I looked at go, python and nodejs sdk and they all have a ready member and it is set to something in the constructor. Is it a limitation of c# or a bug?late-lizard-19909
09/22/2022, 6:10 PM