Skip to content

Commit 3c59ca7

Browse files
authored
Merge pull request #114181 from anthony-c-martin/patch-2
Remove comments that are not relevant to the Bicep deployment scripts article
2 parents 3dc2892 + abd3c89 commit 3c59ca7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,6 @@ resource runPowerShellInline 'Microsoft.Resources/deploymentScripts@2020-10-01'
134134
}
135135
```
136136

137-
> [!NOTE]
138-
> The example is for demonstration purposes. The properties `scriptContent` and `primaryScriptUri` can't coexist in a Bicep file.
139-
140-
> [!NOTE]
141-
> The _scriptContent_ shows a script with multiple lines. The Azure portal and Azure DevOps pipeline can't parse a deployment script with multiple lines. You can either chain the PowerShell commands (by using semicolons or _\\r\\n_ or _\\n_) into one line, or use the `primaryScriptUri` property with an external script file. There are many free JSON string escape/unescape tools available. For example, [https://www.freeformatter.com/json-escape.html](https://www.freeformatter.com/json-escape.html).
142-
143137
Property value details:
144138

145139
- `identity`: For deployment script API version 2020-10-01 or later, a user-assigned managed identity is optional unless you need to perform any Azure-specific actions in the script. For the API version 2019-10-01-preview, a managed identity is required as the deployment script service uses it to execute the scripts. When the identity property is specified, the script service calls `Connect-AzAccount -Identity` before invoking the user script. Currently, only user-assigned managed identity is supported. To login with a different identity, you can call [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount) in the script.

0 commit comments

Comments
 (0)