Quantcast
Channel: Cloud Training Program
Viewing all articles
Browse latest Browse all 1902

[AZ-400] Microsoft Azure DevOps Solutions: Artifacts

$
0
0

This blog gives a step by step walkthrough of the Azure Artifacts, an extension used by Azure cloud DevOps Engineers.

This blog talks about technologies that are part of the Azure DevOps environment. If it’s something in which you have an interest or you want to learn it then you can visit our previous blog to know more about the [AZ-400] Microsoft Azure DevOps certification.

What Are Azure Artifacts?

Azure Artifacts is an extension that makes it easy to discover, install, and publish NuGet, npm, and Maven packages in Azure DevOps. It’s deeply integrated with other hubs like Build so that package management can become a seamless part of your existing workflows.

The task is to copy application files and other artifacts that are required in order to install the app; such as PowerShell scripts, PowerShell-DSC modules, and more.

  • Step 1: We need to first create a service principal for this operation, so either we can use our local PowerShell or the cloud shell.
  • Step 2: The task supports authentication based on Azure Active Directory. Authentication using a service principal and managed identity is available. For managed identities, only a system-wide managed identity is supported.
  • Step 3: We need to then create a storage account and then a blob container to store our artifacts coming out of the build.

Azure dashboard

 

Azure Console

 

Azure storage management

 

Azure cli Config

 

Azure Cloud Drive cli

  • Step 4: The task supports authentication based on Azure Active Directory. Authentication using a service principal and managed identity is available. For managed identities, only a system-wide managed identity is supported.

storage service create

 

Azure account show

  • Step 5: We need to then create a storage account and then a blob container to store our artifacts coming out of the build.

Azure Portal storage

 

Create storage account

 

review and create storage

 

Azure create storage account

  • Step 6: Once after the storage account is created, then we need to create a container for our copying purposes.

creating containers

 

new container

  • Step 7: Then we need to come back to the Azure DevOps pipeline and then we need to create a service connection between the container we created vs the pipeline.

Webapp demo

  • Step 8: Now include the Azure File Copy task, so that we can copy the artifact from the build pipeline to the Azure blob container.

Pipeline tasks

 

Azure File copy

 

File Path

  • Step 9: Then select the path which we needed to copy to the containers.

File management

 

service connections

 

new service connections

 

manual service principal

 

New Azure connection

 

verify service connection

 

service verification complete

 

service connection config

 

queue service

  •  Step 10: Then we need to save the project and run the pipeline so that once the pipeline is completed we will get the output on the blobs.

Run Pipeline

 

run Agent job 1

 

Job 1 monitoring

Now, after the build pipeline is completed, the output we can see it in the blobs.

Further Project Opportunities 

Similarly, we can save the outputs on the below methods and we can follow the same service connections.

  • Azure Blobs
  • AWS S3 Buckets
  • Google Drive
  • Dropbox
  • Nexus
  • Jfrog

We need to follow the same methods so that based on the project needs we can determine which method we need to implement.

Related/References

Next Task For You

Begin your journey towards becoming a Microsoft [AZ-400] Certified Azure DevOps Engineer and earning a lot more in 2020 by joining our FREE Masterclass.

Click on the image below to Register for the Free Masterclass Now!Masterclass AZ-400

The post [AZ-400] Microsoft Azure DevOps Solutions: Artifacts appeared first on Cloud Training Program.


Viewing all articles
Browse latest Browse all 1902

Trending Articles