Skip to content

Commit

Permalink
get VHD_URL with openshift-install coreos print-stream-json
Browse files Browse the repository at this point in the history
  • Loading branch information
MayXuQQ committed Dec 10, 2021
1 parent c88df43 commit 40d9f5d
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions docs/user/azure/install_upi.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,22 +194,9 @@ export ACCOUNT_KEY=`az storage account keys list -g $RESOURCE_GROUP --account-na
Given the size of the RHCOS VHD, it's not possible to run the deployments with this file stored locally on your machine.
We must copy and store it in a storage container instead. To do so, first create a blob storage container and then copy the VHD.

Choose the RHCOS version you'd like to use and export the URL of its VHD to an environment variable. For example, to use the latest release available for the 4.3 version, use:

```sh
export VHD_URL=`curl -s https://raw.githubusercontent.com/openshift/installer/release-4.3/data/data/rhcos.json | jq -r .azure.url`
```

If you'd just like to use the latest _development_ version available (master branch), use:

```sh
export VHD_URL=`curl -s https://raw.githubusercontent.com/openshift/installer/master/data/data/rhcos.json | jq -r .azure.url`
```

Copy the chosen VHD to a blob:

```sh
az storage container create --name vhd --account-name ${CLUSTER_NAME}sa
export VHD_URL=$(openshift-install coreos print-stream-json | jq -r '.architectures.x86_64."rhel-coreos-extensions"."azure-disk".url')
az storage blob copy start --account-name ${CLUSTER_NAME}sa --account-key $ACCOUNT_KEY --destination-blob "rhcos.vhd" --destination-container vhd --source-uri "$VHD_URL"
```

Expand Down

0 comments on commit 40d9f5d

Please sign in to comment.