Azure-Samples / Azure-Samples/ai-chat-quickstart-csharp
[Auto] AI Gallery Standard Validation
- Dominant language
- Bicep
- Stars
- 12
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
# AI Gallery Standard Validation: NON-CONFORMING
Severity: High
Please review the warnings below. If your template is already published, it may be subject to removal from a collection.
Head to this link for more information: [template-lifecycle](https://aka.ms/ai-gallery/template-lifecycle)
## Repository Management:
- [x] README.md File.
- [x] LICENSE.md File.
- [x] SECURITY.md File.
- [x] CODE_OF_CONDUCT.md File.
- [x] CONTRIBUTING.md File.
- [x] ISSUE_TEMPLATE.md File.
- [x] Topics on repo contains ['azd-templates', 'ai-azd-templates'].
## Source code structure and conventions:
- [x] azure-dev.yml File.
- [x] azure.yml File.
- [x] infra Folder.
- [x] .devcontainer Folder.
## Functional Requirements:
- [ ] :x: azd up. [How to fix?]
Details
New environment 'ai8-537344587r55' created and set as default.
Initialize bicep provider
Packaging services (azd package)
Packaging service aca
(✓) Done: Packaging service aca
- No artifacts were found
Provisioning Azure resources (azd provision)
Provisioning Azure resources can take some time.
Initialize bicep provider
ERROR: error executing step command 'provision': initializing provisioning manager: failed to compile bicep template: failed running bicep build: exit code: 1, stdout: , stderr: /workspaces/template/infra/main.bicep(118,22) : Error BCP104: The referenced module has errors. [https://aka.ms/bicep/core-diagnostics#BCP104]
/workspaces/template/infra/main.bicep(143,47) : Warning BCP318: The value of type "module | null" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. [https://aka.ms/bicep/core-diagnostics#BCP318]
/workspaces/template/infra/main.bicep(176,65) : Warning BCP318: The value of type "module | null" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. [https://aka.ms/bicep/core-diagnostics#BCP318]
/workspaces/template/infra/core/host/container-apps.bicep(28,10) : Error BCP420: The scope could not be resolved at compile time because the supplied expression is ambiguous or too complex. Scoping expressions must be reducible to a specific kind of scope without knowledge of parameter values. [https://aka.ms/bicep/core-diagnostics#BCP420]
/workspaces/template/infra/core/host/container-app-upsert.bicep(101,68) : Warning BCP318: The value of type "Microsoft.App/containerApps | null" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. [https://aka.ms/bicep/core-diagnostics#BCP318]
/workspaces/template/infra/core/ai/cognitiveservices.bicep(45,20) : Warning use-safe-access: Use the safe access (.?) operator. [https://aka.ms/bicep/linter-diagnostics#use-safe-access]
/workspaces/template/infra/core/ai/cognitiveservices.bicep(47,8) : Warning use-safe-access: Use the safe access (.?) operator. [https://aka.ms/bicep/linter-diagnostics#use-safe-access]
/workspaces/template/infra/core/host/container-apps-environment.bicep(27,99) : Warning BCP318: The value of type "Microsoft.Insights/components | null" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. [https://aka.ms/bicep/core-diagnostics#BCP318]
/workspaces/template/infra/core/host/container-app.bicep(92,51) : Warning BCP318: The value of type "Microsoft.ManagedIdentity/userAssignedIdentities | null" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. [https://aka.ms/bicep/core-diagnostics#BCP318]
/workspaces/template/infra/core/host/container-app.bicep(129,16) : Warning use-secure-value-for-secure-inputs: Property 'value' expects a secure value, but the value provided may not be secure. [https://aka.ms/bicep/linter-diagnostics#use-secure-value-for-secure-inputs]
/workspaces/template/infra/core/host/container-app.bicep(165,139) : Warning BCP318: The value of type "Microsoft.ManagedIdentity/userAssignedIdentities | null" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. [https://aka.ms/bicep/core-diagnostics#BCP318]
- [ ] :warning: azd down. [How to fix?]
Details
Deleting all resources and deployed code on Azure (azd down)
Local application code is not deleted when running 'azd down'.
Initialize bicep provider
ERROR: initializing provisioning manager: failed to compile bicep template: failed running bicep build: exit code: 1, stdout: , stderr: /workspaces/template/infra/main.bicep(118,22) : Error BCP104: The referenced module has errors. [https://aka.ms/bicep/core-diagnostics#BCP104]
/workspaces/template/infra/main.bicep(143,47) : Warning BCP318: The value of type "module | null" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. [https://aka.ms/bicep/core-diagnostics#BCP318]
/workspaces/template/infra/main.bicep(176,65) : Warning BCP318: The value of type "module | null" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. [https://aka.ms/bicep/core-diagnostics#BCP318]
/workspaces/template/infra/core/host/container-apps.bicep(28,10) : Error BCP420: The scope could not be resolved at compile time because the supplied expression is ambiguous or too complex. Scoping expressions must be reducible to a specific kind of scope without knowledge of parameter values. [https://aka.ms/bicep/core-diagnostics#BCP420]
/workspaces/template/infra/core/host/container-app-upsert.bicep(101,68) : Warning BCP318: The value of type "Microsoft.App/containerApps | null" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. [https://aka.ms/bicep/core-diagnostics#BCP318]
/workspaces/template/infra/core/ai/cognitiveservices.bicep(45,20) : Warning use-safe-access: Use the safe access (.?) operator. [https://aka.ms/bicep/linter-diagnostics#use-safe-access]
/workspaces/template/infra/core/ai/cognitiveservices.bicep(47,8) : Warning use-safe-access: Use the safe access (.?) operator. [https://aka.ms/bicep/linter-diagnostics#use-safe-access]
/workspaces/template/infra/core/host/container-apps-environment.bicep(27,99) : Warning BCP318: The value of type "Microsoft.Insights/components | null" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. [https://aka.ms/bicep/core-diagnostics#BCP318]
/workspaces/template/infra/core/host/container-app.bicep(92,51) : Warning BCP318: The value of type "Microsoft.ManagedIdentity/userAssignedIdentities | null" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. [https://aka.ms/bicep/core-diagnostics#BCP318]
/workspaces/template/infra/core/host/container-app.bicep(129,16) : Warning use-secure-value-for-secure-inputs: Property 'value' expects a secure value, but the value provided may not be secure. [https://aka.ms/bicep/linter-diagnostics#use-secure-value-for-secure-inputs]
/workspaces/template/infra/core/host/container-app.bicep(165,139) : Warning BCP318: The value of type "Microsoft.ManagedIdentity/userAssignedIdentities | null" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. [https://aka.ms/bicep/core-diagnostics#BCP318]
## Security Requirements:
- [x] Security scan is not performed.
Contributor guide
Assessment
This issue has not been assessed yet.