Writing data to external Azure Blob Storage
Hello, I want to write a function that will write some data into the Azure Blob Storage. From my understanding, I need to install azure package to do that as I'm using the BlobServiceClient (example of the function attached).
Questions:
1) How can I install this package within the script ? ( I can't see a way to open a terminal inside it)
2) Why do I not see my parameters on the right side of the screen? (from my understanding, it should give me an option to enter CONTAINER_NAME, BLOB_NAME, DATA)
Thanks!

3 Replies
You have to have a
main
method. WM automatically installs packages for you. See this quickstart https://www.windmill.dev/docs/getting_started/scripts_quickstart/pythonPython quickstart | Windmill
In this quick start guide, we will write our first script in Python.
@Tiago Serafim Thanks!
The first point makes sense, but when I run my function, I get the following error message which is related to installing packages:
RuntimeError:
Starting with v5.0.0, the 'azure' meta-package is deprecated and cannot
be installed anymore.
Please install the service specific packages prefixed by
azure needed
for your application.
The complete list of available packages can be found at:
https://aka.ms/azsdk/python/all
Here's a non-exhaustive list of common packages:
- azure-mgmt-compute (https://pypi.python.org/pypi/azure-mgmt-compute)
: Management of Virtual Machines, etc.
- azure-mgmt-storage (https://pypi.python.org/pypi/azure-mgmt-storage)
: Management of storage accounts.
- azure-mgmt-resource (https://pypi.python.org/pypi/azure-mgmt-resource)
: Generic package about Azure Resource Management (ARM)
- azure-keyvault-secrets
(https://pypi.python.org/pypi/azure-keyvault-secrets) : Access to
secrets in Key Vault
- azure-storage-blob (https://pypi.python.org/pypi/azure-storage-blob)
: Access to blobs in storage accounts
A more comprehensive discussion of the rationale for this decision can
be found in the following issue:
https://github.com/Azure/azure-sdk-for-python/issues/10646
hint: This usually indicates a problem with the package or the build
environment.
Any thoughts?Then I'd try pinning a specific package using
#requirements
as explained here https://www.windmill.dev/docs/advanced/dependencies_in_python#pinning-dependencies-and-requirements as it looks like you cannot install just azure
anymore. Not sure which is the proper package, you'd have to see how you're installing that in your local machine in a new environment and then try to do the same at WM.Dependencies in Python | Windmill
In Windmill standard mode, dependencies in Python are handled directly within their scripts without the need to manage separate dependency files.