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

Dnyaneshwar Surywanshi 156 Reputation points

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.


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

    @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