Skip to content

Commit 764c98f

Browse files
authored
Merge branch 'main' into labels
2 parents 4bd2028 + 7e49dd3 commit 764c98f

File tree

97 files changed

+1547
-510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+1547
-510
lines changed

articles/active-directory-b2c/identity-provider-adfs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ zone_pivot_groups: b2c-policy-type
3131

3232
To enable sign-in for users with an AD FS account in Azure Active Directory B2C (Azure AD B2C), create an Application Group in your AD FS. For more information, see [Build a web application using OpenID Connect with AD FS 2016 and later](../active-directory/develop/msal-migration.md)
3333

34-
To create an Application Group, follow theses steps:
34+
To create an Application Group, follow these steps:
3535

3636
1. In **Server Manager**, select **Tools**, and then select **AD FS Management**.
3737
1. In AD FS Management, right-click on **Application Groups** and select **Add Application Group**.

articles/api-management/llm-semantic-cache-lookup-policy.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ Use the `llm-semantic-cache-lookup` policy to perform cache lookup of responses
6868
- This policy can only be used once in a policy section.
6969
- Fine-tune the value of `score-threshold` based on your application to ensure that the right sensitivity is used when determining which queries to cache. Start with a low value such as 0.05 and adjust to optimize the ratio of cache hits to misses.
7070
- The embeddings model should have enough capacity and sufficient context size to accommodate the prompt volume and prompts.
71+
- Score threshold above 0.2 may lead to cache mismatch. Consider using lower value for sensitive use cases.
72+
- Control cross-user access to cache entries by specifying `vary-by`with specific user or user-group identifiers.
73+
- Consider adding [llm-content-safety](./llm-content-safety-policy.md) policy with prompt shield to protect from prompt attacks.
7174

7275

7376
## Examples

articles/azure-government/documentation-government-csp-list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following tables contain lists of all the authorized Cloud Solution Provider
1818

1919
|Partner name|
2020
|----------------------------|
21-
|[2w Technologies LLC](https://2wtech.com)|
21+
|[2w Technologies Inc](https://2wtech.com/)|
2222
|[10th Magnitude](https://www.10thmagnitude.com)|
2323
|[12:34 MicroTechnolgies Inc.](https://www.1234micro.com/)|
2424
|[1901 Group, LLC](https://1901group.com)|

articles/azure-resource-manager/bicep/bicep-config-linter.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ The following example shows the rules that are available for configuration.
7575
"no-unused-existing-resources": {
7676
"level": "warning"
7777
},
78+
"no-unused-imports": {
79+
"level": "warning"
80+
},
7881
"no-unused-params": {
7982
"level": "warning"
8083
},

articles/azure-resource-manager/bicep/bicep-core-diagnostics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.custom:
77
- devx-track-bicep
88
- devx-track-arm-template
99
- build-2025
10-
ms.date: 05/20/2025
10+
ms.date: 06/06/2025
1111
---
1212

1313
# Bicep core diagnostics

articles/azure-resource-manager/bicep/deployment-stacks.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Create and deploy Azure deployment stacks in Bicep
33
description: Understand how to create deployment stacks in Bicep.
44
ms.topic: how-to
55
ms.custom: devx-track-azurecli, devx-track-azurepowershell, devx-track-bicep
6-
ms.date: 03/25/2025
6+
ms.date: 06/09/2025
77
---
88

99
# Create and deploy Azure deployment stacks in Bicep
@@ -31,6 +31,8 @@ Deployment stacks provide the following benefits:
3131

3232
### Known limitations
3333

34+
- There is a limit of 800 deployment stacks that can be created within a single scope.
35+
- A maximum of 2,000 Deny Assignments can exist at any given scope.
3436
- The deployment stack doesn't manage implicitly created resources. Therefore, you can't use [deny-assignments](../../role-based-access-control/deny-assignments.md) or cleanup for these resources.
3537
- Deny-assignments don't support tags.
3638
- Deny-assignments aren't supported at the management group scope. However, they're supported in a management group stack if the deployment is pointed at the subscription scope.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: Linter rule - no unused imports
3+
description: Linter rule - no unused imports
4+
ms.topic: reference
5+
ms.custom: devx-track-bicep
6+
ms.date: 06/06/2025
7+
---
8+
9+
# Linter rule - no unused imports
10+
11+
This rule finds [import alias](./bicep-import.md#import-variables-types-and-functions) that aren't referenced anywhere in the Bicep file.
12+
13+
## Linter rule code
14+
15+
Use the following value in the [Bicep configuration file](bicep-config-linter.md) to customize rule settings:
16+
17+
`no-unused-imports`
18+
19+
## Solution
20+
21+
To reduce confusion in your Bicep file, delete any imports that are defined but not used. This test finds all imports that aren't used anywhere in the template.
22+
23+
The following example fails this test because `myImports` and `myObjectType` are not used in the Bicep file:
24+
25+
```bicep
26+
import * as myImports from 'exports.bicep'
27+
import {myObjectType, sayHello} from 'exports.bicep'
28+
29+
output greeting string = sayHello('Bicep user')
30+
```
31+
32+
You can fix it by removing and updating the `import` statements.
33+
34+
```bicep
35+
import {sayHello} from 'exports.bicep'
36+
37+
output greeting string = sayHello('Bicep user')
38+
```
39+
40+
Use **Quick Fix** to remove the unused imports:
41+
42+
:::image type="content" source="./media/linter-rule-no-unused-imports/linter-rule-no-unused-imports-quick-fix.png" alt-text="A screenshot of using Quick Fix for the no-unused-variables linter rule.":::
43+
44+
## Next steps
45+
46+
For more information about the linter, see [Use Bicep linter](./linter.md).

articles/azure-resource-manager/bicep/linter.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Use Bicep linter
33
description: Learn how to use Bicep linter.
44
ms.topic: how-to
55
ms.custom: devx-track-bicep
6-
ms.date: 02/12/2025
6+
ms.date: 06/06/2025
77
---
88

99
# Use Bicep linter
@@ -35,6 +35,7 @@ The default set of linter rules is minimal and taken from [arm-ttk test cases](.
3535
- [no-loc-expr-outside-params](./linter-rule-no-loc-expr-outside-params.md)
3636
- [no-unnecessary-dependson](./linter-rule-no-unnecessary-dependson.md)
3737
- [no-unused-existing-resources](./linter-rule-no-unused-existing-resources.md)
38+
- [no-unused-imports](./linter-rule-no-unused-imports.md)
3839
- [no-unused-params](./linter-rule-no-unused-parameters.md)
3940
- [no-unused-vars](./linter-rule-no-unused-variables.md)
4041
- [outputs-should-not-contain-secrets](./linter-rule-outputs-should-not-contain-secrets.md)
@@ -57,7 +58,7 @@ The default set of linter rules is minimal and taken from [arm-ttk test cases](.
5758
- [use-stable-vm-image](./linter-rule-use-stable-vm-image.md)
5859
- [what-if-short-circuiting](./linter-rule-what-if-short-circuiting.md)
5960

60-
You can customize how the linter rules are applied. To overwrite the default settings, add a **bicepconfig.json** file and apply custom settings. For more information about applying those settings, see [Add custom settings in the Bicep config file](bicep-config-linter.md).
61+
You can enable or disable all linter rules and control how they are applied using a configuration file. To override the default behavior, create a **bicepconfig.json** file with your custom settings. For more information about applying those settings, see [Add custom settings in the Bicep config file](bicep-config-linter.md).
6162

6263
## Use in Visual Studio Code
6364

Loading

articles/azure-resource-manager/bicep/toc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,9 @@ items:
509509
- name: No unused existing resources
510510
displayName: linter
511511
href: linter-rule-no-unused-existing-resources.md
512+
- name: No unused imports
513+
displayName: linter
514+
href: linter-rule-no-unused-imports.md
512515
- name: No unused parameters
513516
displayName: linter
514517
href: linter-rule-no-unused-parameters.md

0 commit comments

Comments
 (0)