Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add parameter containerName #18

Merged
merged 3 commits into from
Jan 2, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Build Bicep file
  • Loading branch information
github-actions[bot] committed Jan 2, 2025
commit 38db24cb8526d40acce02c8484e55e627296dd61
14 changes: 10 additions & 4 deletions azuredeploy.json
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "6435624962667709005"
"templateHash": "8688306575345230913"
}
},
"parameters": {
@@ -15,6 +15,12 @@
"description": "The name of the Storage account to create."
}
},
"containerName": {
"type": "string",
"metadata": {
"description": "The name of the blob container to create."
}
},
"ipRules": {
"type": "array",
"defaultValue": [],
@@ -34,7 +40,7 @@
{
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"apiVersion": "2023-05-01",
"name": "[format('{0}/{1}/{2}', parameters('storageAccountName'), 'default', 'tfstate')]",
"name": "[format('{0}/{1}/{2}', parameters('storageAccountName'), 'default', parameters('containerName'))]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts/blobServices', parameters('storageAccountName'), 'default')]"
]
@@ -172,9 +178,9 @@
"containerName": {
"type": "string",
"metadata": {
"description": "The name of the Storage container that was created."
"description": "The name of the blob container that was created."
},
"value": "tfstate"
"value": "[parameters('containerName')]"
}
}
}