You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/image-builder-api-update-release-notes.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: kof-f
5
5
ms.service: virtual-machines
6
6
ms.topic: conceptual
7
7
ms.workload: infrastructure
8
-
ms.date: 10/05/2023
8
+
ms.date: 11/01/2023
9
9
ms.reviewer: erd
10
10
ms.subservice: image-builder
11
11
ms.custom: references_regions
@@ -21,6 +21,10 @@ This article contains all major API changes and feature updates for the Azure VM
21
21
22
22
## Updates
23
23
24
+
### November 2023
25
+
Azure Image Builder is enabling Isolated Image Builds using Azure Container Instances in a phased manner. The rollout is expected to be completed by early 2024. Your existing image templates will continue to work and there is no change in the way you create or build new image templates.
26
+
27
+
You might observe a different set of transient Azure resources appear temporarily in the staging resource group but that does not impact your actual builds or the way you interact with Azure Image Builder. For more information, please see [Isolated Image Builds](./security-isolated-image-builds-image-builder.md).
24
28
25
29
### April 2023
26
30
New portal functionality has been added for Azure Image Builder. Search “Image Templates” in Azure portal, then click “Create”. You can also [get started here](https://ms.portal.azure.com/#create/Microsoft.ImageTemplate) with building and validating custom images inside the portal.
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/image-builder-troubleshoot.md
+64-6Lines changed: 64 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: This article helps you troubleshoot common problems and errors you
4
4
author: kof-f
5
5
ms.author: kofiforson
6
6
ms.reviewer: erd
7
-
ms.date: 09/18/2023
7
+
ms.date: 11/01/2023
8
8
ms.topic: troubleshooting
9
9
ms.service: virtual-machines
10
10
ms.subservice: image-builder
@@ -21,13 +21,20 @@ Use this article to troubleshoot and resolve common issues that you might encoun
21
21
22
22
When you're creating a build, do the following:
23
23
24
-
- The VM Image Builder service communicates to the build VM by using WinRM or Secure Shell (SSH). Do *not* disable these settings as part of the build.
25
-
- VM Image Builder creates resources as part of the build. Be sure to verify that Azure Policy doesn't prevent VM Image Builder from creating or using necessary resources.
24
+
- The VM Image Builder service communicates to the build VM by using WinRM or Secure Shell (SSH). Don't* disable these settings as part of the build.
25
+
- VM Image Builder creates resources in the staging resource group as part of the builds. Be sure to verify that Azure Policy doesn't prevent VM Image Builder from creating or using necessary resources.
- Verify that Azure Policy doesn't install unintended features on the build VM, such as Azure Extensions.
29
33
- Ensure that VM Image Builder has the correct permissions to read/write images and to connect to the storage account. For more information, review the permissions documentation for the [Azure CLI](./image-builder-permissions-cli.md) or [Azure PowerShell](./image-builder-permissions-powershell.md).
30
-
- VM Image Builder will fail the build if the scripts or inline commands fail with errors (non-zero exit codes). Ensure that you've tested the custom scripts and verified that they run without error (exit code 0) or require user input. For more information, see [Create an Azure Virtual Desktop image by using VM Image Builder and PowerShell](../windows/image-builder-virtual-desktop.md#tips-for-building-windows-images).
34
+
- VM Image Builder fails the build if the scripts or inline commands fail with errors (nonzero exit codes). Ensure that you've tested the custom scripts and verified that they run without error (exit code 0) or require user input. For more information, see [Create an Azure Virtual Desktop image by using VM Image Builder and PowerShell](../windows/image-builder-virtual-desktop.md#tips-for-building-windows-images).
35
+
- Ensure your subscription has sufficient [quota](../../container-instances/container-instances-resource-and-quota-limits.md) of Azure Container Instances.
36
+
- Each image build might deploy up to one temporary Azure Container Instance resource (of four standard cores) in the staging resource group. These resources are required for [Isolated image builds](../security-isolated-image-builds-image-builder.md).
37
+
31
38
32
39
VM Image Builder failures can happen in two areas:
In most cases, the resource deployment failure error occurs because of missing permissions. This error may also be caused by a conflict with the staging resource group.
154
+
In most cases, the resource deployment failure error occurs because of missing permissions. This error might also be caused by a conflict with the staging resource group.
148
155
149
156
#### Solution
150
157
@@ -728,6 +735,57 @@ The cause might be a timing issue because of the D1_V2 VM size. If customization
728
735
729
736
To avoid the timing issue, you can increase the VM size or you can add a 60-second PowerShell sleep customization.
730
737
738
+
### Azure Container Instances quota exceeded
739
+
740
+
#### Error
741
+
"Azure Container Instances quota exceeded"
742
+
743
+
#### Cause
744
+
Your subscription doesn't have enough Azure Container Instances (ACI) quota for Azure Image Builder to successfully build an image.
745
+
746
+
#### Solution
747
+
You can do the following to make ACI quota available for Azure Image Builder:
748
+
- Lookup other usage of Azure Container Instances in your subscription and remove any unneeded instances to make quota available for Azure Image Builder.
749
+
- Azure Image Builder deploys ACI only temporarily while a build is taking place. These instances are deleted once the build completes. If too many concurrent image builds are taking place in your subscription, then you can consider delaying some of the image builds. This reduces concurrent usage of ACI in your subscription. If your image templates are set up for automatic image builds using triggers, then such failed builds will automatically be retried by Azure Image Builder.
750
+
- If the current ACI limits for your subscription are too low to support your image building scenarios, then you can request an increase in your [ACI quota](../../container-instances/container-instances-resource-and-quota-limits.md#next-steps).
751
+
752
+
> [!NOTE]
753
+
> ACI resources are required for [Isolated Image Builds](../security-isolated-image-builds-image-builder.md).
754
+
755
+
### Too many Azure Container Instances deployed within a period of time
756
+
757
+
#### Error
758
+
"Too many Azure Container Instances deployed within a period of time"
759
+
760
+
#### Cause
761
+
Your subscription doesn't have enough Azure Container Instances (ACI) quota for Azure Image Builder to successfully build images concurrently.
762
+
763
+
#### Solution
764
+
You can do the following:
765
+
- Retry your failed builds in a less concurrent manner.
766
+
- If the current ACI limits for your subscription are too low to support your image building scenarios, then you can request an increase in your [ACI quota](../../container-instances/container-instances-resource-and-quota-limits.md#next-steps).
767
+
768
+
### Isolated Image Build failure
769
+
770
+
#### Error
771
+
Azure Image Builder builds are failing due to Isolated Image Build.
772
+
773
+
#### Cause
774
+
Azure Image Builder builds can fail for reasons listed elsewhere in this document. However, there's a small chance that a build fails due to Isolated Image Builds depending on your scenario, subscription quotas, or some unforeseen service error. For more information, see [Isolated Image Builds](../security-isolated-image-builds-image-builder.md).
775
+
776
+
#### Solution
777
+
If you determine that a build is failing due to Isolated Image Builds, you can do the following:
778
+
- Ensure there's no [Azure Policy](../../governance/policy/overview.md) blocking the deployment of resources mentioned in the Prerequisites section, specifically Azure Container Instances, Azure Virtual Networks, and Azure Private Endpoints.
779
+
- Ensure your subscription has sufficient quota of Azure Container Instances to support all your concurrent image builds. For more information, see, Azure Container Instances [quota exceeded](./image-builder-troubleshoot.md#azure-container-instances-quota-exceeded).
780
+
781
+
Azure Image Builder is currently in the process of deploying Isolated Image Builds. Specific image templates are not tied to Isolated Image Builds and the same image template might or might not utilize Isolated Image Builds during different builds. You can do the following to temporarily run your build without Isolated Image Builds.
782
+
- Retry your build. Since Image Templates are not tied to the Isolated Image Builds feature, retrying a build has a high probability of rerunning without Isolated Image Builds.
783
+
784
+
If none of these solutions mitigate failing image builds, then you can contact Azure support to temporarily opt your subscription out of Isolated Image Builds. For more information, see [Create an Azure support request](../../azure-portal/supportability/how-to-create-azure-support-request.md).
785
+
786
+
> [!NOTE]
787
+
> Isolated Image Builds will eventually be enabled in all regions and templates. So, the above mitigations should be considered temporary and the underlying cause of build failures must be addressed.
788
+
731
789
### The build is canceled after the context cancelation context is canceled
732
790
733
791
#### Error
@@ -798,7 +856,7 @@ Making these observations is especially important in build failures, where these
798
856
799
857
#### Error
800
858
801
-
When images are stuck in template deletion, the customization log may show the below error:
859
+
When images are stuck in template deletion, the customization log might show the below error:
title: Isolated Image Builds for Azure VM Image Builder
3
+
description: Isolated Image Builds is achieved by transitioning core process of VM image customization/validation from shared infrastructure to dedicated Azure Container Instances resources in your subscription providing compute and network isolation.
4
+
ms.date: 11/01/2023
5
+
ms.topic: sample
6
+
author: kof-f
7
+
ms.author: erd
8
+
ms.reviewer: erd
9
+
ms.service: virtual-machines
10
+
ms.subservice: image-builder
11
+
12
+
---
13
+
14
+
# What is Isolated Image Builds for Azure Image Builder?
15
+
16
+
Isolated Image Builds is a feature of Azure Image Builder (AIB). It transitions the core process of VM image customization/validation from shared infrastructure to dedicated Azure Container Instances (ACI) resources in your subscription, providing compute and network isolation.
17
+
18
+
## Advantages of Isolated Image Builds
19
+
20
+
Isolated Image Builds enable defense-in-depth by limiting network access of your build VM to just your subscription. Isolated Image Builds also provide you with more transparency by allowing your inspection of the processing done by Image Builder to customize/validate your VM image. Further, Isolated Image Builds eases viewing of live build logs. Specifically:
21
+
22
+
1.**Compute Isolation:** Isolated Image Builds perform major portion of image building processing in Azure Container Instances resources in your subscription instead of on AIB's shared platform resources. ACI provides hypervisor isolation for each container group to ensure containers run in isolation without sharing a kernel.
23
+
2.**Network Isolation:** Isolated Image Builds remove all direct network WinRM/ssh communication between your build VM and Image Builder service.
24
+
- If you are provisioning an Image Builder template without your own Virtual Network then a Public IP Address resource will no more be provisioned in your staging resource group at image build time.
25
+
- If you are provisioning an Image Builder template with an existing Virtual Network in your subscription then a Private Link based communication channel will no more be setup between your Build VM and AIB's backend platform resources. Instead, the communication channel will be setup between the Azure Container Instance and the Build VM resources - both of which reside in the staging resource group in your subscription.
26
+
3.**Transparency:** AIB is built on HashiCorp [Packer](https://www.packer.io/). Isolated Image Builds executes Packer in the ACI in your subscription, which allows you to inspect the ACI resource and its containers. Similarly, having the entire network communication pipeline in your subscription allows you to inspect all the network resources, their settings, and their allowances.
27
+
4.**Better viewing of live logs:** AIB writes customization logs to a storage account in the staging resource group in your subscription. Isolated Image Builds provides with another way to follow the same logs directly in the Azure portal which can be done by navigating to Image Builder's container in the ACI resource.
28
+
29
+
## Backward compatibility
30
+
31
+
This is a platform level change and doesn't affect AIB's interfaces. So, your existing Image Template and Trigger resources continue to function and there's no change in the way you'll deploy new resources of these types. Similarly, customization logs continue to be available in the storage account.
32
+
33
+
You might observe a few new resources temporarily appear in the staging resource group (for example, Azure Container Instance, and Private Endpoint) while some other resource will no longer appear (for example, Public IP Address). Just as earlier, these temporary resources will exist only for the duration of the build and will be deleted by Image Builder thereafter.
34
+
35
+
Your image builds will automatically be migrated to Isolated Image Builds and you need to take no action to opt-in.
36
+
37
+
> [!NOTE]
38
+
> Image Builder is in the process of rolling this change out to all locations and customers. Some of these details might change as the process is fine-tuned based on service telemetry and feedback. Please refer to the [troubleshooting guide](./linux/image-builder-troubleshoot.md#troubleshoot-build-failures) for more information.
39
+
40
+
## Next steps
41
+
42
+
-[Azure VM Image Builder overview](./image-builder-overview.md)
43
+
-[Getting started with Azure Container Instances](../container-instances/container-instances-overview.md)
44
+
-[Securing your Azure resources](../security/fundamentals/overview.md)
45
+
-[Troubleshooting guide for Azure VM Image Builder](./linux/image-builder-troubleshoot.md#troubleshoot-build-failures)
0 commit comments