Skip to content

Commit e5fd853

Browse files
committed
change to azure CLI section and change to images
1 parent ff3e674 commit e5fd853

File tree

1 file changed

+6
-29
lines changed

1 file changed

+6
-29
lines changed

landscape/how-to/install-landscape-server-on-microsoft-azure.md

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,7 @@ This guide provides an example of how to install and set up your Landscape serve
1717

1818
### Install `Azure CLI`
1919

20-
Get packages needed for the installation process:
21-
```
22-
sudo apt update
23-
sudo apt install ca-certificates curl apt-transport-https lsb-release gnupg
24-
```
25-
26-
Download and install the Microsoft signing key:
27-
```
28-
sudo mkdir -p /etc/apt/keyrings
29-
curl -sLS https://packages.microsoft.com/keys/microsoft.asc |
30-
gpg --dearmor |
31-
sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null
32-
sudo chmod go+r /etc/apt/keyrings/microsoft.gpg
33-
```
34-
35-
Add the Azure CLI software repository:
36-
```
37-
AZ_DIST=$(lsb_release -cs)
38-
echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $AZ_DIST main" |
39-
sudo tee /etc/apt/sources.list.d/azure-cli.list
40-
```
41-
42-
Update repository information and install the `azure-cli` package:
43-
```
44-
sudo apt update
45-
sudo apt install azure-cli
46-
```
20+
To install `Azure CLI`, refer to the [Install Azure CLI on Ubuntu](https://documentation.ubuntu.com/azure/en/latest/azure-how-to/instances/install-azure-cli/) guide.
4721

4822
### Connect `Azure` with your Microsoft Azure account
4923

@@ -140,13 +114,13 @@ Once you’ve chosen your configuration template, complete the following steps.
140114
- If you’re using `cloud-init-quickstart.yaml`, run:
141115
```
142116
curl -s https://raw.githubusercontent.com/canonical/landscape-scripts/main/provisioning/cloud-init-quickstart.yaml -o cloud-init.yaml
143-
IMAGE_FAMILY=Canonical:0001-com-ubuntu-server-jammy:22_04-lts-gen2:latest
117+
IMAGE_FAMILY=Canonical:0001-com-ubuntu-pro-jammy:pro-22_04-lts-gen2:latest
144118
```
145119

146120
- If you’re using `cloud-init-quickstart-fips.yaml`, run:
147121
```
148122
curl -s https://raw.githubusercontent.com/canonical/landscape-scripts/main/provisioning/cloud-init-quickstart-fips.yaml -o cloud-init.yaml
149-
IMAGE_FAMILY=Canonical:0001-com-ubuntu-server-focal:20_04-lts-gen2:latest
123+
IMAGE_FAMILY=Canonical:0001-com-ubuntu-pro-focal-fips:pro-fips-20_04-gen2:latest
150124
```
151125

152126
2. Open the downloaded cloud-init YAML file in an editor, determine which configuration parameters need to be changed between lines 4 and 32 and change these parameters.
@@ -177,6 +151,9 @@ az vm open-port \
177151

178152
It takes a few minutes to create the VM and supporting resources.
179153

154+
> [!NOTE]
155+
When creating the VM an error may occur with the code `MarketplacePurchaseEligibilityFailed`. This error indicates that before the subscription can use this image, you need to accept the legal terms of the image. Viewing and accepting the terms can be done via the Azure CLI. Refer to Microsoft Azure documentation [az vm image terms](https://learn.microsoft.com/en-us/cli/azure/vm/image/terms).
156+
180157
Observe the process by tailing the `cloud-init-output.log` file. Replace `{landscape.domain.com}` with your FQDN or static IP address:
181158
```
182159
ssh azureuser@{landscape.domain.com} 'tail -f /var/log/cloud-init-output.log'

0 commit comments

Comments
 (0)