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

Adding deploymentType tag to resources #432

Merged
merged 5 commits into from
Oct 5, 2021
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion src/bicep/mlz.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ param hubSubscriptionId string = subscription().subscriptionId
param identitySubscriptionId string = hubSubscriptionId
param operationsSubscriptionId string = hubSubscriptionId
param sharedServicesSubscriptionId string = hubSubscriptionId

param deploymentType string = 'MissionLandingZoneARM'
lisamurphy-msft marked this conversation as resolved.
Show resolved Hide resolved
@allowed([
'Standard'
'Premium'
Expand Down Expand Up @@ -543,6 +543,7 @@ param windowsVmStorageAccountType string = 'StandardSSD_LRS'

param tags object = {
'resourcePrefix': resourcePrefix
'deploymentType': deploymentType
}

param uniqueId string = uniqueString(deployment().name)
Expand Down
9 changes: 7 additions & 2 deletions src/bicep/mlz.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"maxLength": 24,
"minLength": 3
},
"deploymentType": {
"type": "string",
"defaultValue": "MissionLandingZoneARM"
},
lisamurphy-msft marked this conversation as resolved.
Show resolved Hide resolved
"hubSubscriptionId": {
"type": "string",
"defaultValue": "[subscription().subscriptionId]"
Expand Down Expand Up @@ -503,7 +507,8 @@
"tags": {
"type": "object",
"defaultValue": {
"resourcePrefix": "[parameters('resourcePrefix')]"
"resourcePrefix": "[parameters('resourcePrefix')]",
"deploymentType": "[parameters('deploymentType')]"
}
},
"uniqueId": {
Expand Down Expand Up @@ -6276,4 +6281,4 @@
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', parameters('sharedServicesSubscriptionId'), parameters('sharedServicesResourceGroupName')), 'Microsoft.Resources/deployments', format('deploy-sharedServices-spoke-{0}', parameters('nowUtc'))), '2019-10-01').outputs.networkSecurityGroupResourceId.value]"
}
}
}
}