def METHOD_NAME(self):
    # Instantiate a BlobServiceClient using a connection string
    from azure.storage.blob import BlobServiceClient
    blob_service_client = BlobServiceClient.from_connection_string(self.connection_string)
    try:
        # [START bsc_create_container]
        try:
            new_container = blob_service_client.create_container("containerfromblobservice")
            properties = new_container.get_container_properties()
        except ResourceExistsError:
            print("Container already exists.")
        # [END bsc_create_container]
        # [START bsc_list_containers]
        # List all containers
        all_containers = blob_service_client.list_containers(include_metadata=True)
        for container in all_containers:
            print(container['name'], container['metadata'])
        # Filter results with name prefix
        test_containers = blob_service_client.list_containers(name_starts_with='test-')
        for container in test_containers:
            print(container['name'], container['metadata'])
        # [END bsc_list_containers]
    finally:
        # [START bsc_delete_container]
        # Delete container if it exists
        try:
            blob_service_client.delete_container("containerfromblobservice")
        except ResourceNotFoundError:
            print("Container already deleted.")
        # [END bsc_delete_container]