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

Feature/user managed identity #1

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

logachev
Copy link
Owner

Internal PR to gather feedback

* `tags` - (Optional) A mapping of tags to assign to the resource.

## Attributes Reference

Copy link

Choose a reason for hiding this comment

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

possible example?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Example is in a first section

* `location` - (Required) The location/region where the user assigned identity is
created.

* `tags` - (Optional) A mapping of tags to assign to the resource.
Copy link

Choose a reason for hiding this comment

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

include example adding tags

Copy link
Owner Author

Choose a reason for hiding this comment

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

Most of components don't have it. Since Tags is a common thing, not smth unique for this resource I don't think we need it.

User Assigned Identitites can be imported using the `resource id`, e.g.

```shell
terraform import azurerm_user_assigned_identity.testIdentity /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acceptanceTestResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testIdentity
Copy link

Choose a reason for hiding this comment

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

i think it needs to be more clear what i need to fill in here

Copy link

Choose a reason for hiding this comment

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

eg: /subscriptions/<subscription_id>/resourcegroups/<resource_group_name>

Copy link
Owner Author

Choose a reason for hiding this comment

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

What I used is common across Terraform docs, don't think we should change their format.

@@ -441,7 +441,9 @@ resource "azurerm_virtual_machine" "test" {

`identity` supports the following:

* `type` - (Required) Specifies the identity type of the virtual machine. The only allowable value is `SystemAssigned`. To enable Managed Service Identity the virtual machine extension "ManagedIdentityExtensionForWindows" or "ManagedIdentityExtensionForLinux" must also be added to the virtual machine. The Principal ID can be retrieved after the virtual machine has been created, e.g.
* `type` - (Required) Specifies the identity type of the virtual machine. Allowable values are `SystemAssigned` and `UserAssigned`. To enable Managed Service Identity the virtual machine extension "ManagedIdentityExtensionForWindows" or "ManagedIdentityExtensionForLinux" must also be added to the virtual machine. For the `SystemAssigned` identity the Principal ID can be retrieved after the virtual machine has been created.
Copy link

Choose a reason for hiding this comment

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

what's the difference betweenSystemAssigned and UserAssigned. it would be helpful to know what the difference is

Copy link
Owner Author

Choose a reason for hiding this comment

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

Added a link to MS docs.

@@ -274,7 +274,9 @@ The following arguments are supported:

`identity` supports the following:

* `type` - (Required) Specifies the identity type to be assigned to the scale set. The only allowable value is `SystemAssigned`. To enable Managed Service Identity (MSI) on all machines in the scale set, an extension with the type "ManagedIdentityExtensionForWindows" or "ManagedIdentityExtensionForLinux" must also be added. The scale set's Service Principal ID (SPN) can be retrieved after the scale set has been created.
* `type` - (Required) Specifies the identity type to be assigned to the scale set. Allowable values are `SystemAssigned` and `UserAssigned`. To enable Managed Service Identity (MSI) on all machines in the scale set, an extension with the type "ManagedIdentityExtensionForWindows" or "ManagedIdentityExtensionForLinux" must also be added. For the `SystemAssigned` identity the scale set's Service Principal ID (SPN) can be retrieved after the scale set has been created.
Copy link

Choose a reason for hiding this comment

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

same as above

Copy link
Owner Author

Choose a reason for hiding this comment

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

Added a link to MS docs.

logachev pushed a commit that referenced this pull request Jun 26, 2018
logachev pushed a commit that referenced this pull request Jun 29, 2018
Kirill Logachev and others added 3 commits June 29, 2018 13:14
```
acctests azurerm TestAccAzureRMUserAssignedIdentity_
=== RUN   TestAccAzureRMUserAssignedIdentity_importBasic
--- PASS: TestAccAzureRMUserAssignedIdentity_importBasic (80.67s)
=== RUN   TestAccAzureRMUserAssignedIdentity_basic
--- PASS: TestAccAzureRMUserAssignedIdentity_basic (78.45s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	159.156s
```
logachev pushed a commit that referenced this pull request Nov 10, 2019
logachev pushed a commit that referenced this pull request Nov 10, 2019
logachev pushed a commit that referenced this pull request Nov 10, 2019
logachev pushed a commit that referenced this pull request Jul 31, 2020
…validation

Update path validation for api management api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants