Created
November 20, 2020 17:33
-
-
Save flypenguin/241bb709861016582c54fa07531b7d6d to your computer and use it in GitHub Desktop.
appservice.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_app_service" "paramails" { | |
name = "pkd-paramails-${random_string.server.result}" | |
location = azurerm_resource_group.rg.location | |
resource_group_name = azurerm_resource_group.rg.name | |
app_service_plan_id = azurerm_app_service_plan.plan.id | |
site_config { | |
scm_type = "ExternalGit" # use "LocalGit" and it works!! | |
linux_fx_version = "PYTHON|3.8" | |
} | |
} | |
# error message returned from azure when using "ExternalGit" below. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## suuuuper helpful | |
Repository 'GetSiteSourceControl' operation failed with System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. | |
at System.ThrowHelper.ThrowKeyNotFoundException() | |
at System.Collections.Generic.Dictionary`2.get_Item(TKey key) | |
at Microsoft.Web.Hosting.Administration.ExternalSiteRepositoryProvider.<GetSiteSourceControl>d__4.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Microsoft.Web.Hosting.Administration.WebCloudController.<>c__DisplayClass272_0.<<GetSiteSourceControl>b__0>d.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Microsoft.Web.Hosting.AsyncHelper.RunSync[TResult](Func`1 func) | |
at Microsoft.Web.Hosting.Administration.WebCloudController.GetSiteSourceControl(String subscriptionName, String webspaceName, String name)." Details=[{"Message":"Repository 'GetSiteSourceControl' operation failed with System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. | |
at System.ThrowHelper.ThrowKeyNotFoundException() | |
at System.Collections.Generic.Dictionary`2.get_Item(TKey key) | |
at Microsoft.Web.Hosting.Administration.ExternalSiteRepositoryProvider.\u003cGetSiteSourceControl\u003ed__4.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Microsoft.Web.Hosting.Administration.WebCloudController.\u003c\u003ec__DisplayClass272_0.\u003c\u003cGetSiteSourceControl\u003eb__0\u003ed.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Microsoft.Web.Hosting.AsyncHelper.RunSync[TResult](Func`1 func) | |
at Microsoft.Web.Hosting.Administration.WebCloudController.GetSiteSourceControl(String subscriptionName, String webspaceName, String name)."},{"Code":"BadRequest"},{"ErrorEntity":{"Code":"BadRequest","ExtendedCode":"05007","Message":"Repository 'GetSiteSourceControl' operation failed with System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. | |
at System.ThrowHelper.ThrowKeyNotFoundException() | |
at System.Collections.Generic.Dictionary`2.get_Item(TKey key) | |
at Microsoft.Web.Hosting.Administration.ExternalSiteRepositoryProvider.\u003cGetSiteSourceControl\u003ed__4.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Microsoft.Web.Hosting.Administration.WebCloudController.\u003c\u003ec__DisplayClass272_0.\u003c\u003cGetSiteSourceControl\u003eb__0\u003ed.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Microsoft.Web.Hosting.AsyncHelper.RunSync[TResult](Func`1 func) | |
at Microsoft.Web.Hosting.Administration.WebCloudController.GetSiteSourceControl(String subscriptionName, String webspaceName, String name).","MessageTemplate":"Repository '{0}' operation failed with {1}.","Parameters":["GetSiteSourceControl","System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. | |
at System.ThrowHelper.ThrowKeyNotFoundException() | |
at System.Collections.Generic.Dictionary`2.get_Item(TKey key) | |
at Microsoft.Web.Hosting.Administration.ExternalSiteRepositoryProvider.\u003cGetSiteSourceControl\u003ed__4.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Microsoft.Web.Hosting.Administration.WebCloudController.\u003c\u003ec__DisplayClass272_0.\u003c\u003cGetSiteSourceControl\u003eb__0\u003ed.MoveNext() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) | |
at Microsoft.Web.Hosting.AsyncHelper.RunSync[TResult](Func`1 func) | |
at Microsoft.Web.Hosting.Administration.WebCloudController.GetSiteSourceControl(String subscriptionName, String webspaceName, String name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment