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

Terraform and Azure DevOps #19

Open
uzairmpasha opened this issue Jul 13, 2022 · 0 comments
Open

Terraform and Azure DevOps #19

uzairmpasha opened this issue Jul 13, 2022 · 0 comments

Comments

@uzairmpasha
Copy link

I have been working on Terraform using AzureDevOps before that I developed tf files using VS code and everything worked fine when try to move files from VS code to Azure DevOps , getting issue on Archive source file path it unable to find the directory, searched every where but unable to resolve this,

Path which was working fine on VS code was “…/Folder name” using same path in Azure DevOps as I have upload completed folder that I have build in VS code but it always get failed when try to archive files as it un-able to find the directory.

`
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
# Root module should specify the maximum provider version
# The > operator is a convenient shorthand for allowing only patch releases within a specific minor release.
version = "
>2.11"
}
}
}

provider "azurerm" {
features {}
#skip_provider_registration = true
}

locals {
location = "uksouth"
}

data "archive_file" "file_function_app" {
type = "zip"
source_dir = "../BlobToBlobTransferPackage"
output_path = "blobtoblobtransfer-app.zip"
}

module "windows_consumption" {
source = "./modules/fa"

archive_file = data.archive_file.file_function_app
}

output "windows_consumption_hostname" {
value = module.windows_consumption.function_app_default_hostname
}
`

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

No branches or pull requests

1 participant