cool-jewelry-33023
10/15/2020, 1:35 PMtall-librarian-49374
10/15/2020, 1:37 PMcool-jewelry-33023
10/15/2020, 1:39 PMtall-librarian-49374
10/15/2020, 1:39 PMcool-jewelry-33023
10/15/2020, 1:41 PMvar appServicePlanName = $"{environment}-admin-api-xyz-v2-plan";
var appServicePlan = new Plan(appServicePlanName, new PlanArgs
{
Name = appServicePlanName,
ResourceGroupName = resourceGroup.Name,
Kind = "App",
Sku = new PlanSkuArgs
{
Tier = "Basic",
Size = "B2"
}
});
var submissionApiAppName = $"{environment}-submission-api-xyz-v2";
var submissionApiApp = new AppService(submissionApiAppName, new AppServiceArgs
{
Name = submissionApiAppName,
ResourceGroupName = resourceGroup.Name,
AppServicePlanId = appServicePlan.Id,
// A system-assigned managed service identity to be used for authentication and authorization to the SQL Database and the Blob Storage
Identity = new AppServiceIdentityArgs {Type = "SystemAssigned"},
AppSettings =
{
{"APPINSIGHTS_PROFILERFEATURE_VERSION", "disabled"},
{"APPINSIGHTS_SNAPSHOTFEATURE_VERSION", "disabled"},
{"DiagnosticServices_EXTENSION_VERSION", "disabled"},
{"InstrumentationEngine_EXTENSION_VERSION", "disabled"},
{"SnapshotDebugger_EXTENSION_VERSION", "disabled"},
{"WEBSITE_RUN_FROM_PACKAGE", "1"},
{"XDT_MicrosoftApplicationInsights_BaseExtensions", "disabled"},
{"XDT_MicrosoftApplicationInsights_Mode", "default"},
{"ApplicationInsightsAgent_EXTENSION_VERSION", "~2"},
{"ApplicationInsights:InstrumentationKey", appInsights.InstrumentationKey},
{"APPINSIGHTS_INSTRUMENTATIONKEY", appInsights.InstrumentationKey},
{"PostProcessSubmissionQueueName", postProcessSubmissionQueueName},
{"BreadcrumbsQueueName", breadcrumbsQueueName},
{"ConversationsInboundQueueName", conversationsInboundMessageNotificationsQueueName}
},
ConnectionStrings =
{
new AppServiceConnectionStringArgs()
{
Name = "MainStorageAccount",
Value = mainStorageAccount.PrimaryConnectionString,
Type = "Custom"
},
new AppServiceConnectionStringArgs()
{
Name = "SubmissionsStorageAccount",
Value = submissionsStorageAccount.PrimaryConnectionString,
Type = "Custom"
},
new AppServiceConnectionStringArgs()
{
Name = "xyzDatabase",
Value = xyzMainDatabaseConnectionString,
Type = "SQLAzure"
},
new AppServiceConnectionStringArgs()
{
Name = "ServiceBus",
Value = serviceBusNamespace.DefaultPrimaryConnectionString,
Type = "Custom"
}
},
ClientAffinityEnabled = false,
ClientCertEnabled = false,
SiteConfig = new AppServiceSiteConfigArgs()
{
AlwaysOn = true,
WebsocketsEnabled = false,
Cors = new AppServiceSiteConfigCorsArgs()
{SupportCredentials = false, AllowedOrigins = new InputList<string>() {"*"}}
}
});
tall-librarian-49374
10/15/2020, 1:53 PMexpandAppServiceLogs
. Try pulumi refresh
?cool-jewelry-33023
10/15/2020, 3:50 PMpulumi up
was actually making the requested change and then failing...
after running pulumi refresh
it obviously figured out something, so no updates were needed ❤️
thank you ❤️ ❤️ ❤️pulumi refresh
fetched the changed again 🙂tall-librarian-49374
10/15/2020, 6:27 PM