How can I add SUSE 15 SP1 software repositories for an Azure hosted VM?

Forability 96 Reputation points
2021-10-23T16:07:47.477+00:00

Dear Experts,
How can I add software repositories for SUSE 15 SP1 for a VM hosted in Azure?
Initial problem was that repositories were not accessible. I have followed recommendations from https://www.suse.com/c/suse-update-infrastructure-access-through-the-data-center/ but this did not solved the issue. After that, I have tried recommendation from (https://www.suse.com/support/kb/doc/?id=000019085 and this removed repositories.
Thanks and regards,

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,129 questions
0 comments No comments
{count} votes

Accepted answer
  1. Forability 96 Reputation points
    2021-10-24T15:51:09.543+00:00

    After running susecloud-repocheck tool (sc-repocheck.py) ( available at https://github.com/rfparedes/susecloud-repocheck), it automatically fixed the issue.

    Info from the above link:

    To autofix, report, and collect debugdata

    If you have outbound https opened on the instance, from the instance, run:
    python3 <(curl -sL https://raw.githubusercontent.com/rfparedes/susecloud-repocheck/main/ccccc)

    Or download and transfer the script to the instance:
    https://raw.githubusercontent.com/rfparedes/susecloud-repocheck/main/sc-repocheck.py
    Then run:
    python3 sc-repocheck.py

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 13,936 Reputation points MVP
    2021-10-24T10:32:44.727+00:00

    Hi @Forability

    To add a repository, run

    sudo zypper addrepo URI ALIAS  
    

    URI can either be an Internet repository, a network resource, a directory or a CD or DVD (see https://en.opensuse.org/openSUSE:Libzypp_URIs for details). The ALIAS is a shorthand and unique identifier of the repository. You can freely choose it, with the only exception that it needs to be unique. Zypper will issue a warning if you specify an alias that is already in use.

    Please refer this link for details.
    https://documentation.suse.com/sles/15-SP1/html/SLES-all/cha-sw-cl.html

    Refer Article

    If the Answer is helpful, please click Accept Answer and up-vote, so that it can help others in the community looking for help on similar topics.