Hi @SelvaRaman-8556,
Sorry for the delay in response.
Please find answer to your questions below
- Regarding service principal usage - The way you are generating and using Service Principal is correct.
- Regarding the storage account - This storage account is used for sharing the artifacts like MSP and connection profile between peer organization and orderer organization. The steps listed user "Set the below environment variables for setting up Azure Storage account" section in documentation are basically to create a new storage account for the same.
You can set below environment variable as per the your requirement like in which subscription and resource group you want to create it, with what name you want to create storage account and file share etc.
STORAGE_SUBSCRIPTION=<subscriptionId>
STORAGE_RESOURCE_GROUP=<azureFileShareResourceGroup>
STORAGE_ACCOUNT=<azureStorageAccountName>
STORAGE_LOCATION=<azureStorageAccountLocation>
STORAGE_FILE_SHARE=<azureFileShareName>
After setting these environment variables, run Azure CLI commands given in the same section to create the specified storage account, file share and SAS token. For more details on azure storage account Azure CLI commands, please refer here.
- Regarding commands for multiple organization - Let's say there is 1 orderer organization (ordererorg) and 2 peer organization (peerorg1 and peerorg2) created through template. Sample steps to create application channel 'testchannel' and add these organization in the channel is captured in 11554-samplecommandsequence.txt