Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion quickstart/201-function-app/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "azurerm_resource_group" "default" {
}

resource "azurerm_storage_account" "default" {
name = "${replace(random_pet.prefix.id, "-", "")}sa"
name = "${substr(replace(random_pet.prefix.id, "-", ""), 0, 22)}sa"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, why the function change?

Copy link
Collaborator

@TomArcherMsft TomArcherMsft Mar 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@grayzu:

I believe @lonegunmanb is truncating the storage name so that it complies with the restrictions placed on Azure storage names.

resource_group_name = azurerm_resource_group.default.name
location = azurerm_resource_group.default.location
account_tier = "Standard"
Expand Down