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

[Question]: How to specify both a parameter file and filelink in AzureRmWebAppDeployment@4 #18969

Closed
1 of 4 tasks
bartvdbraak opened this issue Sep 12, 2023 · 1 comment
Closed
1 of 4 tasks
Labels

Comments

@bartvdbraak
Copy link

bartvdbraak commented Sep 12, 2023

Task name

AzureRmWebAppDeployment@4

Task version

4.0.0

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 22.04

Question

Hello everyone,

I hope you're doing well. I'm currently facing a challenge with the AzureRmWebAppDeployment@4 task and could use some assistance.

Objective:

I aim to deploy a bicep template by combining a parameter file from the locally checked out repository and another sourced from a URL.

CLI Approach:

I've successfully done this via the Azure Command Line Interface, as shown below:

- task: AzureCLI@2
  inputs:
    azureResourceManagerConnection: "$(azureServiceConnectionId)"
    azureSubscription: "$(subscriptionId)"
    scriptType: "bash"
    scriptLocation: "inlineScript"
    inlineScript: |
      az deployment group create \
        --name "$(deploymentName)" \
        --resource-group "$(resourceGroup)"
        --location "$(location)" \
        --template-file "main.bicep" \
        --parameters "main.params.json" \
        --parameters "https://example.blob.core.windows.net/extra.params.json"

Challenge with AzureResourceManagerTemplateDeployment@4:

However, when I try to replicate this using the AzureResourceManagerTemplateDeployment@4 task as below, it doesn't provide the expected outcome.

- task: AzureResourceManagerTemplateDeployment@4
  inputs:
    azureResourceManagerConnection: "$(azureServiceConnectionId)"
    subscriptionId: "$(subscriptionId)"
    deploymentName: "$(deploymentName)"
    resourceGroupName: "$(resourceGroup)"
    location: "$(location)"
    csmFile: "main.bicep"
    csmParametersFile: "main.params.json"
    csmParametersFileLink: "https://example.blob.core.windows.net/extra.params.json"

Has anyone encountered a similar issue or have any insights into how I can achieve my desired functionality using AzureResourceManagerTemplateDeployment@4?

Thank you in advance for your help and time!

@github-actions github-actions bot added Area: Release triage Area: ABTT Akvelon Build Tasks Team area of work Task: Bash labels Sep 12, 2023
Copy link

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant