azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

How to manage dev and production endpoints

Open MarekLani opened this issue 2 years ago • 4 comments

Hello,

I'd like to ask for guidance on how to manage dev and production inputs/outputs. During local development I use publicly available event hub namespace, nevertheless for production I need to allow only trusted Azure services to connect to Event Hub thus I need to create input/output definitions with Managed Identity. Please can you provide guidance on how I can keep test input/output definitions in the git/code base but when running deployment pipeline have only production input/outputs captured in the generated ARM template?

Thank you.


Document Details

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

MarekLani avatar Dec 09 '22 08:12 MarekLani

@MarekLani Thanks for your feedback! We will investigate and update as appropriate.

YashikaTyagii avatar Dec 09 '22 16:12 YashikaTyagii

@MarekLani

We understood that the MSI is not supported for our local run yet. But if this capability is ready, you could use the same configuration of the input/output with MSI for your local run development and online deployment. This feature is planned, and in progress.

As of now, a workaround is to keep your source code in GIT with MSI configuration, before starting the localrun, please update the input/output configuration files with your connection string temporary in local.

Sorry for the inconvenience.

@pengyuli-ms @alexlzx @ruiminwang

xujxu avatar Dec 12 '22 08:12 xujxu

Thank you for feedback and guidance, this is actually approach I took, it just requires some caution when pushing changes to git. Please any expectations on availability of msi for local dev? Thank you.

MarekLani avatar Dec 12 '22 15:12 MarekLani

Hi @xujxu ,@su-jie Could you please add comments on this.

Naveenommi-MSFT avatar Dec 13 '22 07:12 Naveenommi-MSFT

This will be available in early of next year.

btw: this is the azure doc github. We have our ASA VSCode extension github which is used to capture the customers' issues for our local debug tooling: ASA VScode extension: https://github.com/microsoft/vscode-asa/issues. I've moved this issue to there.

Let's get this item closed and follow up this issue in that github: https://github.com/microsoft/vscode-asa/issues/81

xujxu avatar Dec 17 '22 04:12 xujxu