# VMware Site Recovery Manager Appliance Management API .NET (DotNet) Samples Readme
This document includes these topics: Building the Samples Using Visual Studio 2017 Running the Samples Samples Listing This document contains summary information only. |
Note: Information in this document may not be current. For up-to-date information, check these VMware Web sites:
Beta or Pre-release Products | VMware Beta Community
Released SDK Products | VMware vSphere Web Services SDK
## Building the Samples Using Visual Studio 2017 Open a Developer Command Prompt for Visual Studio 2017 from the Windows Start Menu Navigate to the SDK\samples\drconfig\DotNet sub-directory. Execute BuildSamples.cmd ## Running the Samples Samples can be executed from within the \bin or \debug directory of each project. You can also run samples from within Visual Studio, at the .NET command prompt. To display help text for any application, simply run the application without any parameters. To run any sample from within Visual Studio: Launch Visual Studio. Open the DrConfigSamples.sln file. Change the Project Properties to specify the command line arguments: From the Project menu, select Properties to display the Property Pages dialog. In the Project_Name Property Pages dialog, select Configuration Properties—Debugging in the left-hand pane. In the right-hand pane (under Start Options), select Command Line Arguments. Click OK to save your changes. Run the sample at the command prompt. ## Sample Applications
Sample | Description, command-line syntax, and example...
Configure | Configure the Site Recovery Manager Command line syntax: configure --drconfigaddr `https://FQDN_or_IP_Address:5480/configureserver/sdk` --drconfiguser admin --pscuri pscfqdn:443 --pscuser pscuser
Get configuration | Print the current Site Recovery Manager configuration Command line syntax: get-config --drconfigaddr `https://FQDN_or_IP_Address:5480/configureserver/sdk` --drconfiguser admin
Clear | Clear the Site Recovery Manager configuration Command line syntax: clear --drconfigaddr `https://FQDN_or_IP_Address:5480/configureserver/sdk` --drconfiguser admin --pscuser pscuser
### ## VMware Resources Developer Center Knowledge Base User Groups VMware Communities VMware Developer Community Copyright © 1998–2020 VMware, Inc. All rights reserved. This product is protected by copyright and intellectual property laws in the United States and other countries as well as by international treaties. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. Last updated: 27-Jan-2020 5:00 pm | VMware Site Recovery Manager SDK