How to move a Bluemix DevOps project to another account - ibm-cloud

I have an IBM DevOps Bluemix project in one of my Bluemix accounts and I need to move it to one of my other Bluemix Accounts. How do I do that in the new Bluemix DevOps?

you could take a look at the cloud foundry cli plugins. here is one - https://github.com/mevansam/cf-copy-plugin. This allows you to copy from one space/org/target to another

Related

Connect Azure Pipelines to GitHub Enterprise

We have a hosted GitHub Enterprise (GHE) account which needs to integrate with Azure Pipelines. I have installed the Azure Pipelines app from the GitHub Marketplace for our GHE account. The installation of the Azure Pipelines app asks to select an Azure DevOps project and GHE repo to setup the integration. This results in one pipeline being connected to a GHE repo.
But my question is, how to we setup other pipelines within Azure DevOps to use repos in GHE?
Nowhere in the Azure Pipelines interface can I find an option to select a GHE repo. Only public GitHub and GitHub Enterprise (on-prem) server repos. It seems that only the Azure Pipelines app setup wizard allows you to configure a pipeline with a GHE.
I can't imagine that we would have to initiate the setup wizard of the Azure Pipelines app every time we want to connect a pipeline to a GHE repo. That wouldn't even be possible, because most coworkers won't have the permissions to do that. What am I missing?
Remark: I realize that we could create a service connection in Azure DevOps using on a Personal Access Token or username+password. But that's tied to someone's personal account. If that person would leave, the connection is broken. Unless you create a service/dummy account, which doesn't seem very elegant.
If you use GitHub Enterprise, then you can integrate with Azure AD. Then based on group membership you can assign access to repositories with the help of Github Teams.
Then based on those permissions the repos to which somebody has access will be visible during the setup of the Azure DevOps pipeline.
Some useful resources:
https://learn.microsoft.com/en-us/azure/active-directory/saas-apps/github-tutorial
https://github.blog/2019-09-24-azure-active-directory-team-synchronization-now-available-with-enterprise-cloud/
https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-teams
https://enterprise.github.com/support
I found out the cause of the issue.
First of all, when you install the Azure Pipelines app from the GitHub marketplace, you first need to make sure that you select your GitHub organisation and not your personal account.
Secondly, during the installation you are taken to Azure DevOps to setup your project. Two different authorization pages will be shown; "Azure Pipelines by Microsoft would like to [...]" and the page for OAuth authorization. As can be seen in below image, there is a small grant button that's easily overlooked. You need to press that button before you press the large green that says "Authorize AzurePipelines"
I am now able to select my GitHub Enterprise repositories when I create a new pipeline in Azure DevOps. I simply choose GitHub as the source where my repository lives.

What are the pre-requisite for creating Azure DevOps organization

I have been struggling to find a guidance or best practice documentation for new Azure Tenant who want to start the Azure DevOps Service journey.
The Azure DevOps documentation is created in a piece meal approach and there is no proper documentation about such guidance and it is maddening to scan through several Azure DevOps product/feature to figure out the content I wanted.
From the documentation, I understand that one needs to create Azure Organization and project structure etc. and then users within the AAD (Company's MAC tenant) can be added to Organization or at project level to collaborate.
But if I am a new Organization or Entity that has just acquired a Azure Commercial Cloud subscription then what are the guidelines to setup my Azure DevOps organization?
E.g. Do I have to be a Global Admin of my Azure Commercial
Subscription to first start the Azure DevOps Organization? Or can I be
a Admin for Dev/Test Subscription and then start the Azure DevOps
Organization? Can I use my Dev/test subscription to create Azure
DevOps organization? What are some limitation or restruction with regard to my Azure Subscription in terms of ability to create Azure DevOps organization? What roles are advised to initiate the Organization creation process?
Where is the guidance documentation or best practice documentation around it so we can put a proper governance structure on Azure DevOps - organization/project and users etc.
Here are some high level prerequisite for setting up Azure DevOps Service:
You must have a tenant in Azure Commercial or Public Cloud. You can still deploy and build on other cloud or on-premise. You need public cloud to host your DevOps Org and project configuration and optionally to host the git based code repo.
You need a Subscription in Azure Public cloud tenant
You will need a user with Account Admin, Service Admin or Subscription Admin level privileges to create first DevOPs Organization
After creating the DevOps Organization, Users (scrum master, Managers, developers and testers ) can be invited to these organization from DevOps Organization settings
Users who have Visual Studio (VS) Enterprise licenses will see most of the features in the Azure DevOps Service Organization. So having a Visual Studio Enterprise or professional license subscription is useful and these users are counted as free for Azure DevOps service user pool. These VS license already come with benefit attached and part of those benefit is the access to Azure DevOps service.
It will be greatly beneficial for Admin team (devOps Org management team) to try to understand how Azure DevOps Service Access levels and permission works and how they are mapped to different Visual Studio licenses and how to configure these access for different role of users. You can find useful information in this regard on AzureDocs.
You do not need to have Visual Studio license (it is optional) to use Azure DevOps Service. By default Azure DevOps service is free for small team of 5 developers with limited access to features. So small organization can immediately start using it within their Enterprise Account or Pay-as-you-go subscription. You can add users to your Azure DevOps Service organization irrespective of if they have VS licenses and you can pay for their subscription on a monthly basis.
Also, I will highly recommend training course from Microsoft Learn website on Azure DevOps Service to get excellent understanding of prerequisite and features of Azure DevOps Service. Just search for DevOps keyword and you will find number of courses with different modules that will provide step by step instructions on setting up your first Azure DevOps Service Organization to integrating with GitHub and building pipeline, static code analysis etc.

How can I delete an organisation from IBM Bluemix?

In IBM Bluemix you can create and be the member of multiple Organisations. How can I remove redundant organisations?
Deleting an existing organization is not possible at this time. This is limited to Bluemix Public. If you are a Bluemix Dedicated (or) Local user, you can delete existing organizations.
Please see : https://www.ng.bluemix.net/docs/admin/index.html#orgsandspaces
I think org delete must be manually done by bluemix support team. So open a ticket to get it done.
At this doc page
https://console.ng.bluemix.net/docs/admin/adminpublic.html#orgmng
It says:
Deleting an existing organization
Contact Bluemix registration and ID support to delete your
organization.
Note: Deleting operations cannot be reversed. You lose all your
applications and services that are associated with the organization.
You are able to delete organizations using the BX plug-in, also on Bluemix Public. Download and install the CF and BX plug-in using the link below
https://new-console.ng.bluemix.net/docs/cli/index.html#cli
Then use these commands below in the command line:
bx login
bx iam org-delete ORG_NAME [-f --all]
IBM Bluemix evolved over time from a Cloud Foundry public cloud offering over having Local and Dedicated editions to what is IBM Cloud today. There is Cloud Foundry and Cloud Foundry Enterprise Edition (CFEE). CFEE gives users access to the full administrator access and hence more options.
Thus, the answer depends on the context:
for CFEE there is a CLI command ibmcloud cfee org-delete
for the regular (old) public Cloud Foundry it is possible to delete spaces and users, but not orgs. This can be done through the CLI commands.
There is still a Bluemix Admin plugin for Bluemix Local and Bluemix Dedicated (Cloud Foundry for those environments) that allows to delete organizations. However, it does not work on IBM Cloud with Cloud Foundry.

Are their any APIs for IBM Bluemix DevOps services like Delivery Pipeline?

I want to use Bluemix DevOps Services from a portal outside of Bluemix.
Are there APIs which can be used to invoke DevOps services.
For example : How can I create a delivery pipeline without using bluemix or hub.jazz interface?
Thanks
This question is answered over on IBM's dWAnswers in this thread.
To put it plainly, no, though you can 'automagically' create pipelines with Bluemix's Deploy to Bluemix feature.

Cannot enable Slack for Bluemix DevOps services beta

I wanted to take advantage of the Slack communications beta for Bluemix DevOps services, but in my IBM restricted DevOps project I do not see any option to enable it..
What am I missing?
This is explained at Integrating Slack with Bluemix DevOps Services BETA - Integrations - IBM Bluemix DevOps Services:
Project's Overview page->Integrated Tools section->Integrate with a tool->SLACK.
You may want to instead use the next evolution of Bluemix DevOps Services, which has Slack integration, in addition to several other ones.
Please see https://developer.ibm.com/devops-services/2016/06/16/open-toolchain-with-ibm-bluemix-devops-services/