question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az backup vault show duplicated eTag key

See original GitHub issue

az backup vault show duplicated eTag key.

Command Name az backup vault show

Errors:

ConvertFrom-Json : Cannot convert the JSON string because a dictionary that was converted from the string contains the
duplicated keys 'eTag' and 'etag'.
At line:1 char:110
+ ... me}" --name "${recoveryServicesVaultName}" -o json | ConvertFrom-Json
+                                                          ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [ConvertFrom-Json], InvalidOperationException
    + FullyQualifiedErrorId : DuplicateKeysInJsonString,Microsoft.PowerShell.Commands.ConvertFromJsonCommand

az backup vault show --resource-group "${resourceGroupName}" --name "${recoveryServicesVaultName}" -o json
Command group 'backup' is in preview. It may be changed/removed in a future release.
{
  "eTag": null,
  "etag": "W/\"datetime'2020-06-03T11%3A50%3A42.8239336Z'\"",
<redacted>
"type": "Microsoft.RecoveryServices/vaults"
}

Value in ARM API:
{
  "location": "westeurope",
  "etag": "W/\"datetime'2020-06-03T11%3A50%3A42.8239336Z'\"",
<redacted>
}

To Reproduce:

az backup vault show --resource-group "${resourceGroupName}" --name "${recoveryServicesVaultName}" -o json | ConvertFrom-Json

Expected Behavior

single eTag value returned by az cli

Environment Summary

Windows-10-10.0.18362-SP0
Python 3.6.6
Installer: MSI

azure-cli 2.7.0

Extensions:
azure-devops 0.18.0
interactive 0.4.4

Additional Context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
adityabalaji-msftcommented, Jul 2, 2021

New ETA for the fix is 30 July

0reactions
adityabalaji-msftcommented, Sep 28, 2021

The fix is now available in 2021-07-01 version. Closing the issue for now, feel free to reopen in case you are facing problems

Read more comments on GitHub >

github_iconTop Results From Across the Web

az backup vault - Microsoft Learn
Sets backup related properties of the Recovery Services vault. az backup vault backup-properties show. Gets backup related properties of the Recovery Services ...
Read more >
Objects 3.2 - Objects User Guide - Nutanix Support Portal
Objects addresses storage-related use cases for backup, and long-term retention and data storage for your cloud-native applications by using standard S3 APIs.
Read more >
azure-cli 2.24.2 - PyPI
az iot hub identity show : New command to update identity type of an IoT Hub. ... az backup vault create : Add...
Read more >
Oracle® Private Cloud Appliance - User Guide for Release 3.0.1
create the key pair as part of the manual or automated configuration. To do so, use the oci setup keys command as shown...
Read more >
AZ300 Flashcards | Quizlet
All cryptographic keys are stored in an Azure Key Vault. ... B. Create a new Multi-Factor Authentication provider with a backup from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found