ariste.info
  • MSDyn365 & Azure DevOps ALM
  • Get my book!
  • ISV License Generator
  • About me
    • About me
    • Subscribe
    • Contact
  • Logo
  • LinkedIn

Unified experience ALM

  • Welcome to the new ALM guide
    • Introduction
    • Prerequisites
  • Create and prepare Azure DevOps organization and project
    • Create an Azure DevOps organization
    • Create an Azure DevOps project
    • Enable TFVC projects in Azure DevOps
    • Add CI/CD agents with an Azure subscription
  • Unified development environment
    • What are unified developer environments?
    • Transition to a capacity-based model
    • Deploying a unified developer environment using PowerShell
    • Deploy an UDE environment from PPAC
    • Upgrade version in a Unified Development Environment
    • Useful links
  • Using Visual Studio
    • Connect Visual Studio to your UDE
    • Deploy code to a Unified Development Environment
  • Pipelines
    • What’s new in the pipelines?

Legacy Guide

  • Welcome
    • Welcome!
  • Dynamics 365 for Finance & Operations & Azure DevOps
    • Intro
    • Package and model planning
    • Azure DevOps
    • First steps
    • The build server
    • Visual Studio
    • Some advice
    • Branching strategies
  • Azure Pipelines
    • Builds
    • Continuous integration
    • Gated check-ins
    • Set up the new Azure DevOps tasks for Packaging and Model Versioning
  • Azure hosted build for Dynamics 365 Finance & SCM
    • Intro
    • Azure agents
    • How does it work?
    • What do I need?
    • Azure DevOps artifacts
    • Prepare Azure DevOps
    • Configure pipeline
    • Update for version 10.0.18 and greater
  • Azure DevTest Labs powered builds
    • Intro
    • Azure DevTest Labs
    • Getting and preparing the VHD
    • Create a DevTest Labs account
    • Creating the VM
    • Preparing the VM
    • Create a new image
    • Azure DevOps pipelines
    • Run the build
    • Times
    • Show me the money
    • Some final remarks
  • Add and build .NET projects
    • Intro
    • Build .NET in your pipeline
    • Add a C# project to FnO
    • Build pipelinebui
    • Things I don’t like/understand/need to investigate
  • Release Pipelines
    • Intro
    • Setting up Release Pipeline in Azure DevOps for Dynamics 365 for Finance and Operations
    • AAD app creation
    • Create the release pipeline in DevOps
    • Creating the LCS connection
    • New Azure DevOps release tasks: MSAL authentication and ADAL deprecation
  • Automation
    • Update VMs using pipelines and d365fo.tools
    • Builds
    • Releases
    • But I like to add some human touch to it
    • Extra bonus
    • Update a variable in a release
  • LCS DB API
    • Call the LCS Database Movement API from your Azure DevOps Pipelines
    • Automating Prod to Dev DB copies
    • Restore a data package with Azure DevOps Pipelines
  • Secure your Azure Pipelines with Azure Key Vault
    • Azure Key Vault
    • Securing your Azure DevOps Pipelines
View Categories
  • ariste.info
  • Dynamics 365 F&O Dev ALM guide
  • Legacy Guide
  • Azure DevTest Labs powered builds
  • Create a DevTest Labs account

Create a DevTest Labs account

Para hacer esto necesitáis una cuenta de Azure. Si no tenéis una podéis conseguir una gratuita con 180 euros de crédito (200 dólares) para usar en 30 días, y muchos otros servicios gratuitos durante 12 meses.

Buscamos DevTest Labs en la barra superior y creamos un nuevo DevTest Lab. Una vez creado abrimos los detalles y deberíamos ver algo como esto:

Azure DevTest Labs
Azure DevTest Labs

Hacemos clic en el menú “Configuration and policies” en la parte inferior de la lista y bajamos hasta ver la sección “Virtual machine bases”:

DevTest Labs custom VHD image
Imagen personalizada de DevTest Labs

Y ahora viene la segunda parte más divertida del proceso: tenemos que subir los 130GB del VHD a un blob! Así que hacemos clic en el botón “Add” en la parte superior y en el nuevo diálogo que se abrirá seleccionamos “Upload a VHD using PowerShell”. Esto nos generará un script de PowerShell para subir el VHD al blob de DevTest Labs. Por ejemplo:

<#
Generated script to upload a local VHD to Azure.
WARNING: The destination will be publicly available for 24 hours, after which it will expire.
          Ensure you complete your upload by then.
Run the following command in a Azure PowerShell console after entering
the LocalFilePath to your VHD.
#>
Add-AzureRmVhd -Destination "https://YOURBLOB.blob.core.windows.net/uploads/tempImage.vhd?sv=2019-07-07&st=2020-12-27T09%3A08%3A26Z&se=2020-12-28T09%3A23%3A26Z&sr=b&sp=rcw&sig=YTeXpxpVEJdSM7KZle71w8NVw9oznNizSnYj8Q3hngI%3D" -LocalFilePath "<Enter VHD location here>"
DevTest Labs custom image upload
Subida del VHD a DevTest Labs

Como alternativa también podemos usar el Azure Storage Explorer como podemos ver en la imagen de la izquierda.

Habría que subirlo al blob uploads.

Cualquiera de los dos métodos es válido para subir el VHD y no sé si alguno de los dos es más rápido que el otro..

Una vez el VHD está subido abrimos la opción “Custom images” de nuevo y deberíamos ver el VHD en el desplegable:

DevTest Labs custom image
Imagen personalizada en DevTest Labs

Le damos un nombre y hacemos clic en OK.

Lo que tenemos ahora es una base para una máquina de desarrollo de Dynamics 365 Finance and Operations que tenemos que preparar para poder usar como máquina de build.

Subscribe! #

Receive an email when a new post is published
What are your Feelings
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can I help?

How can I help?

Getting and preparing the VHDCreating the VM

Write A Comment Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Dynamics 365 Community
  • Subscribe!
  • Microsoft MVP
  • LinkedIn
  • Privacy Policy
  • Contact
  • About me

© 2024 ariste.info. Designed by CazaPelusas.

Top

    Type above and press Enter to search. Press Esc to cancel.