Hi, is it possible to completely deploy powershell Azure functions with pulumi? I am looking for similar experience to AWS Lambda.
m
microscopic-arm-69377
07/22/2024, 11:56 AM
Copy code
# I am using the Azure CLI to fetch the latest tag for the image.
def get_acr_image_latest_tag():
command = ["az", "acr", "repository", "show-tags", "--name", acr_name, "--repository", repo_name, "--orderby", "time_desc", "--top", "1"]
result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
if result.returncode == 0:
tags = json.loads(result.stdout)
return tags[0]
else:
raise Exception(result.stderr)
microscopic-arm-69377
07/22/2024, 11:56 AM
This is how I handled one of my needs. Not awesome.
g
great-sunset-355
07/22/2024, 12:25 PM
yes, this is what I was afraid of and something I am trying to avoid.
PS you could use pulumi command instad of subprocess.
Here I found something about
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.