Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

[BUG] NubesGen generated Bicep config for Web App fails to deploy #379

Description

Describe the bug
Apply Bicep configuration step fails in build-and-deploy GitOps GitHub Action.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://nubesgen.com/#generator-form
  2. Choose:
    • Infrastructure as Code tool: Bicep
    • Project name: nubesgen-bicep
    • Region: Europe - West Europe (Netherlands)
    • Application: Web Application
    • App size: Free
    • Database: No database
    • Add-Ons: none
    • GitOps: Add GitOps checked
  3. Download configuration files
  4. I unzipped and pushed all the configuration files to my public GitHub repository gontcharovd/nubesgen-bicep
  5. Create a new branch git checkout -b env-test and push to GitHub git push origin env-test

Expected behavior
I expect all the steps in the GitHub Action to succeed because I didn't change the configuration generated by NubesGen in any way.

Screenshots
The Apply Bicep configuration step fails:

image

Desktop (please complete the following information):

  • OS: [e.g. iOS]

OS: Arch Linux x86_64
Host: TUXEDO Pulse 14 Gen1 Standard
Kernel: 6.0.12-arch1-1
Uptime: 2 days, 7 hours, 7 mins
Packages: 1148 (pacman)
Shell: fish 3.5.1
Resolution: 3840x2160
WM: qtile
Theme: Adwaita [GTK2], Arc-Dark [GTK3]
Icons: Adwaita [GTK2], Cyan-Breeze-Dark-Icons [GTK3]
Terminal: tmux
CPU: AMD Ryzen 7 4800H with Radeon Graphics (16) @ 2.900GHz
GPU: AMD ATI 04:00.0 Renoir
Memory: 7893MiB / 31515MiB

  • Browser Firefox

Additional context

Here is the DEBUG log off the failed GitHub Action task:

##[debug]Evaluating condition for step: 'Apply Bicep configuration'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Apply Bicep configuration
##[debug]Register post job cleanup for action: microsoft/nubesgen-actions/gitops-apply-bicep@v0.9.0
##[debug]Loading inputs
##[debug]Evaluating: secrets.AZURE_CREDENTIALS
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'AZURE_CREDENTIALS'
##[debug]=> '***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]***'
##[debug]Result: '***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]***'
##[debug]Loading env
Run microsoft/nubesgen-actions/gitops-apply-bicep@v0.9.0
##[debug]Evaluating condition for step: 'run'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: run
##[debug]Register post job cleanup for action: actions/checkout@v3
##[debug]Loading inputs
##[debug]Evaluating: github.repository
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'repository'
##[debug]=> 'gontcharovd/nubesgen-bicep'
##[debug]Result: 'gontcharovd/nubesgen-bicep'
##[debug]Evaluating: github.token
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'token'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run actions/checkout@v3
##[debug]GITHUB_WORKSPACE = '/home/runner/work/nubesgen-bicep/nubesgen-bicep'
##[debug]qualified repository = 'gontcharovd/nubesgen-bicep'
##[debug]ref = 'refs/heads/env-test'
##[debug]commit = 'abe729f73e3b15ff89459d25159f9c4eabac2ac1'
##[debug]clean = true
##[debug]fetch depth = 1
##[debug]lfs = false
##[debug]submodules = false
##[debug]recursive submodules = false
##[debug]GitHub Host URL = 
::add-matcher::/home/runner/work/_actions/actions/checkout/v3/dist/problem-matcher.json
##[debug]Added matchers: 'checkout-git'. Problem matchers scan action output for known warning or error strings and report these inline.
Syncing repository: gontcharovd/nubesgen-bicep
::group::Getting Git version info
Getting Git version info
::add-mask::***
Temporarily overriding HOME='/home/runner/work/_temp/68b39652-1e79-4e9f-852c-85d44fcbdd57' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /home/runner/work/nubesgen-bicep/nubesgen-bicep
Deleting the contents of '/home/runner/work/nubesgen-bicep/nubesgen-bicep'
::group::Initializing the repository
Initializing the repository
::group::Disabling automatic garbage collection
Disabling automatic garbage collection
::group::Setting up auth
Setting up auth
::group::Fetching the repository
Fetching the repository
::group::Determining the checkout info
Determining the checkout info
::group::Checking out the ref
Checking out the ref
/usr/bin/git log -1 --format='%H'
'abe729f73e3b15ff89459d25159f9c4eabac2ac1'
##[debug]Unsetting HOME override
::remove-matcher owner=checkout-git::
##[debug]Removed matchers: 'checkout-git'
##[debug]Node Action run completed with exit code 0
##[debug]Save intra-action state isPost = true
##[debug]Save intra-action state setSafeDirectory = true
##[debug]Save intra-action state repositoryPath = /home/runner/work/nubesgen-bicep/nubesgen-bicep
##[debug]Finished: run
##[debug]Evaluating: inputs.azure_credentials
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'azure_credentials'
##[debug]=> '***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]***'
##[debug]Result: '***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]***'
##[debug]Evaluating condition for step: 'run'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: run
##[debug]Loading inputs
##[debug]Loading env
Run TAG_NAME=$***GITHUB_REF#refs/*/***
##[debug]/usr/bin/bash --noprofile --norc -e -o pipefail /home/runner/work/_temp/5e1ee816-b687-4978-ba91-bebdb4bfaee0.sh
##[debug]ENVIRONMENT='test'
##[debug]ARM_CLIENT_ID='8cc43117-7159-44a8-892c-a47ea7194fcf'
##[debug]ARM_SUBSCRIPTION_ID='44b670fe-2c6c-4075-9128-eb40b6691e3b'
##[debug]ARM_TENANT_ID='d940f32d-5061-4e88-8b6c-297e55a8d555'
##[debug]Finished: run
##[debug]Evaluating condition for step: 'run'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: run
##[debug]Loading inputs
##[debug]Evaluating: inputs.azure_credentials
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'azure_credentials'
##[debug]=> '***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]***'
##[debug]Result: '***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]  ***
##[debug]***'
##[debug]Loading env
Run azure/login@v1
##[debug]az cli version used: /usr/bin/az
##[debug]az cli version used:
##[debug]azure-cli                         2.43.0
##[debug]
##[debug]core                              2.43.0
##[debug]telemetry                          1.0.8
##[debug]
##[debug]Extensions:
##[debug]azure-devops                      0.25.0
##[debug]
##[debug]Dependencies:
##[debug]msal                              1.20.0
##[debug]azure-mgmt-resource             21.1.0b1
##[debug]
##[debug]Python location '/opt/az/bin/python3'
##[debug]Extensions directory '/opt/az/azcliextensions'
##[debug]
##[debug]Python (Linux) 3.10.8 (main, Dec  2 2022, 06:07:45) [GCC 9.4.0]
##[debug]
##[debug]Legal docs and information: aka.ms/AzureCliLegal
##[debug]
##[debug]
##[debug]Your CLI is up-to-date.
##[debug]
##[debug]using creds JSON...
::add-mask::***
::add-mask::***
::add-mask::***
::add-mask::***
/usr/bin/az cloud set -n azurecloud
Done setting cloud: "azurecloud"
Note: Azure/login action also supports OIDC login mechanism. Refer https://github.com/azure/login#configure-a-service-principal-with-a-federated-credential-to-use-oidc-based-authentication for more details.
Login successful.
##[debug]Node Action run completed with exit code 0
##[debug]AZURE_HTTP_USER_AGENT='GITHUBACTIONS/AzureLogin@v1_gontcharovd/nubesgen-bicep'
##[debug]AZUREPS_HOST_ENVIRONMENT='GITHUBACTIONS/AzureLogin@v1_gontcharovd/nubesgen-bicep'
##[debug]AZURE_HTTP_USER_AGENT=''
##[debug]AZUREPS_HOST_ENVIRONMENT=''
##[debug]Finished: run
##[debug]Evaluating condition for step: 'run'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: run
##[debug]Loading inputs
##[debug]Evaluating: format('***0***/bicep/main.bicep', github.workspace)
##[debug]Evaluating format:
##[debug]..Evaluating String:
##[debug]..=> '***0***/bicep/main.bicep'
##[debug]..Evaluating Index:
##[debug]....Evaluating github:
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'workspace'
##[debug]..=> '/home/runner/work/nubesgen-bicep/nubesgen-bicep'
##[debug]=> '/home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep'
##[debug]Result: '/home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep'
##[debug]Evaluating: format('nubesgen-***0***-***1***', inputs.project_name, env.ENVIRONMENT)
##[debug]Evaluating format:
##[debug]..Evaluating String:
##[debug]..=> 'nubesgen-***0***-***1***'
##[debug]..Evaluating Index:
##[debug]....Evaluating inputs:
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'project_name'
##[debug]..=> 'minimal-shiny-app'
##[debug]..Evaluating Index:
##[debug]....Evaluating env:
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'ENVIRONMENT'
##[debug]..=> 'test'
##[debug]=> 'nubesgen-minimal-shiny-app-test'
##[debug]Result: 'nubesgen-minimal-shiny-app-test'
##[debug]Evaluating: inputs.deployment_region
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'deployment_region'
##[debug]=> 'westeurope'
##[debug]Result: 'westeurope'
##[debug]Loading env
Run azure/arm-deploy@v1
Validating template...
Warning: WARNING: /home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep(10,3) : Warning prefer-unquoted-property-names: Property names that are valid identifiers should be declared without quotation marks and accessed using dot notation. [https://aka.ms/bicep/linter/prefer-unquoted-property-names]
/home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep(11,3) : Warning prefer-unquoted-property-names: Property names that are valid identifiers should be declared without quotation marks and accessed using dot notation. [https://aka.ms/bicep/linter/prefer-unquoted-property-names]
/home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/modules/app-service/app-service.bicep(79,18) : Warning simplify-interpolation: Remove unnecessary string interpolation. [https://aka.ms/bicep/linter/simplify-interpolation]


Creating deployment...
##[debug]exec tool: /usr/bin/az
##[debug]arguments:
##[debug]   deployment
##[debug]   sub
##[debug]   create
##[debug]   --location
##[debug]   westeurope
##[debug]   --template-file
##[debug]   /home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep
##[debug]   --name
##[debug]   nubesgen-minimal-shiny-app-test
##[debug]   -o
##[debug]   json
Error: WARNING: /home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep(10,3) : Warning prefer-unquoted-property-names: Property names that are valid identifiers should be declared without quotation marks and accessed using dot notation. [https://aka.ms/bicep/linter/prefer-unquoted-property-names]
/home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep(11,3) : Warning prefer-unquoted-property-names: Property names that are valid identifiers should be declared without quotation marks and accessed using dot notation. [https://aka.ms/bicep/linter/prefer-unquoted-property-names]
/home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/modules/app-service/app-service.bicep(79,18) : Warning simplify-interpolation: Remove unnecessary string interpolation. [https://aka.ms/bicep/linter/simplify-interpolation]


##[debug]Exit code 0 received from tool '/usr/bin/az'
##[debug]STDIO streams have closed for tool '/usr/bin/az'
Error: Deployment process failed as some lines were written to stderr
##[debug]Node Action run completed with exit code 1
##[debug]Finished: run
##[debug]Finishing: Apply Bicep configuration

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions