Skip to content

Commit d078c99

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into rolyon-aadroles-admin-units-assign-roles-powershell-update
2 parents 6b294f6 + c34a448 commit d078c99

File tree

7 files changed

+240
-3
lines changed

7 files changed

+240
-3
lines changed

articles/applied-ai-services/form-recognizer/service-limits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ title: Form Recognizer quotas and limits
33
titleSuffix: Azure Applied AI Services
44
description: Quick reference, detailed description, and best practices on Azure Form Recognizer service Quotas and Limits
55
services: cognitive-services
6-
author: vkurpad
6+
author: laujan
77
manager: nitinme
88
ms.service: applied-ai-services
99
ms.subservice: forms-recognizer
1010
ms.topic: conceptual
11-
ms.date: 02/15/2022
11+
ms.date: 05/09/2022
1212
ms.author: lajanuar
1313
---
1414

articles/azure-resource-manager/templates/template-functions-object.md

Lines changed: 141 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - objects
33
description: Describes the functions to use in an Azure Resource Manager template (ARM template) for working with objects.
44
ms.topic: conceptual
5-
ms.date: 03/10/2022
5+
ms.date: 05/09/2022
66
---
77

88
# Object functions for ARM templates
@@ -163,6 +163,146 @@ The output from the preceding example with the default values is:
163163
| objectOutput | Object | {"one": "a", "three": "c"} |
164164
| arrayOutput | Array | ["two", "three"] |
165165

166+
## items
167+
168+
`items(object)`
169+
170+
Converts a dictionary object to an array.
171+
172+
In Bicep, use the [items](../bicep/bicep-functions-object.md#items).
173+
174+
### Parameters
175+
176+
| Parameter | Required | Type | Description |
177+
|:--- |:--- |:--- |:--- |
178+
| object |Yes |object |The dictionary object to convert to an array. |
179+
180+
### Return value
181+
182+
An array of objects for the converted dictionary. Each object in the array has a `key` property that contains the key value for the dictionary. Each object also has a `value` property that contains the properties for the object.
183+
184+
### Example
185+
186+
The following example converts a dictionary object to an array. For each object in the array, it creates a new object with modified values.
187+
188+
```json
189+
{
190+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
191+
"contentVersion": "1.0.0.0",
192+
"variables": {
193+
"copy": [
194+
{
195+
"name": "modifiedListOfEntities",
196+
"count": "[length(items(variables('entities')))]",
197+
"input": {
198+
"key": "[items(variables('entities'))[copyIndex('modifiedListOfEntities')].key]",
199+
"fullName": "[items(variables('entities'))[copyIndex('modifiedListOfEntities')].value.displayName]",
200+
"itemEnabled": "[items(variables('entities'))[copyIndex('modifiedListOfEntities')].value.enabled]"
201+
}
202+
}
203+
],
204+
"entities": {
205+
"item002": {
206+
"enabled": false,
207+
"displayName": "Example item 2",
208+
"number": 200
209+
},
210+
"item001": {
211+
"enabled": true,
212+
"displayName": "Example item 1",
213+
"number": 300
214+
}
215+
}
216+
},
217+
"resources": [],
218+
"outputs": {
219+
"modifiedResult": {
220+
"type": "array",
221+
"value": "[variables('modifiedListOfEntities')]"
222+
}
223+
}
224+
}
225+
```
226+
227+
The preceding example returns:
228+
229+
```json
230+
"modifiedResult": {
231+
"type": "Array",
232+
"value": [
233+
{
234+
"fullName": "Example item 1",
235+
"itemEnabled": true,
236+
"key": "item001"
237+
},
238+
{
239+
"fullName": "Example item 2",
240+
"itemEnabled": false,
241+
"key": "item002"
242+
}
243+
]
244+
}
245+
```
246+
247+
The following example shows the array that is returned from the items function.
248+
249+
```json
250+
{
251+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
252+
"contentVersion": "1.0.0.0",
253+
"variables": {
254+
"entities": {
255+
"item002": {
256+
"enabled": false,
257+
"displayName": "Example item 2",
258+
"number": 200
259+
},
260+
"item001": {
261+
"enabled": true,
262+
"displayName": "Example item 1",
263+
"number": 300
264+
}
265+
},
266+
"entitiesArray": "[items(variables('entities'))]"
267+
},
268+
"resources": [],
269+
"outputs": {
270+
"itemsResult": {
271+
"type": "array",
272+
"value": "[variables('entitiesArray')]"
273+
}
274+
}
275+
}
276+
```
277+
278+
The example returns:
279+
280+
```json
281+
"itemsResult": {
282+
"type": "Array",
283+
"value": [
284+
{
285+
"key": "item001",
286+
"value": {
287+
"displayName": "Example item 1",
288+
"enabled": true,
289+
"number": 300
290+
}
291+
},
292+
{
293+
"key": "item002",
294+
"value": {
295+
"displayName": "Example item 2",
296+
"enabled": false,
297+
"number": 200
298+
}
299+
}
300+
]
301+
}
302+
```
303+
304+
The items() function sorts the objects in the alphabetical order. For example, **item001** appears before **item002** in the outputs of the two preceding samples.
305+
166306
<a id="json"></a>
167307

168308
## json

articles/azure-resource-manager/templates/template-functions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ Resource Manager provides several functions for working with objects.
164164
* [createObject](template-functions-object.md#createobject)
165165
* [empty](template-functions-object.md#empty)
166166
* [intersection](template-functions-object.md#intersection)
167+
* [items](template-functions-object.md#items)
167168
* [json](template-functions-object.md#json)
168169
* [length](template-functions-object.md#length)
169170
* [null](template-functions-object.md#null)
-2.56 KB
Loading
711 Bytes
Loading

articles/virtual-machines/TOC.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,9 @@
604604
- name: Store scripts
605605
displayName: Image builder, images, building, scripts
606606
href: ./linux/image-builder-user-assigned-identity.md
607+
- name: What's new in Azure Image Builder
608+
displayName: Image builder, images, building, api, features, updates, change log
609+
href: image-builder-api-update-release-notes.md
607610
- name: Troubleshoot
608611
displayName: Image builder, images, building
609612
href: ./linux/image-builder-troubleshoot.md
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
title: What's new in Azure Image Builder
3+
description: Learn what is new with Azure Image Builder; such as the latest release notes, known issues, bug fixes, deprecated functionality, and upcoming changes.
4+
author: kof-f
5+
ms.service: virtual-machines
6+
ms.topic: conceptual
7+
ms.workload: infrastructure
8+
ms.date: 04/04/2022
9+
ms.reviewer: erd
10+
ms.subservice: image-builder
11+
ms.custom: references_regions
12+
13+
14+
---
15+
16+
# What's new in Azure Image Builder
17+
18+
**Applies to:** :heavy_check_mark: Linux VMs :heavy_check_mark: Windows VMs :heavy_check_mark: Flexible scale sets :heavy_check_mark: Uniform scale sets
19+
20+
This document contains all major API changes and feature updates for the Azure Image Builder service.
21+
22+
## API Releases
23+
24+
25+
26+
27+
### 2021-10-01
28+
29+
**Breaking Change**:
30+
31+
Our 2021-10-01 API introduces a change to the error schema that will be part of every future API release. Any Azure Image Builder automations you may have need to take account the new error output when switching to 2021-10-01 or newer API versions (new schema shown below). We recommend that once customers switch to the new API version (2021-10-01 and beyond), they don't revert to older versions as they'll have to change their automation again to expect the older error schema. We don't anticipate changing the error schema again in future releases.
32+
33+
For API versions 2020-02-14 and older, the error output will look like the following messages:
34+
35+
```
36+
{
37+
"error": {
38+
"code": "ValidationFailed",
39+
"message": "Validation failed: 'ImageTemplate.properties.source': Field 'imageId' has a bad value: '/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.Compute//images//imageName'. Please review http://aka.ms/azvmimagebuildertmplref for details on fields requirements in the Image Builder Template."
40+
}
41+
```
42+
43+
44+
For API versions 2021-10-01 and newer, the error output will look like the following messages:
45+
46+
```
47+
{
48+
"error": {
49+
"code": "ValidationFailed",
50+
"message": "Validation failed: 'ImageTemplate.properties.source': Field 'imageId' has a bad value: '/subscriptions/subscriptionID/resourceGroups/resourceGroupName/providers/Microsoft.Compute//images//imageName'. Please review http://aka.ms/azvmimagebuildertmplref for details on fields requirements in the Image Builder Template."
51+
}
52+
}
53+
```
54+
55+
**Improvements**:
56+
57+
- Added support for [Build VM MSIs](linux/image-builder-json.md#user-assigned-identity-for-the-image-builder-build-vm).
58+
- Added support for Proxy VM size customization.
59+
60+
### 2020-02-14
61+
62+
63+
64+
**Improvements:**
65+
66+
- Added support for creating images from the following sources:
67+
- Managed Image
68+
- Azure Compute Gallery
69+
- Platform Image Repository (including Platform Image Purchase Plan)
70+
- Added support for the following customizations:
71+
- Shell (Linux) - Script or Inline
72+
- PowerShell (Windows) - Script or Inline, run elevated, run as system
73+
- File (Linux and Windows)
74+
- Windows Restart (Windows)
75+
- Windows Update (Windows) (with search criteria, filters, and update limit)
76+
- Added support for the following distribution types:
77+
- VHD
78+
- Managed Image
79+
- Azure Compute Gallery
80+
- **Other Features**
81+
- Added support for customers to use their own VNet.
82+
- Added support for customers to customize the build VM (VM size, OS disk size).
83+
- Added support for user assigned MSI (for customize/distribute steps).
84+
- Added support for [Gen2 images.](image-builder-overview.md#hyper-v-generation).
85+
86+
### Preview APIs
87+
88+
The following APIs are deprecated, but still supported:
89+
- 2019-05-01-preview
90+
91+
92+
## Next steps
93+
Learn more about [Image Builder](image-builder-overview.md).

0 commit comments

Comments
 (0)