Azure propose différentes méthodes permettant de connecter vos machines Windows Server au cloud. D'une interface graphique sous la forme de Windows Admin Center, utilisée pour faciliter la gestion de ces processus d'intégration, à PowerShell pour l'automatisation de scénarios plus complexes, et enfin à Azure Arc, qui étend les services Azure aux environnements sur site. Ce didacticiel vous expliquera comment intégrer vos systèmes Windows Server à l'aide de ces méthodes.

Comment connecter Windows Server à Azure






Ensuite, pour intégrer ces machines Windows Server sur site de manière transparente dans le cloud Azure, consultez les options suivantes ci-dessous :




• Azure Arc: ce service est une offre de gestion de cloud hybride très puissante qui étend les capacités de gouvernance et de gestion d'Azure à vos environnements sur site et en périphérie. Avec Azure Arc, vous pouvez ainsi centraliser la gestion, appliquer des politiques de manière cohérente et obtenir des informations détaillées dans votre infrastructure hybride.




Centre d'administration Windows: il s'agit d'une expérience de gestion basée sur un navigateur qui vous permet de gérer vos environnements Windows Server, sans frais supplémentaires. Son interface unifiée vous permet d'effectuer la surveillance, la configuration et le dépannage de vos serveurs, que ce soit sur site ou dans le cloud, avec une seule console.




Microsoft PowerShell: étant l'un des langages de script les plus polyvalents, Microsoft PowerShell vous offrira un moyen flexible et automatisé de connecter et de gérer les ressources sur Azure et Windows Server. Vous pouvez créer des scripts pour automatiser les tâches répétitives, rationaliser les flux de travail et intégrer d'autres outils et services à l'aide de PowerShell.




En examinant attentivement vos besoins et préférences spécifiques, vous serez en mesure de déterminer quelle option y répond le mieux et optimise Azure pour votre environnement Windows Server.



1] Utiliser Azure Arc




Intégrez Windows Servers à Azure Arc avec un processus élégant


Intégrez facilement vos Windows Server dans Azure Arc, à l’aide d’un utilitaire intégré. Cet assistant facile à utiliser rend l’expérience d’intégration transparente car il automatise les étapes d’intégration, effectue les vérifications nécessaires, et télécharge et installe le dernier agent Azure Connected Machines (AzCM). Grâce à cela, vous pourrez gérer avec succès vos Windows Server dans le portail Azure comme n'importe quelle autre ressource dans Azure Arc.




Here's how it would look for different versions of Windows Server:




• Azure Arc Setup is an optional component of Windows Server 2022. It may be uninstalled, if desired.


• Windows Server 2025 and later: This feature is a Feature on Demand.


Just before You Start, Set Up the Prerequisite Requirements on the Server:


1. Compatibility: Check compatibility at this link: https://learn.microsoft.com/en-us/azure/azure-arc/servers/prerequisites


2. An Azure Account: Create one free of charge at.


3. Updated Browser: For a seamless experience, make sure that your chosen browser is updated to the latest version.


Time to onboard your Windows Server to Azure Arc!




Note: Even though Azure Arc might already be enabled by default on some systems, here is the step-by-step process for both scenarios:




1. Start Azure Arc Setup:


• Open Azure Arc Setup from the System Tray or via the Start Search menu.


2. Onboarding Wizard:




• Click "Next" on the initial "Get started" page.


•    The wizard automatically checks the prerequisites.


•    If confirmed, click "Configure."


•    In the configuration window, click "Next."


3. Azure Authentication:


•    Select your correct Azure cloud and then click "Sign in to Azure."


•    When prompted, enter your Azure credentials.


4. Resource Details:


•    Within Azure, specify your desired Subscription and Resource group.


•    Click "Next" to continue.


5. Finalization:


•    Click "Finish" to complete the onboarding process.


6. Verification:


•    At Server Manager, open "Local Server."


• Look for the Azure Arc Management field. This should reflect "Enabled," meaning the onboarding successfully happened.




Congratulations! This way, you have successfully set up Azure Arc on your Windows Server. Your server is now seamlessly managed within the Azure portal.



2] Via Windows Admin Center




The Windows Admin Center simplifies registering the server. It offers the convenience of deploying the Connected Machine agent and registering your on-premises servers directly from within the tool without needing to resort to external steps. In fact, it is a one-stop deployment, hence most convenient.




Here's how it works:




1\. Open Windows Admin Center and sign in.


2\. In the Overview window, select the server you want.


3\. In Azure hybrid services, select Discover Azure services.


4. Under Leverage Azure policies and solutions to manage your servers with Azure Arc, click Set up.


5. On the Settings > Azure Arc for servers window, click Get started.


6. In the Connect server to Azure window:


o\tSelect your Azure subscription.


o\tChoose a resource group or select to create a new one.


o\tSelect an Azure region in which you'd like to store server metadata.


o\tEnable the "Use proxy server" check box if using a proxy. Insert address and port.


7. Click Set up to start setup.


The rest of the work will be performed by Windows Admin Center: it will connect your server to Azure, install and download the agent, and register it with Azure Arc-enabled servers. You can track the progress in the Notifications menu. When it is all done, open the Events section and check MsiInstaller events in the Application Event Log to be sure that the agent has been installed successfully.




Improvements:




• Better opening-emphasizes the ease of use of Windows Admin Center.


• Smarter instructions: It breaks the steps down with clear, concise labels.


• Combined redundant information: It combined "go to" with follow-up actions.


• Removed unnecessary reminder to learn about environment preparation. That link may be provided elsewhere to Microsoft Learn.


• More simplicity at conclusion: confirmation steps streamlined.




Overall, this revision will yield a more focused, user-friendly guide to deploying the Connected Machine agent via Windows Admin Center.



3] Using Microsoft PowerShell




Expanding on previous response: A Full Guide on Azure Configuration Using PowerShell




Introduction




PowerShell is a dynamic and powerful scripting language that is available in Windows. It can be used to interact with Azure in the most powerful and efficient way. You will be able to conduct your management tasks on Azure much more productively by using the automation features that PowerShell has to offer. Further explanations, with examples of how to configure Azure resources with PowerShell, including necessary tips and recommendations, will follow in this tutorial.




Prerequisites




• Microsoft PowerShell: Ensure it is up-to-date.


• Azure Management Module Install the Az.ConnectedMachine module with the following command. To understand this code, you need to notice that this is a PowerShell code. Install-Module -Name Az.ConnectedMachine Use Code carefully. • Azure Account First, you have to create or sign in to your Azure account. Connect to Azure 1. Log In The cmdlet Connect-AzAccount will connect to your Azure subscription. PowerShell Connect-AzAccount Use Code carefully. 2. Select Subscription If you have more than one subscription, then use the Set-AzContext cmdlet to select one. PowerShell Set-AzContext -SubscriptionId <your_subscription_id> Use Code carefully.


Onboarding Windows Server Machine


1. Connect-AzConnectedMachine: The following cmdlet will onboard a Windows Server machine to Azure:


PowerShell


Connect-AzConnectedMachine -ResourceGroupName <your_resource_group> -Name <your_machine_name> -Location <your_location> -Proxy <your_proxy_address>:<your_proxy_port>


Use the code above with care.




o.Resource Group: The resource group this machine should be associated with in Azure.




o.Machine Name: Unique name for this machine.


o.Location: Will select an Azure region that will deploy this machine.


o Proxy: If your machine is behind a proxy, enter its address and port.


Multiple Machines Management


1. Create Session: For each machine, create a session using New-PSSession in PowerShell.


PowerShell


$sessions = New-PSSession -ComputerName <machine_name1>, <machine_name2>, .


Run the above code with discretion.


2. Onboard Machines: In each session, run Connect-AzConnectedMachine.


PowerShell


Invoke-Command -Session $sessions -ScriptBlock {


Connect-AzConnectedMachine -ResourceGroupName <your_resource_group> -Name <your_machine_name> -Location <your_location>


}


Run the above code with discretion.


Additional Considerations


• Error Handling: Implement try-catch blocks to handle the anticipated type of errors with informative messages.


• Automate: Make use of PowerShell scripts or functions to help automate repetitive tasks and make things easier.


• Azure Resource Manager: ARM templates should be used for declarative infrastructure deployments.


• Azure CLI: Consider using the Azure CLI for a command-line interface.


• Security: Follow security best practices that can ensure the security of your Azure resources.




Sample Script


PowerShell


# Define variables


$resourceGroupName = "myResourceGroup"


$machineName = "myMachine"


$emplacement = "estus"


$proxyAddress = "http://monproxy:8080"




# Connectez-vous à Azure


Connect-AzAccount




Intégration de la machine connectée AZ Connect-AzConnectedMachine -ResourceGroupName $resourceGroupName -Name $machineName -Location $location -Proxy $proxyAddress




# Connectez-vous à la machine distante


$session = Nouveau-PSSession -ComputerName $machineName


Invoke-Command -Session $session -ScriptBlock {


# Exécuter des commandes sur la machine distante


Obtenir-AzureRmVM


}


Utilisez le code à votre discrétion.


Une fois ces conventions en place, tirer parti des fonctionnalités de PowerShell permet de simplifier vos tâches de gestion des ressources Azure, d'automatiser les processus et, à terme, de vous permettre de disposer d'un environnement de travail plus fluide.




Ceci conclut notre guide sur la façon de connecter Windows Server à Azure, nous espérons donc avoir été d'une grande aide possible.






Other Articles
Comment installer et déployer le contrôleur réseau sur Windows Server
Voici un guide étape par étape qui vous montre comment installer et déployer un pilote réseau sur Windows Server

Comment installer et configurer Windows Server Essentials Experience
Pour savoir comment installer et configurer Windows Server Essentials Experience, voici un guide complet.

Comment configurer IPAM sur Windows Server
Si vous vous demandez comment configurer IPAM sur Windows Server, voici un guide avec la meilleure réponse.

Comment installer la console SCCM sur Windows 11 ?
Si vous vous demandez comment installer la console SCCM sur Windows 11, voici un guide avec la meilleure réponse.

Comment réparer Exécuter en tant qu'utilisateur différent ne s'affiche pas dans Windows 11
Si vous ne savez pas comment corriger l'erreur « Exécuter en tant qu'autre utilisateur » qui n'apparaît pas dans Windows 11, voici un guidequi vous aidera.

Comment agrandir le HUD et la police dans Songs of Conquest
Aujourd'hui je vais vous expliquer Comment agrandir le HUD et la police dans Songs of Conquest

Existe-t-il des cartes générées aléatoirement dans Songs of Conquest
Je vais vous dire aujourd'hui qu'il y a des cartes générées aléatoirement dans Songs of Conquest ?

Comment sauvegarder votre partie dans Songs of Conquest
Aujourd'hui, je vais vous apprendre à sauvegarder votre partie dans Songs of Conquest

Comment augmenter la limite des porteurs dans Songs of Conquest
Aujourd'hui, je vais vous expliquer Comment augmenter la limite de porteur dans Songs of Conquest

Comment quitter la bataille dans Songs of Conquest
Je vais vous expliquer Comment quitter la bataille dans Songs of Conquest

Y a-t-il une carte en plein écran dans Songs of Conquest
Existe-t-il une carte plein écran dans Songs of Conquest aujourd'hui?