Skip to content

Commit 2acf94d

Browse files
authored
Merge pull request #80741 from eavelar10/patch-1
Changed formatting.
2 parents 3891890 + 142da4e commit 2acf94d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/devtest-labs/automate-add-lab-user.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ Then, use the [New-AzureRmResourceGroupDeployment](/powershell/module/azurerm.re
155155
New-AzureRmResourceGroupDeployment -Name "MyLabResourceGroup-$(New-Guid)" -ResourceGroupName 'MyLabResourceGroup' -TemplateParameterFile .\azuredeploy.parameters.json -TemplateFile .\azuredeploy.json
156156
```
157157

158-
It's important to note that the group deployment name and role assignment GUID need to be unique. If you try to deploy a resource assignment with a non-unique GUID, then you'll get a `RoleAssignmentUpdateNotPermitted` error.
158+
> [!NOTE]
159+
> The group deployment name and role assignment GUID must be unique. If you try to deploy a resource assignment by using a non-unique GUID, you'll see a `RoleAssignmentUpdateNotPermitted` error.
159160
160161
If you plan to use the template several times to add several Active Directory objects to the DevTest Labs User role for your lab, consider using dynamic objects in your PowerShell command. The following example uses the [New-Guid](/powershell/module/Microsoft.PowerShell.Utility/New-Guid) cmdlet to specify the resource group deployment name and role assignment GUID dynamically.
161162

@@ -190,4 +191,4 @@ See the following articles:
190191

191192
- [Create and manage virtual machines with DevTest Labs using the Azure CLI](devtest-lab-vmcli.md)
192193
- [Create a virtual machine with DevTest Labs using Azure PowerShell](devtest-lab-vm-powershell.md)
193-
- [Use command-line tools to start and stop Azure DevTest Labs virtual machines](use-command-line-start-stop-virtual-machines.md)
194+
- [Use command-line tools to start and stop Azure DevTest Labs virtual machines](use-command-line-start-stop-virtual-machines.md)

0 commit comments

Comments
 (0)