Skip to content

Instantly share code, notes, and snippets.

@mamoorkhan
Created May 31, 2019 09:54
Show Gist options
  • Save mamoorkhan/b0f37e1fb5de140455df5c332ab70228 to your computer and use it in GitHub Desktop.
Save mamoorkhan/b0f37e1fb5de140455df5c332ab70228 to your computer and use it in GitHub Desktop.
2019-05-31T09:22:20.7049224Z ##[section]Starting: Azure PowerShell script: execute terraform
2019-05-31T09:22:20.7173006Z ==============================================================================
2019-05-31T09:22:20.7173160Z Task : Azure PowerShell
2019-05-31T09:22:20.7173313Z Description : Run a PowerShell script within an Azure environment
2019-05-31T09:22:20.7173420Z Version : 4.0.8
2019-05-31T09:22:20.7173583Z Author : Microsoft Corporation
2019-05-31T09:22:20.7173747Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613749)
2019-05-31T09:22:20.7173876Z ==============================================================================
2019-05-31T09:22:23.8221181Z ##[command]Import-Module -Name C:\Modules\az_1.6.0\Az.Accounts\1.5.0\Az.Accounts.psd1 -Global
2019-05-31T09:22:25.9985293Z ##[warning]Both Az and AzureRM modules were detected on this machine. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide
2019-05-31T09:22:28.5213449Z ##[command]Clear-AzContext -Scope Process
2019-05-31T09:22:29.3330188Z ##[command]Clear-AzContext -Scope CurrentUser -Force -ErrorAction SilentlyContinue
2019-05-31T09:22:29.8104927Z ##[command]Connect-AzAccount -ServicePrincipal -Tenant *** -Credential System.Management.Automation.PSCredential -Environment AzureCloud
2019-05-31T09:22:31.3343333Z ##[command] Set-AzContext -SubscriptionId *** -TenantId ***
2019-05-31T09:22:31.6417042Z ##[command]& 'D:\a\r1\a\_DevOps\drop\Terraform\terraform.ps1' -environment dev -location NorthEurope -subscription_id *** -client_id *** -client_secret *** -tenant_id *** -service_principal_id ***
2019-05-31T09:22:31.7830424Z
2019-05-31T09:22:31.7831024Z
2019-05-31T09:22:31.7833216Z Directory: D:\a\r1\a\_DevOps\drop\Terraform
2019-05-31T09:22:31.7833378Z
2019-05-31T09:22:31.7833426Z
2019-05-31T09:22:31.7839969Z Mode LastWriteTime Length Name
2019-05-31T09:22:31.7841379Z ---- ------------- ------ ----
2019-05-31T09:22:31.7843838Z -a---- 5/31/2019 9:22 AM 0 terraform.tfvars
2019-05-31T09:22:32.0754112Z
2019-05-31T09:22:32.0754578Z ‌Initializing the backend...‌
2019-05-31T09:22:32.0831610Z ‌
2019-05-31T09:22:32.0832929Z Successfully configured the backend "azurerm"! Terraform will automatically
2019-05-31T09:22:32.0833312Z use this backend unless the backend configuration changes.‌
2019-05-31T09:22:33.3178371Z ##[error]‌
2019-05-31T09:22:33.3577427Z ##[error]‌Error: ‌Failed to get migrated workspaces: storage: service returned error: StatusCode=404, ErrorCode=ContainerNotFound, ErrorMessage=The specified container does not exist.‌
2019-05-31T09:22:33.3578740Z ##[error]RequestId:00000000-0000-0000-0000-000000000000
2019-05-31T09:22:33.3579677Z ##[error]Time:2019-05-31T09:22:33.1854156Z, RequestInitiated=Fri, 31 May 2019 09:22:32 GMT, RequestId=00000000-0000-0000-0000-000000000000, API Version=2016-05-31, QueryParameterName=, QueryParameterValue=‌
2019-05-31T09:22:33.3708232Z ##[error]
2019-05-31T09:22:33.3858120Z ##[error]‌
2019-05-31T09:22:34.6206625Z Acquiring state lock. This may take a few moments...
2019-05-31T09:22:34.7206518Z ##[error]‌
2019-05-31T09:22:34.7289770Z ##[error]‌Error: ‌Error locking state: Error acquiring the state lock: 2 errors occurred:‌
2019-05-31T09:22:34.7357368Z ##[error] * storage: service returned error: StatusCode=404, ErrorCode=ContainerNotFound, ErrorMessage=The specified container does not exist.
2019-05-31T09:22:34.7460986Z ##[error]RequestId:00000000-0000-0000-0000-000000000000
2019-05-31T09:22:34.7527846Z ##[error]Time:2019-05-31T09:22:34.5765893Z, RequestInitiated=Fri, 31 May 2019 09:22:34 GMT, RequestId=00000000-0000-0000-0000-000000000000, API Version=2016-05-31, QueryParameterName=, QueryParameterValue=
2019-05-31T09:22:34.7604496Z ##[error] * storage: service returned error: StatusCode=404, ErrorCode=ContainerNotFound, ErrorMessage=The specified container does not exist.
2019-05-31T09:22:34.7683870Z ##[error]RequestId:00000000-0000-0000-0000-000000000000
2019-05-31T09:22:34.7769475Z ##[error]Time:2019-05-31T09:22:34.6736576Z, RequestInitiated=Fri, 31 May 2019 09:22:34 GMT, RequestId=00000000-0000-0000-0000-000000000000, API Version=2016-05-31, QueryParameterName=, QueryParameterValue=
2019-05-31T09:22:34.7887346Z ##[error]
2019-05-31T09:22:34.7956947Z ##[error]
2019-05-31T09:22:34.8231766Z ##[error]
2019-05-31T09:22:34.8323068Z ##[error]Terraform acquires a state lock to protect the state from being written
2019-05-31T09:22:34.8383573Z ##[error]by multiple users at the same time. Please resolve the issue above and try
2019-05-31T09:22:34.8443911Z ##[error]again. For most commands, you can disable locking with the "-lock=false"
2019-05-31T09:22:34.8528530Z ##[error]flag, but this is not recommended.‌
2019-05-31T09:22:34.8586962Z ##[error]
2019-05-31T09:22:34.8653594Z ##[error]‌
2019-05-31T09:22:36.1469865Z Acquiring state lock. This may take a few moments...
2019-05-31T09:22:36.2822156Z ##[error]‌
2019-05-31T09:22:36.2842936Z ##[error]‌Error: ‌Error locking state: Error acquiring the state lock: 2 errors occurred:‌
2019-05-31T09:22:36.3118648Z ##[error] * storage: service returned error: StatusCode=404, ErrorCode=ContainerNotFound, ErrorMessage=The specified container does not exist.
2019-05-31T09:22:36.3285035Z ##[error]RequestId:00000000-0000-0000-0000-000000000000
2019-05-31T09:22:36.3285802Z ##[error]Time:2019-05-31T09:22:36.1125423Z, RequestInitiated=Fri, 31 May 2019 09:22:35 GMT, RequestId=00000000-0000-0000-0000-000000000000, API Version=2016-05-31, QueryParameterName=, QueryParameterValue=
* storage: service returned error: StatusCode=404, ErrorCode=ContainerNotFound, ErrorMessage=The specified container does not exist.
RequestId:00000000-0000-0000-0000-000000000000
2019-05-31T09:22:36.3319366Z ##[error]Time:2019-05-31T09:22:36.2136130Z, RequestInitiated=Fri, 31 May 2019 09:22:35 GMT, RequestId=00000000-0000-0000-0000-000000000000, API Version=2016-05-31, QueryParameterName=, QueryParameterValue=
2019-05-31T09:22:36.3449340Z ##[error]
2019-05-31T09:22:36.3486899Z ##[error]
2019-05-31T09:22:36.4206846Z ##[error]
2019-05-31T09:22:36.4256591Z ##[error]Terraform acquires a state lock to protect the state from being written
2019-05-31T09:22:36.4291350Z ##[error]by multiple users at the same time. Please resolve the issue above and try
2019-05-31T09:22:36.4387782Z ##[error]again. For most commands, you can disable locking with the "-lock=false"
2019-05-31T09:22:36.4450330Z ##[error]flag, but this is not recommended.‌
2019-05-31T09:22:36.4519793Z ##[error]
2019-05-31T09:22:36.4591204Z ##[error]‌
2019-05-31T09:22:37.2771612Z ##[command]Disconnect-AzAccount -Scope Process -ErrorAction Stop
2019-05-31T09:22:37.4833449Z ##[command]Clear-AzContext -Scope Process -ErrorAction Stop
2019-05-31T09:22:37.6451062Z
2019-05-31T09:22:37.6451529Z
2019-05-31T09:22:37.7126836Z ##[section]Finishing: Azure PowerShell script: execute terraform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment