pytoccaz / pytoccaz.azure_cli / 1.0.0 / module / az_storage_blob_upload Uploads a blob to an azure storage container | "added in version" 1.0.0 of pytoccaz.azure_cli" Authors: Olivier Bernard (@pytoccaz)pytoccaz.azure_cli.az_storage_blob_upload (1.0.0) — module
Install with ansible-galaxy collection install pytoccaz.azure_cli:==1.0.0
collections: - name: pytoccaz.azure_cli version: 1.0.0
Uploads a blob to an azure storage container with the C(az storage blob upload) command
- name: Upload NOTICE file to test container pytoccaz.azure_cli.az_storage_blob_upload: container: test account_name: account000 blob_name: NOTICE.txt output_file: NOTICE.txt register: command
file: aliases: - output - output_file description: - Path of the file to upload as the blob content required: true type: str name: aliases: - blob - blob_name description: - The blob name to upload required: true type: str chgdir: aliases: - change_directory - change_dir - wkdir - working_directory - working_dir - output_directory - output_dir description: - If given, working directory to run the command inside type: str overwrite: default: false description: - Whether the blob to be uploaded should overwrite the current data type: bool account_key: aliases: - key description: - Storage account key type: str account_name: aliases: - account description: - Storage account name type: str blob_endpoint: aliases: - endpoint description: - Storage data service endpoint. Must be used in conjunction with storage account key type: str container_name: aliases: - container description: - The container name required: true type: str connection_string: description: - Storage account connection string type: str
result: description: 'A blob dictionary ' returned: success sample: client_request_id: adc084ac-937f-11ee-b470-5bde3ad7bd9d content_md5: Dyc9lNk7qLvLcPCC0kJe5g== date: '2023-12-05T15:05:09+00:00' encryption_key_sha256: null encryption_scope: null lastModified: '2023-12-05T15:05:10+00:00' request_id: a8baa9b1-001e-0068-6b8c-27e634000000 request_server_encrypted: true version: '2022-11-02' version_id: null type: dict