sparse-intern-71089
01/07/2022, 9:00 AMbillowy-army-68599
sticky-exabyte-94099
01/07/2022, 2:28 PMbillowy-army-68599
Name = "redisCacheBeinni",
If you explicitly set the names like this, you'll end up with resource collisions. Just remove this property:
var redis = new AzureNative.Cache.Redis("redisCacheBeinni", new AzureNative.Cache.RedisArgs
{
EnableNonSslPort = true,
Location = ResourceGroup.Apply(t => t.Location),
MinimumTlsVersion = "1.2",
RedisConfiguration = new AzureNative.Cache.Inputs.RedisCommonPropertiesRedisConfigurationArgs
{
MaxmemoryPolicy = "allkeys-lru",
},
ResourceGroupName = ResourceGroup.Apply(t => t.Name),
Sku = new AzureNative.Cache.Inputs.SkuArgs
{
Capacity = 1,
Family = "C",
Name = "Standard",
},
Tags =
{
{ "environment", StackName },
},
});
And a lot of the problems you're having will go awaybillowy-army-68599
billowy-army-68599
deleteBeforeReplace
property on your resources so the old one is removed before the new one. This is explained here: https://www.pulumi.com/docs/troubleshooting/faq/#why-do-resource-names-have-random-hex-character-suffixessticky-exabyte-94099
01/07/2022, 2:48 PMbillowy-army-68599
sticky-exabyte-94099
01/07/2022, 3:40 PMsticky-exabyte-94099
01/07/2022, 3:42 PMRedis = Output.Create(new AzureNative.Cache.Redis("redisCacheBeinni", new AzureNative.Cache.RedisArgs
{
});
I´m using the Redis output in another method. Maybe I should´t be doing that but should a new Redis be created every time just because of that?sticky-exabyte-94099
01/07/2022, 3:44 PMbillowy-army-68599
sticky-exabyte-94099
01/07/2022, 4:36 PMAppServicePlan = new Plan
and instead of
[Output] public Output<Plan> AppServicePlan { get; set; }
it should just be regular C#
public Plan AppServicePlan { get; set; }
billowy-army-68599
billowy-army-68599
billowy-army-68599