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;








0















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










share|improve this question






























    0















    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










    share|improve this question


























      0












      0








      0








      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










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 28 at 22:00









      Mike

      18.8k44270




      18.8k44270










      asked Feb 24 at 15:54









      Animesh BadjatyaAnimesh Badjatya

      112




      112




















          1 Answer
          1






          active

          oldest

          votes


















          0














          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.






          share|improve this answer























            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
            );



            );













            draft saved

            draft discarded


















            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









            0














            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.






            share|improve this answer



























              0














              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.






              share|improve this answer

























                0












                0








                0







                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.






                share|improve this answer













                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 25 at 0:54









                Animesh BadjatyaAnimesh Badjatya

                112




                112



























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

                    What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

                    Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos