Azure-docs: Question: Any Best Practice for Image Tagging?

Created on 15 Aug 2019  Â·  8Comments  Â·  Source: MicrosoftDocs/azure-docs

Thanks!


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 container-registrsvc cxp in-progress product-question triaged

All 8 comments

@denhsu we do have some best practices around tagging.

https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-using-tags

We also provide a list of what resources in Azure are supported by tags and what are not

https://docs.microsoft.com/en-us/azure/azure-resource-manager/tag-support

If that is not what you are looking for please elaborate and I will do my best to help :)

@denshu - Just to add, if your question is around best practices for image tagging, please see this article in the ACR docset for guidance: https://docs.microsoft.com/azure/container-registry/container-registry-image-tag-version

Please let us know if this helps. Thanks!

Thanks @dlepow ! That is also a great resource to include that I missed.

@denhsu I will close this out but if you have further questions just let us know and we can always reopen and continue the discussion.

Thanks guys! Sorry, I was not very clear, I meant the best practice for Image Tagging.

Thanks for the image tagging best practice! I have one more question, do you have one ACR per environment (Dev, Test, Staging, and Prod)? or one ACR for all environments? or one ACR for lower environments and one for higher environments?

For Asp.Net core app, we know how to transform into environmental config using ASPNETCORE_ENVIRONMENT variable, so we could just do one ACR for all environments. However for Angular SPA app, we don't know a way to do environment config transform, so we might end up one container image per environment and in this case, we would need one ACR per environment.

Any feedback is welcome!

Thank you!
Dennis

@denhsu that really depends on your situation.

If you look at the different ACI SKUs you will see they have different capacities and perks

https://docs.microsoft.com/en-us/azure/container-registry/container-registry-skus

So I would suggest you build the environment to what suites you best. I would also take into consideration the number of images you would be storing and the number of operations against the ACI that will be happening. So if you can get away with using a single premium ACI account I would go with that. But if you are concerned about storage capacity and what not, then separating between dev and prod environments might be a good idea as well.

Thanks! @MicahMcKittrick-MSFT!

@dlepow any suggestion from your side?

I would also suggest to put # of ACR required recommendation in this Best Practice with ACR doc.
Thanks!

@denhsu @MicahMcKittrick-MSFT - Agree with Micah's comments about SKUs and capacity/throughput. Also consider your current development and deployment workflows and security needs. For example, do you have different teams/systems/users interacting with the different environments? That might argue for separate registries with different authentication methods or permissions.

Thanks also for the suggestion about providing guidance about number of registries. I'll add it to a backlog work item we have to expand best practices guidance. Cheers!

Thank you for your inputs @MicahMcKittrick-MSFT @dlepow

Was this page helpful?
0 / 5 - 0 ratings