Terraform remote state backend error - Blob Lease Id missingAzure Create VM With New Storage AccountAzure Resource Manager storage - can I delete a VHD file using PowerShell?Migrate an Azure VM's data disk from Premium storage account to StandardTerraform: How to reflect dynamic resource changes in remote state?Terraform: Choosing credentials for a remote state filecan I use same state file in terraform for multiple terraform filesTerraform - Adding a new resource instance and resoring terraform stateTerraform: Unable to Assign Remote State Value to a Variable in a Module DeclarationTerraform s3 backend not authenticating with shared credentials fileAzure Data Factory Event Based Trigger
Upside-Down Pyramid Addition...REVERSED!
Is the set of non invertible matrices simply connected? What are their homotopy and homology groups?
Something that can be activated/enabled
Can there be a single technologically advanced nation, in a continent full of non-technologically advanced nations?
Wrong answer from DSolve when solving a differential equation
29er Road Tire?
Do I add my skill check modifier to the roll of 15 granted by Glibness?
Does the 7th major scale note resolve more strongly to the lower tonic (note 1) than the higher tonic (note 8)?
What does this wavy downward arrow preceding a piano chord mean?
What does 'made on' mean here?
How should I tell my manager I'm not paying for an optional after work event I'm not going to?
Manager is threatening to grade me poorly if I don't complete the project
Are the Night's Watch still required?
What exactly are the `size issues' preventing formation of presheaves being a left adjoint to some forgetful functor?
Why did Thanos need his ship to help him in the battle scene?
How did the Venus Express detect lightning?
Floor of Riemann zeta function
exec command in bash loop
Nominativ or Akkusativ
Point of the Dothraki's attack in GoT S8E3?
I need a disease
What does "Managed by Windows" do in the Power options for network connection?
Why does this derived table improve performance?
What to use instead of cling film to wrap pastry
Terraform remote state backend error - Blob Lease Id missing
Azure Create VM With New Storage AccountAzure Resource Manager storage - can I delete a VHD file using PowerShell?Migrate an Azure VM's data disk from Premium storage account to StandardTerraform: How to reflect dynamic resource changes in remote state?Terraform: Choosing credentials for a remote state filecan I use same state file in terraform for multiple terraform filesTerraform - Adding a new resource instance and resoring terraform stateTerraform: Unable to Assign Remote State Value to a Variable in a Module DeclarationTerraform s3 backend not authenticating with shared credentials fileAzure Data Factory Event Based Trigger
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am trying to update the remote state file in Azure. Once the blob is created, then when I run terraform apply - I get the following error:
This is the error:
* azurerm_storage_blob.testsb: Error setting properties of blob dev.terraform.tfstate (container tfstate, storage account acctestaccs): storage: service returned error: StatusCode=412, ErrorCode=LeaseIdMissing, ErrorMessage=There is currently a lease on the blob and no lease ID was specified in the request.
RequestId:7befe65c-601e-00ba-60e0-cb868c000000
Time:2019-02-24T01:33:46.3387895Z, RequestInitiated=Sun, 24 Feb 2019 01:33:45 GMT, RequestId=7befe65c-601e-00ba-60e0-cb868c000000, API Version=2016-05-31, QueryParameterName=, QueryParameterValue=
However, I don't have any lease on that blob but still while running in terraform the file shows that the container has been leased and please the lease ID is missing.
I have even tried to use force-unlock but it doesn't work.
Please help me if anyone has a clue on how can this be made working. Thanks
azure terraform azure-networking system-state blob-storage
add a comment |
I am trying to update the remote state file in Azure. Once the blob is created, then when I run terraform apply - I get the following error:
This is the error:
* azurerm_storage_blob.testsb: Error setting properties of blob dev.terraform.tfstate (container tfstate, storage account acctestaccs): storage: service returned error: StatusCode=412, ErrorCode=LeaseIdMissing, ErrorMessage=There is currently a lease on the blob and no lease ID was specified in the request.
RequestId:7befe65c-601e-00ba-60e0-cb868c000000
Time:2019-02-24T01:33:46.3387895Z, RequestInitiated=Sun, 24 Feb 2019 01:33:45 GMT, RequestId=7befe65c-601e-00ba-60e0-cb868c000000, API Version=2016-05-31, QueryParameterName=, QueryParameterValue=
However, I don't have any lease on that blob but still while running in terraform the file shows that the container has been leased and please the lease ID is missing.
I have even tried to use force-unlock but it doesn't work.
Please help me if anyone has a clue on how can this be made working. Thanks
azure terraform azure-networking system-state blob-storage
add a comment |
I am trying to update the remote state file in Azure. Once the blob is created, then when I run terraform apply - I get the following error:
This is the error:
* azurerm_storage_blob.testsb: Error setting properties of blob dev.terraform.tfstate (container tfstate, storage account acctestaccs): storage: service returned error: StatusCode=412, ErrorCode=LeaseIdMissing, ErrorMessage=There is currently a lease on the blob and no lease ID was specified in the request.
RequestId:7befe65c-601e-00ba-60e0-cb868c000000
Time:2019-02-24T01:33:46.3387895Z, RequestInitiated=Sun, 24 Feb 2019 01:33:45 GMT, RequestId=7befe65c-601e-00ba-60e0-cb868c000000, API Version=2016-05-31, QueryParameterName=, QueryParameterValue=
However, I don't have any lease on that blob but still while running in terraform the file shows that the container has been leased and please the lease ID is missing.
I have even tried to use force-unlock but it doesn't work.
Please help me if anyone has a clue on how can this be made working. Thanks
azure terraform azure-networking system-state blob-storage
I am trying to update the remote state file in Azure. Once the blob is created, then when I run terraform apply - I get the following error:
This is the error:
* azurerm_storage_blob.testsb: Error setting properties of blob dev.terraform.tfstate (container tfstate, storage account acctestaccs): storage: service returned error: StatusCode=412, ErrorCode=LeaseIdMissing, ErrorMessage=There is currently a lease on the blob and no lease ID was specified in the request.
RequestId:7befe65c-601e-00ba-60e0-cb868c000000
Time:2019-02-24T01:33:46.3387895Z, RequestInitiated=Sun, 24 Feb 2019 01:33:45 GMT, RequestId=7befe65c-601e-00ba-60e0-cb868c000000, API Version=2016-05-31, QueryParameterName=, QueryParameterValue=
However, I don't have any lease on that blob but still while running in terraform the file shows that the container has been leased and please the lease ID is missing.
I have even tried to use force-unlock but it doesn't work.
Please help me if anyone has a clue on how can this be made working. Thanks
azure terraform azure-networking system-state blob-storage
azure terraform azure-networking system-state blob-storage
edited Feb 28 at 22:00
Mike
18.8k44270
18.8k44270
asked Feb 24 at 15:54
Animesh BadjatyaAnimesh Badjatya
112
112
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The issue was not with the lease. The issue was that I was creating the container in the blob through the code itself. However, blobs automatically create it, we just have to pass the name of the container.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f955519%2fterraform-remote-state-backend-error-blob-lease-id-missing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The issue was not with the lease. The issue was that I was creating the container in the blob through the code itself. However, blobs automatically create it, we just have to pass the name of the container.
add a comment |
The issue was not with the lease. The issue was that I was creating the container in the blob through the code itself. However, blobs automatically create it, we just have to pass the name of the container.
add a comment |
The issue was not with the lease. The issue was that I was creating the container in the blob through the code itself. However, blobs automatically create it, we just have to pass the name of the container.
The issue was not with the lease. The issue was that I was creating the container in the blob through the code itself. However, blobs automatically create it, we just have to pass the name of the container.
answered Apr 25 at 0:54
Animesh BadjatyaAnimesh Badjatya
112
112
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f955519%2fterraform-remote-state-backend-error-blob-lease-id-missing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown