You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,6 +186,41 @@ module "storage" {
186
186
}
187
187
```
188
188
189
+
## `Identity` - Configure managed identities to access Azure Storage
190
+
191
+
Managed identities for Azure resources provides Azure services with an automatically managed identity in Azure Active Directory. You can use this identity to authenticate to any service that supports Azure AD authentication, without having credentials in your code.
192
+
193
+
There are two types of managed identities:
194
+
195
+
***System-assigned**: When enabled a system-assigned managed identity an identity is created in Azure AD that is tied to the lifecycle of that service instance. when the resource is deleted, Azure automatically deletes the identity. By design, only that Azure resource can use this identity to request tokens from Azure AD.
196
+
***User-assigned**: A managed identity as a standalone Azure resource. For User-assigned managed identities, the identity is managed separately from the resources that use it.
197
+
198
+
Regardless of the type of identity chosen a managed identity is a service principal of a special type that may only be used with Azure resources. When the managed identity is deleted, the corresponding service principal is automatically removed.
# Configure managed identities to access Azure Storage (Optional)
215
+
# Possible types are `SystemAssigned`, `UserAssigned` and `SystemAssigned, UserAssigned`.
216
+
managed_identity_type = "UserAssigned"
217
+
managed_identity_ids = [for k in azurerm_user_assigned_identity.example : k.id]
218
+
219
+
# .... omitted for bravity
220
+
221
+
}
222
+
```
223
+
189
224
## Recommended naming and tagging conventions
190
225
191
226
Applying tags to your Azure resources, resource groups, and subscriptions to logically organize them into a taxonomy. Each tag consists of a name and a value pair. For example, you can apply the name `Environment` and the value `Production` to all the resources in production.
@@ -227,6 +262,8 @@ Name | Description | Type | Default
227
262
`last_access_time_enabled`|Is the last access time based tracking enabled?|string|`false`
228
263
`change_feed_enabled`|Is the blob service properties for change feed events enabled?|string|`false`
229
264
`enable_advanced_threat_protection`|Controls Advance threat protection plan for Storage account!string|`false`
265
+
`managed_identity_type`|The type of Managed Identity which should be assigned to the Azure Storage. Possible values are `SystemAssigned`, `UserAssigned` and `SystemAssigned, UserAssigned`|string|`null`
266
+
`managed_identity_ids`|A list of User Managed Identity ID's which should be assigned to the Azure Storage.|string|`null`
230
267
`network_rules`|Configure Azure storage firewalls and virtual networks|list|`null`
Copy file name to clipboardExpand all lines: variables.tf
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -117,12 +117,19 @@ variable "lifecycles" {
117
117
default=[]
118
118
}
119
119
120
-
variable"identity_ids" {
121
-
description="Specifies a list of user managed identity ids to be assigned. This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`"
120
+
variable"managed_identity_type" {
121
+
description="The type of Managed Identity which should be assigned to the Linux Virtual Machine. Possible values are `SystemAssigned`, `UserAssigned` and `SystemAssigned, UserAssigned`"
122
+
default=null
123
+
type=string
124
+
}
125
+
126
+
variable"managed_identity_ids" {
127
+
description="A list of User Managed Identity ID's which should be assigned to the Linux Virtual Machine."
122
128
default=null
123
129
type=list(string)
124
130
}
125
131
132
+
126
133
variable"tags" {
127
134
description="A map of tags to add to all resources"
0 commit comments