Reader small image

You're reading from  Learn Azure Administration - Second Edition

Product typeBook
Published inDec 2023
PublisherPackt
ISBN-139781837636112
Edition2nd Edition
Right arrow
Author (1)
Kamil Mrzygłód
Kamil Mrzygłód
author image
Kamil Mrzygłód

Kamil Mrzygłód is a technical lead and technology advisor, working with multiple companies on designing and implementing Azure-based systems and platforms. He's a former Microsoft Azure Microsoft Most Valuable Professional (MVP) and certified trainer, who shares his knowledge via various channels, including conference speeches and open source projects and contributions. Kamil lives in Poland with his two cats and one dog, dedicating some of his time to video games, cooking, and traveling.
Read more about Kamil Mrzygłód

Right arrow

Implementing the Custom Script Extension

One of the most useful extensions is the Custom Script Extension. This extension allows you to run scripts on your virtual machines to provide custom logic or install additional software. Often, this extension is used to complete the configuration of your machine when it isn’t possible to use the standard deployment options.

Important note

Use of the Custom Script Extension shouldn’t replace tools such as Ansible, Chef, or Puppet when configuring a machine. If you need to configure a large number of machines or require advanced control tools, the Custom Script Extension will become cumbersome and difficult to maintain.

Let’s see how to use this extension for basic scenarios.

Installing software with the Custom Script Extension

To get started, we’ll need to create an Azure Virtual Machine that we will then configure later using the extension. Use the following commands to deploy an empty Linux machine...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learn Azure Administration - Second Edition
Published in: Dec 2023Publisher: PacktISBN-13: 9781837636112

Author (1)

author image
Kamil Mrzygłód

Kamil Mrzygłód is a technical lead and technology advisor, working with multiple companies on designing and implementing Azure-based systems and platforms. He's a former Microsoft Azure Microsoft Most Valuable Professional (MVP) and certified trainer, who shares his knowledge via various channels, including conference speeches and open source projects and contributions. Kamil lives in Poland with his two cats and one dog, dedicating some of his time to video games, cooking, and traveling.
Read more about Kamil Mrzygłód