in azure/util.py [0:0]
def upload_to_azure_blob(args):
destination = (
f"https://{args.account_name}.blob.core.windows.net/"
"{args.container_name}{args.sas_token}"
)
if os.name == "nt":
download_azcopy_script_for_windows()
commands = [
format_command(
f"""
azcopy copy "{args.source_path}"
"{destination}"
--recursive=True"""
)
]
run_commands(commands)
else:
download_azcopy_script()
commands = [
format_command(
f"""
./azcopy copy "{args.source_path}"
"{destination}"
--recursive=True"""
)
]
run_commands(commands)
configure_yaml_storage(args.container_name)