Where can I find SecureString of VM extensions?

Vincent Li 51 Reputation points
2022-08-17T03:57:45.973+00:00

Hello all, I've exported a template for my resource group. When I try to deploy a new one from that template Json file, I was asked to provide some credential infos, which are encrypted as "SecureString" in the Json file. So where can I get them? Thanks.

231776-screenshot-2022-08-17-at-115423-am.png

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,372 questions
0 comments No comments
{count} votes

Accepted answer
  1. Devaraj G 2,091 Reputation points
    2022-08-17T06:46:22.517+00:00

    Hi,

    While exporting the templates, credentails realted items will be missing and this is expected behaviour / limiatation.

    Please re-look at template referance and add those security related configs manually and deploy.

    Regards,
    Dev

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Amol Shelar 421 Reputation points
    2022-08-17T09:58:43.827+00:00

    @Vincent Li

    This is expected behavior. Some password parameters might be missing from the exported templates. You need to check template reference, and manually add these parameters before you can use the templates to deploy resources.

    Please find below link to have detailed information on exporting a Azure template.

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/export-template-portal

    --please don't forget to "[Accept the answer]" if the reply is helpful--

    _AmolShelar

    0 comments No comments