|
| 1 | +# Migration from ABS to Quorum Standalone for Logic Apps using Ethereum |
| 2 | + |
| 3 | +With the deprecation of Azure Blockchain Service, users of the Ethereum connectors for Logics App will need to adjust the connection used by the Logic App to use the updated ledger RPC endpoint. Listed below are the steps to modify existing Logic Apps. |
| 4 | + |
| 5 | +## Connection Manager |
| 6 | + |
| 7 | +The Logic App connectors for Ethereum require an account that will perform the transaction with the Ethereum endpoint, so in addition to the new endpoint, an account will be required. There are a few options here. |
| 8 | + |
| 9 | +- Member Account - If the Logic App connection was setup to use the member account with ABS, the user will need to provide the password that was used when the transaction node in Azure Blockchain Service was provisioned. |
| 10 | + |
| 11 | +- Private Key - If the Logic App used the Private Key option for the account when setup, the user can simply provide the same Private Key for the update. |
| 12 | + |
| 13 | +- Account Unknown - If the Logic App was provisioned with either the Member Account or Private Key and the user does not have the password or key, a new keyfile can be generated and used. |
| 14 | + |
| 15 | +### Member Account |
| 16 | + |
| 17 | +For the member account: |
| 18 | + |
| 19 | +1. Open the Logic App Designer |
| 20 | + |
| 21 | +  |
| 22 | + |
| 23 | +2. Expand the Ethereum section |
| 24 | + |
| 25 | +  |
| 26 | + |
| 27 | +3. Click Change connection. |
| 28 | + |
| 29 | +  |
| 30 | + |
| 31 | +4. Click Add new button |
| 32 | + |
| 33 | +  |
| 34 | + |
| 35 | +5. Provide a new name for the connection, the new Ethereum endpoint, the account address, and the account password. |
| 36 | + |
| 37 | +  |
| 38 | + |
| 39 | +``` |
| 40 | +NOTE: The account address here will be the same account address that was available in Azure Blockchain Service. The migration of ABS to QBS brings these accounts over to the new infrastructure, with only the password required to unlock the account provided by the user. |
| 41 | +``` |
| 42 | + |
| 43 | +### Private Key |
| 44 | + |
| 45 | +For the private key: |
| 46 | + |
| 47 | +1. Open the Logic App Designer |
| 48 | + |
| 49 | +  |
| 50 | + |
| 51 | +2. Expand the Ethereum section |
| 52 | + |
| 53 | +  |
| 54 | + |
| 55 | +3. Click Change connection. |
| 56 | + |
| 57 | +  |
| 58 | + |
| 59 | +4. Click Add new button |
| 60 | + |
| 61 | +  |
| 62 | + |
| 63 | +5. Provide a new name for the connection, the new Ethereum endpoint, and the private key. |
| 64 | + |
| 65 | +  |
| 66 | + |
| 67 | +``` |
| 68 | +NOTE: The private key used here will be a valid private key for a key pair generated for use with Ethereum. |
| 69 | +``` |
| 70 | + |
| 71 | +### Account Unknown |
| 72 | + |
| 73 | +If the account is unknown, a new keyfile will need to be created and added to the node. |
| 74 | + |
| 75 | +1. Generate a new keyfile |
| 76 | + |
| 77 | + a. To generate a new keyfile, the geth client can be used. This can be downloaded [here](https://geth.ethereum.org/downloads/). |
| 78 | + |
| 79 | + b. After downloading the geth client, create a new keyfile by running the following: |
| 80 | + |
| 81 | + ``` |
| 82 | + ./geth account new --datadir / |
| 83 | + |
| 84 | + NOTE: This will prompt for a password used to encrypt the private key and will provide the address and location of the key file. |
| 85 | + ``` |
| 86 | + |
| 87 | +  |
| 88 | + |
| 89 | +2. Add the keyfile to the VM node that will be used for the transaction. |
| 90 | + |
| 91 | +3. Open the Logic App Designer |
| 92 | + |
| 93 | +  |
| 94 | + |
| 95 | +4. Expand the Ethereum section |
| 96 | + |
| 97 | +  |
| 98 | + |
| 99 | +5. Click Change connection. |
| 100 | + |
| 101 | +  |
| 102 | + |
| 103 | +6. Click Add new button |
| 104 | + |
| 105 | +  |
| 106 | + |
| 107 | +7. Provide a new name for the connection, the new Ethereum endpoint, the account address, and the account password. |
| 108 | + |
| 109 | +  |
0 commit comments