0
votes

I have an azure web application that creates application registration on azure portal and generates client id and client secret. I want to pass the generated client id and client secret of that application into the input parameter of mainTemplate.json file of my ARM template. Is there any direct/indirect way to send the variables from web app to ARM template or to fetch these variables by ARM template from the created application or from a temporary storage where these variables can be stored?

1

1 Answers

0
votes

Since especially the client secret is a sensitive value, I'd recommend the following:

  • You Web App generates the app registration
  • It puts the client secret (and probably also the client id) into a Key Vault for safe storage
  • Your ARM template references the values from Key Vault secrets and retrieves them at deployment time