Skip to content

Don't default necessary values to empty strings#1772

Merged
jongio merged 3 commits intoAzure:mainfrom
pamelafox:container-app-empty
Mar 22, 2023
Merged

Don't default necessary values to empty strings#1772
jongio merged 3 commits intoAzure:mainfrom
pamelafox:container-app-empty

Conversation

@pamelafox
Copy link
Member

The template analyzer pointed out this issue with container-app.bicep, that it sets the names to empty strings that are later used to define existing resources. You can't define an existing resource with an empty string, so that's not a valid default value for it. These values always need to be set, as far as I can see.

@pamelafox pamelafox requested review from jongio and wbreza as code owners March 21, 2023 21:55
@ghost ghost assigned pamelafox Mar 21, 2023
@pamelafox
Copy link
Member Author

Made a couple more similar changes, done making changes now.

@pamelafox pamelafox closed this Mar 22, 2023
@pamelafox pamelafox reopened this Mar 22, 2023
@weikanglim
Copy link
Contributor

/azp run azure-dev - template - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@weikanglim
Copy link
Contributor

/azp run azure-dev - repoman

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk
Copy link
Collaborator

Repoman Generation Results

Repoman pushed changes to remotes for the following projects:

Project: todo-csharp-cosmos-sql

Remote: azure-samples-staging

Branch: pr/1772

You can initialize this project with:

azd init -t Azure-Samples/todo-csharp-cosmos-sql -b pr/1772

View Changes | Compare Changes


Project: todo-csharp-sql-swa-func

Remote: azure-samples-staging

Branch: pr/1772

You can initialize this project with:

azd init -t Azure-Samples/todo-csharp-sql-swa-func -b pr/1772

View Changes | Compare Changes


Project: todo-csharp-sql

Remote: azure-samples-staging

Branch: pr/1772

You can initialize this project with:

azd init -t Azure-Samples/todo-csharp-sql -b pr/1772

View Changes | Compare Changes


Project: todo-java-mongo-aca

Remote: azure-samples-staging

Branch: pr/1772

You can initialize this project with:

azd init -t Azure-Samples/todo-java-mongo-aca -b pr/1772

View Changes | Compare Changes


Project: todo-java-mongo

Remote: azure-samples-staging

Branch: pr/1772

You can initialize this project with:

azd init -t Azure-Samples/todo-java-mongo -b pr/1772

View Changes | Compare Changes


Project: todo-nodejs-mongo-aca

Remote: azure-samples-staging

Branch: pr/1772

You can initialize this project with:

azd init -t Azure-Samples/todo-nodejs-mongo-aca -b pr/1772

View Changes | Compare Changes


Project: todo-nodejs-mongo-aks

Remote: azure-samples-staging

Branch: pr/1772

You can initialize this project with:

azd init -t Azure-Samples/todo-nodejs-mongo-aks -b pr/1772

View Changes | Compare Changes


Project: todo-nodejs-mongo-swa-func

Remote: azure-samples-staging

Branch: pr/1772

You can initialize this project with:

azd init -t Azure-Samples/todo-nodejs-mongo-swa-func -b pr/1772

View Changes | Compare Changes


Project: todo-nodejs-mongo

Remote: azure-samples-staging

Branch: pr/1772

You can initialize this project with:

azd init -t Azure-Samples/todo-nodejs-mongo -b pr/1772

View Changes | Compare Changes


Project: todo-python-mongo-aca

Remote: azure-samples-staging

Branch: pr/1772

You can initialize this project with:

azd init -t Azure-Samples/todo-python-mongo-aca -b pr/1772

View Changes | Compare Changes


Project: todo-python-mongo-swa-func

Remote: azure-samples-staging

Branch: pr/1772

You can initialize this project with:

azd init -t Azure-Samples/todo-python-mongo-swa-func -b pr/1772

View Changes | Compare Changes


Project: todo-python-mongo

Remote: azure-samples-staging

Branch: pr/1772

You can initialize this project with:

azd init -t Azure-Samples/todo-python-mongo -b pr/1772

View Changes | Compare Changes


Copy link
Member

@jongio jongio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jongio jongio enabled auto-merge (squash) March 22, 2023 21:56
@weikanglim
Copy link
Contributor

Some templates failed to deploy because of an unrelated issue. I investigated the errors and confirmed it was separate, provisioning actually succeeded in those cases, and for ACA deployments. Accepting the fix and merging the change.

@weikanglim
Copy link
Contributor

/check-enforcer override

@jongio jongio merged commit c69054f into Azure:main Mar 22, 2023
@pamelafox
Copy link
Member Author

thanks @weikanglim for checking the tests out!

@pamelafox pamelafox deleted the container-app-empty branch March 22, 2023 22:12
jongio added a commit that referenced this pull request Mar 25, 2026
…ibutes

- Add telemetry to auth, config, env, hooks, templates, pipeline, monitor, show, infra commands
- Add 16 new telemetry field constants for command-specific attributes
- Fix user identity tracking with Anonymous account type fallback
- Fix flaky TestStateCacheManager_TTL timing issue
- Add audit documentation: feature matrix, schema, privacy checklist, audit process
- Add telemetry field contract tests and CI coverage check

Resolves #1772

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jongio added a commit that referenced this pull request Mar 25, 2026
…ibutes

- Add telemetry to auth, config, env, hooks, templates, pipeline, monitor, show, infra commands
- Add 16 new telemetry field constants for command-specific attributes
- Fix user identity tracking with Anonymous account type fallback
- Fix flaky TestStateCacheManager_TTL timing issue
- Add audit documentation: feature matrix, schema, privacy checklist, audit process
- Add telemetry field contract tests and CI coverage check

Resolves #1772

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jongio added a commit that referenced this pull request Mar 25, 2026
…ibutes

- Add telemetry to auth, config, env, hooks, templates, pipeline, monitor, show, infra commands
- Add 16 new telemetry field constants for command-specific attributes
- Fix user identity tracking with Anonymous account type fallback
- Fix flaky TestStateCacheManager_TTL timing issue
- Add audit documentation: feature matrix, schema, privacy checklist, audit process
- Add telemetry field contract tests and CI coverage check

Resolves #1772

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jongio added a commit that referenced this pull request Mar 26, 2026
…ibutes

- Add telemetry to auth, config, env, hooks, templates, pipeline, monitor, show, infra commands
- Add 16 new telemetry field constants for command-specific attributes
- Fix user identity tracking with Anonymous account type fallback
- Fix flaky TestStateCacheManager_TTL timing issue
- Add audit documentation: feature matrix, schema, privacy checklist, audit process
- Add telemetry field contract tests and CI coverage check

Resolves #1772

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants