How to generate Seccurity PIN from Recovery Services vault using .Net SDK or Fluent API ?

Dnyaneshwar Surywanshi 156 Reputation points
2021-03-03T07:40:24.47+00:00

I am using MARS agent to backup VM drive, Folder, Files for that I need to pass Security PIN
Set-OBMachineSetting -EncryptionPassPhrase $PassPhrase -SecurityPin "<generatedPIN>"
Currently I am passing manually from azure portal (attached screenshot).
Now I want to generate Security PIN using .Net SDK or any Fluent API so I can pass that at deployment time as parameter.

73703-generatesecuritypin.png

Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
664 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SadiqhAhmed-MSFT 39,826 Reputation points Microsoft Employee
    2021-03-10T10:32:01.34+00:00

    @Dnyaneshwar Surywanshi - Thank you for your post and I apologize for the delayed response!

    Generating and submitting PIN is supposed to be a manual operation, like OTP and was primarily intended to be a portal only multi-user authentication experience. Since REST API is present, theoretically you could have SDKs generated out of it but it is not meant to be used programmatically.

    May I know the end-to-end scenario that you are planning to implement?

    ----------------------------------------------------------------------------------------------------------------------

    If the response helped, do "Accept Answer" and up-vote it

    0 comments No comments