Hi all, I am using `prefect deployment apply ...` ...
# ask-community
d
Hi all, I am using
prefect deployment apply ...
and
prefect deployment build ...
CLI commands to deploy and build flows. Is there a python equivalent to these commands?
... without having to use
from prefect.client import OrionClient
😄
k
We are working on the
Deployment
object for Python and will be released soon
d
Thank you. Any information on fetching block details and being able to create Azure Storage Blocks / Docker container blocks using python only [no UI]? Is this feature in the roadmap as well?
n
Hi @Deceivious, we have support for this as of today: creating azure storage block and saving it
Copy code
from prefect.filesystems import Azure

azure_storage_block = Azure(basepath="my-bucket/folder/")
azure_storage_block.save("dev")
creating docker container infrastructure block and saving it
Copy code
from prefect.infrastructure import DockerContainer

docker_container_block = DockerContainer(**my_args)
docker_container_block.save("my_container_setup")
d
Thank you.