Skip to content

Commit 18898dd

Browse files
Merge pull request #266446 from mumian/0215-current-profile
Bicep currentProfile
2 parents 8fe41a8 + 867156b commit 18898dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Module setting for Bicep config
33
description: Describes how to customize configuration values for modules in Bicep deployments.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 01/17/2024
6+
ms.date: 02/16/2024
77
---
88

99
# Add module settings in the Bicep config file
@@ -123,7 +123,7 @@ You can override the public module registry alias definition in the bicepconfig.
123123

124124
## Configure profiles and credentials
125125

126-
To [publish](bicep-cli.md#publish) modules to a private module registry or to [restore](bicep-cli.md#restore) external modules to the local cache, the account must have the correct permissions to access the registry. You can configure the profile and the credential precedence for authenticating to the registry. By default, Bicep uses the `AzureCloud` profile and the credentials from the user authenticated in Azure CLI or Azure PowerShell. You can customize `currentProfile` and `credentialPrecedence` in the config file.
126+
To [publish](bicep-cli.md#publish) modules to a private module registry or to [restore](bicep-cli.md#restore) external modules to the local cache, the account must have the correct permissions to access the registry. You can manually configure `currentProfile` and `credentialPrecedence` in the [Bicep config file](./bicep-config.md) for authenticating to the registry.
127127

128128
```json
129129
{
@@ -157,7 +157,7 @@ The available profiles are:
157157
- AzureChinaCloud
158158
- AzureUSGovernment
159159

160-
You can customize these profiles, or add new profiles for your on-premises environments.
160+
By default, Bicep uses the `AzureCloud` profile and the credentials of the user authenticated in Azure CLI or Azure PowerShell. You can customize these profiles or include new ones for your on-premises environments. If you want to publish or restore a module to a national cloud environment such as `AzureUSGovernment`, you must set `"currentProfile": "AzureUSGovernment"` even if you've selected that cloud profile in the Azure CLI. Bicep is unable to automatically determine the current cloud profile based on Azure CLI settings.
161161

162162
Bicep uses the [Azure.Identity SDK](/dotnet/api/azure.identity) to do authentication. The available credential types are:
163163

0 commit comments

Comments
 (0)