What is the relation between azure tenant and azure devops? - azure

Usually the following is the flow:
Tenant (aka Azure AD) -> subscription -> resource group -> resource (VM, Az SQL, Disk, etc)
However the Azure DevOps is service that is not a resource. So what is the relation between azure tenant and azure devops? Does the organization (and projects) in azure devops reside under the azure tenant?

So what is the relation between azure tenant and azure devops?
Relationship between Azure Tenant and Azure DevOps is similar to the relationship between an Azure Tenant and an Azure Subscription. An Azure Tenant is essentially an instance of Azure AD where you define your users. An Azure Subscription relies on an Azure Tenant for authenticating users accessing that Subscription.
Same is the deal with Azure DevOps. Azure DevOps relies on an Azure Tenant for authenticating users accessing the resources inside an instance of Azure DevOps.
You may find this link helpful in understanding the relationship between Azure AD and Azure Subscription: https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-subscriptions-associated-directory (same thing applies for Azure DevOps).

Related

Unable to connect Azure DevOps and Azure ML

I have created an automated Service Principal from the service requests on Azure Devops with sufficient permissions. Now, when I am trying to create an artifact which is an ML model (registered) it is not auto populating the registered models and resulting in an error.
I am using a free trial Azure account and attempting to implement CI CD for ML. I turned my firewall off and attempted as well but still the issue persists.
It appears that the Service Principal is not assigned the role in the appropriate subscription.
You need to grant the service principal Azure subscription access permission:
Login Azure portal->All service->Subscriptions->click your subscription->Access control(IAM)->Add role assignment->assign the correct role to your service principal
Refer to Use the portal to create an Azure AD application and service principal that can access resources and Assign Azure roles using the Azure portal for details.

Could not determine if Azure DevOps belongs to a Azure subscription

I am an owner of an Azure DevOps Organization - e.g. "lab.visualstudio.com". We are planning to decommission our Azure subscription. I try to find out if the decommission will affect my Azure DevOps Org.
I can see "lab.visualstudio.com" is connecting to my Azure subscription for billing purposes. However, I could not find "lab.visualstudio.com" in my Azure portal.
Is there a way to determine if "lab.visualstudio.com" belongs to one Azure subscription? In other words, how can I know if decommissioning my Azure subscription will also decommission my Azure DevOps Organization?
Thanks in advance!
Notes: I saw someone's Azure portal has their Azure DevOps Organisation on it (screenshot attached). I am wondering why mine does not show in my Azure portal.
Is there a way to determine if "lab.visualstudio.com" belongs to one
Azure subscription?
To find the Azure Subscription associated with your Azure DevOps organization, login into Azure DevOps, go to Organization Settings and then Billing. You will see the Azure Subscription used for billing of Azure DevOps organization.
You can then go to Azure Portal and navigate to the subscription and look under resources. You should see a resource by the name lab (or the name of your Azure DevOps Organization) of type Azure DevOps organization there.
In other words, how can I know if decommissioning my Azure
subscription will also decommission my Azure DevOps Organization?
Azure DevOps uses an Azure Subscription for billing purposes. If you delete the Azure Subscription that is associated with your Azure DevOps organization, your Azure DevOps organization will be immediately moved to "Free Tier". Though I have not tried it but I believe that the resources you have created in your Azure DevOps organization will not be deleted. I'm not sure what would happen if you have provisioned resources more than allowed in free tier.
You can read more about it here: https://learn.microsoft.com/en-us/azure/devops/organizations/billing/billing-faq?view=azure-devops#what-happens-if-i-delete-my-organization-resource--.

How to configure one Azure ADDS for all inherit Azure accounts under the same subscription?

We have a Visual Studio Enterprise Subscription – MPN subscription. Therefore, we can create several Azure accounts under the same subscription in the same tenet. So, Basically we have an one root Azure account and several Azure accounts which are inherited to the root Azure account In my environment, I have configured Azure ADDS under my root Azure account. I have several VMs in another Azure account under the same subscription as I described above. My requirement is to connect those Azure VMs to the Azure ADDS in the root Azure account. Is there any way to do it? I know how to do it when Azure ADDS and Azure VMs in the same account.
As you aware Azure Active Directory Domain services integrates with your existing Azure AD tenant. This integration lets users sign in to service and applications connected to the managed domain using their existing credentials. Joining the VM hosted in another Tenant is not applicable . You have mentioned different Azure Account if it is a different Tenant then there is no possibility at this time.

Azure AD Account vs Active Directory vs Tenant

I am failing to understand the difference and use of Azure Active Directory and Tenant. Subscriptions are services running under a tenant. But I can't understand the relationship between multi-tenant subscriptions or how directories are related to tenants Please help.
A tenant is a dedicated instance of an Azure AD directory that your organization receives when it signs up for a Microsoft cloud service such as Azure or Office 365. https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-whatis
Each Azure tenant has a dedicated and trusted Azure AD directory. The Azure AD directory includes the tenant's users, groups, and apps and is used to perform identity and access management functions for tenant resources.

Can you use an Azure AD identity to log into the Azure Portal?

I've created some Microsoft Live accounts for managing my Azure subscriptions (I've got five).  I can log in using, for example, joe#mycompany.com and manage my web services using the public portal. I think I've got the hang of Azure Active Directory and the Domain Services that go along with it. So now I'm wondering, can I associate my domain ('mycompany.com') with an Azure Active Directory in my corporate portal, add my user 'joe' to it, and use 'joe#mycompany.com' to sign into the portal?  That is, will the Azure Portals use Azure Active Directory for logins?
The Azure Portal allows users to sign in with both Azure AD Accounts AND Microsoft accounts (aka MSAs, LiveIDs, #outlook.com).
If you associate your domain with an Azure AD tenant, you'll be able to log in to the Azure portal with your Azure AD account.
It is important to note that if you have a joe#mycompany.com Microsoft account and a joe#mycompany.com Azure AD account (which you get by adding the mycompany.com domain to an Azure AD tenant and then creating joe#mycompany.com that tenant), you effectively have tow DIFFERENT ACCOUNTS. When you type in joe#mycompany.com, you'll see a prompt like this one:
You'll have to make sure you pick the right one since your existing Azure subscriptions will be associated with your MSA and any new ones you create with your Azure AD account will, by default, not be accessible to your MSA.
Your best bet is to setup an Azure AD tenant, migrate your Azure subscriptions from your MSA to your Azure AD tenant by transfering ownership of the subscription and ensure all new subscriptions are created with Azure AD accounts (and not MSAs). At that point, you can always pick Organizational account and not have to worry about which which Azure subscription is linked to which account.
Other relevant info:
Comprehensive explanation of MSAs, Azure AD and Azure Subscriptions
Creating an Azure subscription using an Azure AD tenant

Resources