def run_all_samples(self, connection_string): print('Azure Storage File Advanced samples - Starting.') try: # Create an instance of ShareServiceClient service = ShareServiceClient.from_connection_string(conn_str=connection_string) # List shares print('\n\n* List shares *\n') self.list_shares(service) # Set Cors print('\n\n* Set cors rules *\n') self.set_cors_rules(service) # Set Service Properties print('\n\n* Set service properties *\n') self.set_service_properties(service) # Share, directory and file properties and metadata print('\n\n* Metadata and properties *\n') self.metadata_and_properties(service) except Exception as e: print('Error occurred in the sample.', e) finally: print('\nAzure Storage File Advanced samples - Completed.\n')