Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_linux_function_app - linux - container - malformed image name #20393

Closed
1 task done
bertrandpons opened this issue Feb 9, 2023 · 2 comments
Closed
1 task done
Labels

Comments

@bertrandpons
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.3.7

AzureRM Provider Version

3.42.0

Affected Resource(s)/Data Source(s)

azurerm_linux_function_app

Terraform Configuration Files

resource "azurerm_linux_function_app" "func_01" {
  name                = "func-01"
  location            = var.default_location
  resource_group_name = azurerm_resource_group.rg_example.name

  service_plan_id = azurerm_service_plan.plan_functions_01.id

  storage_account_name       = azurerm_storage_account.sto_example.name
  storage_account_access_key = azurerm_storage_account.sto_example.primary_access_key

  identity {
    type = "SystemAssigned"
  }

  virtual_network_subnet_id = azurerm_subnet.snet_example.id

  site_config {
    always_on                               = true
    application_insights_connection_string  = azurerm_application_insights.appi_func_01.connection_string
    application_insights_key                = azurerm_application_insights.appi_func_01.instrumentation_key
    container_registry_use_managed_identity = true

    application_stack {
      docker {
        registry_url = var.acr_url
        image_name   = var.image_name
        image_tag    = var.image_tag
      }
    }
  }

  app_settings = {
    "WEBSITES_ENABLE_APP_SERVICE_STORAGE" = "false"
    "TIMER_INTERVAL"                      = "0 * * * * *"
    "WEBSITE_PULL_IMAGE_OVER_VNET"        = "true"
    "WEBSITE_CONTENTOVERVNET"             = "1"
    "WEBSITE_VNET_ROUTE_ALL"              = "1"
  }

  tags = local.default_tags

}

Debug Output/Panic Output

On the Azure portal, in Azure Function deployment center , instead of having the image as the one specified, let's say "image", it is "/image". Therefore the function does not work because there is an error in image pulling.

Expected Behaviour

Having let's say "image" in Image field of Deployment center

Actual Behaviour

We have let's say "/image" in Image field of Deployment center. Therefore the function does not work because there is an error in image pulling.

Steps to Reproduce

terraform apply

Important Factoids

No response

References

No response

@github-actions github-actions bot removed the bug label Feb 9, 2023
@bertrandpons
Copy link
Author

Actually, it seems that for the argument "registry_url", it works now by adding **https://**XXX.azurecr.io instead of only XXX.azurecr.io (as it used to work before)

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants