Skip to content

Commit 53db5e3

Browse files
authored
Merge pull request #110721 from tfitzmac/0408guid2
added newguid implementation
2 parents b377863 + e468380 commit 53db5e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - string
33
description: Describes the functions to use in an Azure Resource Manager template to work with strings.
44
ms.topic: conceptual
5-
ms.date: 04/06/2020
5+
ms.date: 04/08/2020
66
---
77
# String functions for ARM templates
88

@@ -1090,6 +1090,8 @@ You can only use this function within an expression for the default value of a p
10901090

10911091
The newGuid function differs from the [guid](#guid) function because it doesn't take any parameters. When you call guid with the same parameter, it returns the same identifier each time. Use guid when you need to reliably generate the same GUID for a specific environment. Use newGuid when you need a different identifier each time, such as deploying resources to a test environment.
10921092

1093+
The newGuid function uses the [Guid structure](/dotnet/api/system.guid) in the .NET Framework to generate the globally unique identifier.
1094+
10931095
If you use the [option to redeploy an earlier successful deployment](rollback-on-error.md), and the earlier deployment includes a parameter that uses newGuid, the parameter isn't reevaluated. Instead, the parameter value from the earlier deployment is automatically reused in the rollback deployment.
10941096

10951097
In a test environment, you may need to repeatedly deploy resources that only live for a short time. Rather than constructing unique names, you can use newGuid with [uniqueString](#uniquestring) to create unique names.
@@ -1919,7 +1921,7 @@ Creates an absolute URI by combining the baseUri and the relativeUri string.
19191921
* If **baseUri** has no slashes at all (aside from the "//" near
19201922
the front) the result is simply **baseUri** followed by **relativeUri**.
19211923

1922-
* If **baseUri** has some slashes, but does not end with a slash,
1924+
* If **baseUri** has some slashes, but doesn't end with a slash,
19231925
everything from the last slash onward is removed from **baseUri**
19241926
and the result is **baseUri** followed by **relativeUri**.
19251927

0 commit comments

Comments
 (0)