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

[Aspire] calling infra synth does not generate the auto-gen inputs, leading to deployment fail #3434

Closed
vhvb1989 opened this issue Feb 25, 2024 · 1 comment
Assignees
Labels
aspire bug Something isn't working
Milestone

Comments

@vhvb1989
Copy link
Member

For a manifest like

{
  "resources": {
    "cache": {
      "type": "container.v0",
      "connectionString": "{cache.bindings.tcp.host}:{cache.bindings.tcp.port}",
      "image": "redis:7.2.4",
      "bindings": {
        "tcp": {
          "scheme": "tcp",
          "protocol": "tcp",
          "transport": "tcp",
          "containerPort": 6379
        }
      }
    },
    "sql": {
      "type": "container.v0",
      "connectionString": "Server={sql.bindings.tcp.host},{sql.bindings.tcp.port};User ID=sa;Password={sql.inputs.password};TrustServerCertificate=true",
      "image": "mcr.microsoft.com/mssql/server:2022-latest",
      "env": {
        "ACCEPT_EULA": "Y",
        "MSSQL_SA_PASSWORD": "{sql.inputs.password}"
      },
      "bindings": {
        "tcp": {
          "scheme": "tcp",
          "protocol": "tcp",
          "transport": "tcp",
          "containerPort": 1433
        }
      },
      "inputs": {
        "password": {
          "type": "string",
          "secret": true,
          "default": {
            "generate": {
              "minLength": 10
            }
          }
        }
      }
    },
    "db": {
      "type": "value.v0",
      "connectionString": "{sql.connectionString};Database=db"
    }
  }
}

The input password is set as generate and it is correctly generated and used then azd runs up or provision.

However, if the first azd operation is azd infra synth , the input is not generated, leading to deployment issue

@rajeshkamal5050 rajeshkamal5050 added bug Something isn't working aspire labels Feb 26, 2024
@rajeshkamal5050 rajeshkamal5050 added this to the February 2024 milestone Feb 26, 2024
@rajeshkamal5050
Copy link

#3448

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aspire bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants