Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Az.Storage support for Blob Tags #15627

Closed
ishepherd opened this issue Aug 9, 2021 · 2 comments
Closed

Az.Storage support for Blob Tags #15627

ishepherd opened this issue Aug 9, 2021 · 2 comments
Labels
customer-reported feature-request This issue requires a new behavior in the product in order be resolved. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@ishepherd
Copy link

Description of the new feature

Add Az.Storage support for blob tags.

This feature was released in May 2020 and is GA since June 2021.

Proposed implementation details (optional)

Initially I was looking for ability to add a x-ms-tags header to the Start-AzStorageBlobCopy function.

For a case like this, you could support it instantly, if there was a -CustomHeaders parameter we could use .

@ishepherd ishepherd added feature-request This issue requires a new behavior in the product in order be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Aug 9, 2021
@ghost ghost added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Aug 9, 2021
@blueww
Copy link
Member

blueww commented Aug 10, 2021

@ishepherd

Blob Tags is already supported in preview module of az.storage, the latest version is 3.7.1-preview https://www.powershellgallery.com/packages/Az.Storage/3.7.1-preview

You can install it by (with admin privileges) :

  1. Install the latest PowershellGet
    install-Module PowerShellGet –Repository PSGallery –Force
  2. Close and reopen the Powershell console
  3. Install Az.Storage preview module
    Install-Module Az.Storage -Repository PsGallery -RequiredVersion 3.7.1-preview -AllowClobber -AllowPrerelease -Force
    (Note: step 1,2 are optional if PowershellGet is already updated.)

After install the preview module, and make sure it's loaded into the Powershell console, For Start-AzStorageBlobCopy, you can use "-Tag @{"tag1" = "value1"; "tag2" = "value2" } " to specify the tags you would like set to the destination blob.

@ishepherd
Copy link
Author

Thanks @bluevw! I will try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported feature-request This issue requires a new behavior in the product in order be resolved. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

2 participants