Skip to content

Conversation

@evelyn-ys
Copy link
Member

@evelyn-ys evelyn-ys commented Sep 24, 2020

Description

Add a new command group az storage container-rm which contains commands below:

  • az storage container-rm create
  • az storage container-rm delete
  • az storage container-rm exists
  • az storage container-rm show
  • az storage container-rm list
  • az storage container-rm update

Testing Guide

create

create a new container under the specified storage account

az storage container-rm create --storage-account $STORAGE_ACCOUNT --name $NEW_CONTAINER

create a new container under the specified storage account with specified public access and metadata

az storage container-rm create--storage-account $STORAGE_ACCOUNT --name $NEW_CONTAINER --public-access blob --metadata key1=value1

delete\exists\show

az storage container-rm delete --storage-account $STORAGE_ACCOUNT --name $CONTAINER
az storage container-rm exists --storage-account $STORAGE_ACCOUNT --name $CONTAINER
az storage container-rm show --storage-account $STORAGE_ACCOUNT --name $CONTAINER

list

az storage container-rm list --storage-account $STORAGE_ACCOUNT

update

update the metadata for the specified container(which will overwrite any existing metadata)

az storage container-rm update --storage-account $STORAGE_ACCOUNT --name $CONTAINER --metadata newkey1=newvalue1 newkey2=newvalue2

update the default encryption scope for the specified container

 az storage container-rm update --storage-account $STORAGE_ACCOUNT --name $CONTAINER --default-encryption-scope $ENCRYPTION

@yonzhan
Copy link
Collaborator

yonzhan commented Sep 24, 2020

Storage

@yonzhan yonzhan added this to the S176 milestone Sep 24, 2020
@evelyn-ys evelyn-ys requested a review from Juliehzl September 28, 2020 05:39
@evelyn-ys evelyn-ys requested a review from Juliehzl September 29, 2020 08:26
@Juliehzl Juliehzl merged commit f658ad8 into Azure:dev Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants