All Posts in 2022.9







sync container image between different azure container registry

本文介绍在不同的Azure Container Registry同步Image。   原理: 用户push image 到source ACR; source ACR 通过 webhook向外发布通知(通知中包含用户上传的image名称,tag等); target 中构建functions接受通知(解析得到 image host,image name,image tag等); functions 中使用powershell脚本执行 Import-AzContainerRegistryImage 命令从source 导入到target ACR中; functions至少同时可以连接 source ACR和target ACR,对于source ACR,本例子使用用户名和密码连接,对于 target ACR使用service principal;   Azure Functions( …

Azure PowerShell Azure Functions