serverless_static_website_with_basic_auth icon indicating copy to clipboard operation
serverless_static_website_with_basic_auth copied to clipboard

Terraform and Azure DevOps

Open uzairmpasha opened this issue 3 years ago • 0 comments

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 } `

uzairmpasha avatar Jul 13 '22 10:07 uzairmpasha