@@ -127,8 +127,8 @@ See [Azure shell](https://docs.microsoft.com/azure/cloud-shell/overview) for mor
127
127
Download byn.sh and fabric-admin.yaml file.
128
128
129
129
``` bash-interactive
130
- curl https://raw.githubusercontent.com/ravastra/ARM-template-for- Hyperledger-Fabric-based- on-AKS /master/byn.sh -o byn.sh; chmod 777 byn.sh
131
- curl https://raw.githubusercontent.com/ravastra/ARM-template-for- Hyperledger-Fabric-based- on-AKS /master/fabric-admin.yaml -o fabric-admin.yaml
130
+ curl https://raw.githubusercontent.com/Azure/ Hyperledger-Fabric-on-Azure-Kubernetes-Service /master/consortiumScripts /byn.sh -o byn.sh; chmod 777 byn.sh
131
+ curl https://raw.githubusercontent.com/Azure/ Hyperledger-Fabric-on-Azure-Kubernetes-Service /master/consortiumScripts /fabric-admin.yaml -o fabric-admin.yaml
132
132
```
133
133
** Set below environment variables on Azure CLI Bash shell** :
134
134
@@ -139,7 +139,8 @@ SWITCH_TO_AKS_CLUSTER() { az aks get-credentials --resource-group $1 --name $2 -
139
139
ORDERER_AKS_SUBSCRIPTION=< ordererAKSClusterSubscriptionID>
140
140
ORDERER_AKS_RESOURCE_GROUP=< ordererAKSClusterResourceGroup>
141
141
ORDERER_AKS_NAME=< ordererAKSClusterName>
142
- ORDERER_DNS_ZONE=< ordererDNSZone>
142
+ ORDERER_DNS_ZONE=
143
+ ORDERER_DNS_ZONE=$( az aks show --resource-group $ORDERER_AKS_RESOURCE_GROUP --name $ORDERER_AKS_NAME --subscription $ORDERER_AKS_SUBSCRIPTION -o json | jq .addonProfiles.httpApplicationRouting.config.HTTPApplicationRoutingZoneName | tr -d ' "' )
143
144
ORDERER_END_POINT=" orderer1.$ORDERER_DNS_ZONE :443"
144
145
CHANNEL_NAME=< channelName>
145
146
```
@@ -167,7 +168,7 @@ az group create -l $STORAGE_LOCATION -n $STORAGE_RESOURCE_GROUP
167
168
az storage account create -n $STORAGE_ACCOUNT -g $STORAGE_RESOURCE_GROUP -l $STORAGE_LOCATION --sku Standard_LRS
168
169
STORAGE_KEY=$( az storage account keys list --resource-group $STORAGE_RESOURCE_GROUP --account-name $STORAGE_ACCOUNT --query " [0].value" | tr -d ' "' )
169
170
az storage share create --account-name $STORAGE_ACCOUNT --account-key $STORAGE_KEY --name $STORAGE_FILE_SHARE
170
- SAS_TOKEN=$( az storage account generate-sas --account-key $STORAGE_KEY --account-name $STORAGE_ACCOUNT --expiry 2020-01-01 -- https-only --permissions lruw --resource-types sco --services f | tr -d ' "' )
171
+ SAS_TOKEN=$( az storage account generate-sas --account-key $STORAGE_KEY --account-name $STORAGE_ACCOUNT --expiry ` date -u -d " 1 day " ' +%Y-%m-%dT%H:%MZ ' ` -- https-only --permissions lruwd --resource-types sco --services f | tr -d ' "' )
171
172
AZURE_FILE_CONNECTION_STRING=" https://$STORAGE_ACCOUNT .file.core.windows.net/$STORAGE_FILE_SHARE ?$SAS_TOKEN "
172
173
```
173
174
** Channel Management Commands**
@@ -261,7 +262,7 @@ cd app
261
262
Execute below command to download all the required files and packages:
262
263
263
264
` ` ` bash-interactive
264
- curl https://raw.githubusercontent.com/ravastra/ARM-template-for- Hyperledger-Fabric-based- on-AKS /master/application/setup.sh | bash
265
+ curl https://raw.githubusercontent.com/Azure/ Hyperledger-Fabric-on-Azure-Kubernetes-Service /master/application/setup.sh | bash
265
266
` ` `
266
267
This command takes time to load all the packages. After successful execution of command, you can see a ` node_modules` folder in the current directory. All the required packages are loaded in the ` node_modules` folder.
267
268
0 commit comments