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

[AVM Module Issue]: avm/res/web/site with slots returns invalid output #4369

Open
1 task done
Hoaas opened this issue Feb 3, 2025 · 2 comments
Open
1 task done
Assignees
Labels
Class: Resource Module 📦 This is a resource module Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue

Comments

@Hoaas
Copy link

Hoaas commented Feb 3, 2025

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Issue Type?

I'm not sure

Module Name

avm/res/web/site

(Optional) Module Version

0.13.1

Description

Using the slots parameter leads to error in the deploy, yet the resources are created as they should.

Template works fine without slots, or if slots is []. When any slots are given the error in the Azure Portal reads this:

  "details": [
    {
      "code": "DeploymentOutputEvaluationFailed",
      "target": "slotSystemAssignedMIPrincipalIds",
      "message": "The template output 'slotSystemAssignedMIPrincipalIds' is not valid: The language expression property 'value' doesn't exist, available properties are 'type'.."
    }
  ]

Below is part of the parameters I've used. ipSecurityRestrictions, basicPublishingCredentialsPolicies and appSettingsKeyValuePairs is removed.

module webApp 'br/public:avm/res/web/site:0.13.1' = {
  name: 'siteDeployment'
  params:{
    // Required parameters
    name: appName
    kind: 'app,linux'
    serverFarmResourceId: appServicePlan.id

    // Optional parameters
    location: resourceGroup().location
    tags: tags
    managedIdentities: {
      userAssignedResourceIds: [
        userAssignedIdentity.id
      ]
    }
    siteConfig: {
      alwaysOn: true
      http20Enabled: true
      use32BitWorkerProcess: false
      linuxFxVersion: 'DOTNETCORE|8.0'
      ftpsState: 'Disabled'
    }
    slots: [
      {
        kind: 'app,linux'
        name: 'staging'
      }
    ]
  }
}

(Optional) Correlation Id

No response

@Hoaas Hoaas added Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue labels Feb 3, 2025

Important

The "Needs: Triage 🔍" label must be removed once the triage process is complete!

Tip

For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.

@avm-team-linter avm-team-linter bot added the Class: Resource Module 📦 This is a resource module label Feb 3, 2025
Copy link

@Hoaas, thanks for submitting this issue for the avm/res/web/site module!

Important

A member of the @Azure/avm-res-web-site-module-owners-bicep or @Azure/avm-res-web-site-module-contributors-bicep team will review it soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: Resource Module 📦 This is a resource module Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue
Projects
Status: Needs: Triage
Development

No branches or pull requests

2 participants