Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserAssignedIdentity
deprecated
type UserAssignedIdentity struct { pulumi.CustomResourceState // Client ID associated with the user assigned identity. ClientId pulumi.StringOutput `pulumi:"clientId"` // The location/region where the user assigned identity is // created. Location pulumi.StringOutput `pulumi:"location"` // The name of the user assigned identity. Changing this forces a // new identity to be created. Name pulumi.StringOutput `pulumi:"name"` // Service Principal ID associated with the user assigned identity. PrincipalId pulumi.StringOutput `pulumi:"principalId"` // The name of the resource group in which to // create the user assigned identity. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a user assigned identity.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/authorization" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("eastus"), }) if err != nil { return err } _, err = authorization.NewUserAssignedIdentity(ctx, "exampleUserAssignedIdentity", &authorization.UserAssignedIdentityArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, }) if err != nil { return err } return nil }) }
```
Deprecated: azure.msi.UserAssignedIdentity has been deprecated in favor of azure.authorization.UserAssignedIdentity
func GetUserAssignedIdentity ¶
func GetUserAssignedIdentity(ctx *pulumi.Context, name string, id pulumi.IDInput, state *UserAssignedIdentityState, opts ...pulumi.ResourceOption) (*UserAssignedIdentity, error)
GetUserAssignedIdentity gets an existing UserAssignedIdentity resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewUserAssignedIdentity ¶
func NewUserAssignedIdentity(ctx *pulumi.Context, name string, args *UserAssignedIdentityArgs, opts ...pulumi.ResourceOption) (*UserAssignedIdentity, error)
NewUserAssignedIdentity registers a new resource with the given unique name, arguments, and options.
type UserAssignedIdentityArgs ¶
type UserAssignedIdentityArgs struct { // The location/region where the user assigned identity is // created. Location pulumi.StringPtrInput // The name of the user assigned identity. Changing this forces a // new identity to be created. Name pulumi.StringPtrInput // The name of the resource group in which to // create the user assigned identity. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a UserAssignedIdentity resource.
func (UserAssignedIdentityArgs) ElementType ¶
func (UserAssignedIdentityArgs) ElementType() reflect.Type
type UserAssignedIdentityState ¶
type UserAssignedIdentityState struct { // Client ID associated with the user assigned identity. ClientId pulumi.StringPtrInput // The location/region where the user assigned identity is // created. Location pulumi.StringPtrInput // The name of the user assigned identity. Changing this forces a // new identity to be created. Name pulumi.StringPtrInput // Service Principal ID associated with the user assigned identity. PrincipalId pulumi.StringPtrInput // The name of the resource group in which to // create the user assigned identity. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (UserAssignedIdentityState) ElementType ¶
func (UserAssignedIdentityState) ElementType() reflect.Type
Click to show internal directories.
Click to hide internal directories.