great-sunset-355
07/22/2024, 10:34 AMmicroscopic-arm-69377
07/22/2024, 11:56 AM# 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 AMgreat-sunset-355
07/22/2024, 12:25 PMWEBSITE_RUN_FROM_PACKAGE
which should enable the usage of Blob storage.
But MS docs are always so complex and hard to read…
https://learn.microsoft.com/en-us/azure/azure-functions/run-functions-from-deployment-package#enable-functions-to-run-from-a-packagegreat-sunset-355
07/23/2024, 11:14 AM