问题描述
当我尝试将现有的App Service部署到Azure时,我得到2020-10-29T22:27:58.8724283Z I1029 22:27:58.870264 4596 eventsink.go:78] eventSink::Infoerr(<{%reset%}>panic: interface conversion: interface {} is nil,not map[string]interface {} 2020-10-29T22:27:58.8728827Z <{%reset%}>) 2020-10-29T22:27:58.8735984Z I1029 22:27:58.870264 4596 eventsink.go:78] eventSink::Infoerr(<{%reset%}>goroutine 199 [running]: 2020-10-29T22:27:58.8767921Z <{%reset%}>) 2020-10-29T22:27:58.8778359Z I1029 22:27:58.870264 4596 eventsink.go:78] eventSink::Infoerr(<{%reset%}>github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.expandAppServiceLogs(0x47f6180,0xc0013eca00,0x4,0x47f6180,0x1)
。
此错误使我的堆栈无法部署到Azure。
var webApi = new AppService(appServiceName,new AppServiceArgs
{
Name = appServiceName,ResourceGroupName = resourceGroupName,Identity = new AppServiceIdentityArgs {Type = "SystemAssigned"},AppServicePlanId = appServicePlanId,AppSettings =
{
{"WEBSITE_RUN_FROM_PACKAGE",webApiCodeBlob},{"AzureStorage__AccountName",storageAccountName},{"AzureStorage__AccountKey",storageAccountPrimaryAccessKey},{"APPINSIGHTS_INSTRUMENTATIONKEY",appInsightsInstrumentationKey},{
"APPLICATIONINSIGHTS_CONNECTION_STRING",appInsightsConnectionString
},{"ApplicationInsightsAgent_EXTENSION_VERSION","~2"}
},ConnectionStrings =
{
new AppServiceConnectionStringArgs
{
Name = "AzureServiceBusConnectionString",Value = serviceBusConnectionString,Type = "Custom"
},new AppServiceConnectionStringArgs
{
Name = "BlobStorageConnectionString",Value = blobConnectionString,new AppServiceConnectionStringArgs
{
Name = "MongoConnectionString",Value = cosmosAccountConnectionString,Type = "Custom"
}
},SiteConfig = new AppServiceSiteConfigArgs
{
AlwaysOn = true,Cors = new AppServiceSiteConfigCorsArgs
{
AllowedOrigins = allowedOrigins
}
},Tags = new InputMap<string>()
{
{"team",Team},{"product",Product},{"productId",ProductId},{"environment",environment},{"service",ServiceName}
},});
如果App Service不存在,它将在第一次运行。仅当它部署现有的App Service时,此操作才会失败。只有在App Service中没有定义“日志”部分时,才会发生这种情况。
我正在使用Pulumi 3.28.0
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)