1
0
Форкнуть 0

fix: add tf custom command for state file mod

This commit is contained in:
Isabelle Bersano 2023-09-01 16:40:47 -04:00
Родитель e1e89d236d
Коммит 5c154e745c
1 изменённых файлов: 7 добавлений и 8 удалений

Просмотреть файл

@ -823,15 +823,14 @@ jobs:
backendAzureRmStorageAccountName: $(stateStorageAccountName)
backendAzureRmContainerName: $(stateStorageContainerName)
backendAzureRmKey: 'lz-sharedresources'
- task: AzureCLI@2
displayName: Terraform credentials
- task: TerraformTaskV3@3
displayName: Initialize Terraform
inputs:
azureSubscription: $(azureServiceConnection)
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
terraform state rm azurerm_virtual_machine_extension.Installdependencies
addSpnToEnvironment: true
provider: 'azurerm'
command: 'custom'
workingDirectory: $(workingDirectory)
environmentServiceNameAzureRM: $(azureServiceConnection)
customCommand: 'state rm azurerm_virtual_machine_extension.Installdependencies'
- task: TerraformTaskV3@3
name: terraformPlan
displayName: Create Terraform Plan