Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update how to get image with Azure #276

Merged
merged 4 commits into from
Jul 23, 2024
Merged

Conversation

ocaisa
Copy link
Collaborator

@ocaisa ocaisa commented Jan 3, 2024

No description provided.

@ocaisa
Copy link
Collaborator Author

ocaisa commented Jan 3, 2024

An issue with this is that:

The Offer: 'almalinux-x86_64' cannot be purchased by subscription: 'XXX-YYY' as it is not to be sold in market: 'NL'.

(NL happens to be the home of our subscription)

@ocaisa
Copy link
Collaborator Author

ocaisa commented Jan 3, 2024

Useful commands to figure out the available images

# List all the offers from the publisher
az vm image list-offers --location eastus --publisher almalinux  --output table
# List the skus available from the publisher+offer
az vm image list-skus --location eastus --publisher almalinux --offer almalinux-x86_64 --output table
az vm image list-skus --location eastus --publisher almalinux --offer almalinux-arm --output table
az vm image list-skus --location eastus --publisher almalinux --offer almalinux-hpc --output table
# Get the specific URNs for the images
az vm image list --location eastus --publisher almalinux --offer almalinux-x86_64 --sku 9-gen2 --all --output table
az vm image list --location eastus --publisher almalinux --offer almalinux-arm --sku 9-arm-gen2 --all --output table
az vm image list --location eastus --publisher almalinux --offer almalinux-hpc --sku 8_7-hpc-gen2 --all --output table
# Accept the terms of a plan
az vm image terms accept --publisher almalinux --offer almalinux-x86_64 --plan 9-gen2
# Accept the terms for the URN of the image we want to use (only seems to be necessary with the HPC image)
az vm image terms accept --urn almalinux:almalinux-hpc:8_7-hpc-gen2:8.7.2023111401

@cmd-ntrf
Copy link
Member

I have recently raised an issue on AlmaLinux wiki repo related to their marketplace link:
AlmaLinux/wiki#312

@ocaisa
Copy link
Collaborator Author

ocaisa commented Jan 12, 2024

@cmd-ntrf For me I had to remove the plan to be able to use the image:

  # Visit https://azuremarketplace.microsoft.com/en-us/marketplace/apps/almalinux.almalinux-x86_64
  # to contract the free AlmaLinux plan and be able to use the image.
  # plan = {
  #   name      = "9-gen2"
  #   product   = "almalinux-x86_64"
  #   publisher = "almalinux"
  # }
  image        = {
    publisher = "almalinux",
    offer     = "almalinux-x86_64",
    sku       = "9-gen2",
    version   = "9.3.2023111602"
  }

@cmd-ntrf
Copy link
Member

cmd-ntrf commented Apr 9, 2024

@ocaisa can you update this PR to reflect the fact we no longer need the plan to start a cluster with AlmaLinux 9?

@ocaisa
Copy link
Collaborator Author

ocaisa commented Jul 23, 2024

@cmd-ntrf Apologies for the long delay on this, I updated it to provide info on how to get the image versions

@cmd-ntrf cmd-ntrf merged commit 759b892 into ComputeCanada:main Jul 23, 2024
4 checks passed
@cmd-ntrf
Copy link
Member

Thanks!

@cmd-ntrf cmd-ntrf self-assigned this Jul 23, 2024
@cmd-ntrf cmd-ntrf added enhancement New feature or request azure labels Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants