StatusCode=403 and StatusCode=409 errors

Fay-Ann Gray 1 Reputation point
2021-10-19T03:17:06.693+00:00

Hello,
I am deploying a vm using Azure Devops and get the errors below. I manually broken the lease but get the same error. I give unwrap permissions but still same error. Please, Please someone help. Thank you.

Terraform Apply

Error: Error loading state: failed to lock azure state: 2 errors occurred:
* storage: service returned error: StatusCode=409, ErrorCode=LeaseAlreadyPresent, ErrorMessage=There is already a lease present.
RequestId:23a8734d-901e-0013-5350-c41030000000
Time:2021-10-18T18:48:09.1660298Z, RequestInitiated=Mon, 18 Oct 2021 18:48:08 GMT, RequestId=23a8734d-901e-0013-5350-c41030000000, API Version=2018-03-28, QueryParameterName=, QueryParameterValue=
* storage: service returned error: StatusCode=403, ErrorCode=KeyVaultEncryptionKeyNotFound, ErrorMessage=The key vault key is not found to unwrap the encryption key.
RequestId:23a873a5-901e-0013-1f50-c41030000000
Time:2021-10-18T18:48:09.1730355Z, RequestInitiated=Mon, 18 Oct 2021 18:48:08 GMT, RequestId=23a873a5-901e-0013-1f50-c41030000000, API Version=2018-03-28, QueryParameterName=, QueryParameterValue=

Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 13,071 Reputation points Moderator
    2021-10-19T15:15:19.707+00:00

    @Fay-Ann Gray - Thanks for reaching out.

    Devops is not currently supported here on Microsoft QnA. The Community Members and Engineers are actively answering questions in dedicated forums here. Please post your question in that forum :
    https://developercommunity.visualstudio.com/spaces/21/index.html
    https://azure.microsoft.com/en-in/support/devops/

    Please don't forget to Accept as answer if the reply is helpful.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.