Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
375 stars 1.16k forks source link

Support --allow-insecure option in az containerapp compose create command #7632

Open vienleidl opened 1 month ago

vienleidl commented 1 month ago

Describe the bug

After run the az container compose create command with the following docker-compose file, the Ingress has been enabled successfully with the correct protocol and target port. However, there is no option in docker-compose file to allow insecure connections.

version: '3.4'
services:
  app:
    image: 'ACR_NAME.azurecr.io/Repo_Name/Image_Name:Tag_Name'
    build:
      dockerfile: ./docker-compose/broker/Dockerfile
      args:
      - TOKEN=${TOKEN:-default}
      context: ./..
    environment:
      - HOST=app.internal.$AZURE_CONTAINERAPPS_ENV_DEFAULT_DOMAIN
    expose:
    - 8080
    deploy:
      replicas: 1
      resources:
        reservations:
          cpus: '1.0'
          memory: 2gb

Related command

az containerapp compose create

Errors

N/A

Issue script & Debug output

N/A

Expected behavior

There should be a configuration in the docker-compose file to allow insecure connections.

Environment Summary

{
  "azure-cli": "2.60.0",
  "azure-cli-core": "2.60.0",
  "azure-cli-telemetry": "1.1.0",
  "extensions": {
    "aks-preview": "3.0.0b13",
    "azure-devops": "1.0.0",
    "containerapp": "0.3.50"
  }
}

Additional context

No response

yonzhan commented 1 month ago

Thank you for opening this issue, we will look into it.

microsoft-github-policy-service[bot] commented 1 month ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID.

Greedygre commented 1 month ago

Hi @vienleidl

az containerapp compose create not support --allow-insecure, you can use: az containerapp ingress update --allow-insecure

vienleidl commented 1 month ago

Hi @vienleidl

az containerapp compose create not support --allow-insecure, you can use: az containerapp ingress update --allow-insecure

Yes. I did that already. But I'd like to use the compose create command with the current Docker Compose file and try to deploy with Azure DevOps pipeline.