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
|`ResourceGroupName`| yes | The resource group containing the Azure API Management instance |
97
+
|`ServiceName`| yes | The name of the Azure API Management instance located in Azure |
98
+
|`FirstName`| yes | The first name of the user that is to be created |
99
+
|`LastName`| yes | The last name of the user that is to be created |
100
+
|`MailAddress`| yes | The email address of the user that is to be created |
101
+
|`UserId`| no | The UserId that will be used to create the user |
102
+
|`Password`| no | The password that the user will be able to login with |
103
+
|`Note`| no | A note that will be added to the user |
104
+
|`SendNotification`| no | Wether or not a notification will be sent to the email address of the user |
105
+
|`ConfirmationType`| no | The confirmation type that will be used when creating the user, this can be `invite` (default) or `signup`|
106
+
|`ApiVersion`| no | The version of the management API to be used. (default: `2021-08-01`) |
107
+
|`SubscriptionId`| no | The Id of the subscription containing the Azure API Management instance. When not provided, it will be retrieved from the current context (Get-AzContext). |
108
+
|`AccessToken`| no | The access token to be used to add the user to the Azure API Management instance. When not provided, it will be retrieved from the current context (Get-AzContext). |
109
+
110
+
**Example**
111
+
112
+
Invite a new user in an existing API in Azure API Management.
Signup or invite a new user in an existing API in Azure API Management.
115
+
116
+
.ParameterResourceGroupName
117
+
The resource group containing the API Management service.
118
+
119
+
.ParameterServiceName
120
+
The name of the API Management service located in Azure.
121
+
122
+
.ParameterFirstName
123
+
The first name of the user.
124
+
125
+
.ParameterLastName
126
+
The last name of the user.
127
+
128
+
.ParameterMailAddress
129
+
The e-mail address of the user.
130
+
131
+
.ParameterUserId
132
+
[Optional] The UserId the user should get in API Management.
133
+
134
+
.ParameterPassword
135
+
[Optional] The password for the user.
136
+
137
+
.ParameterNote
138
+
[Optional] The note that should be added to the user in API Management.
139
+
140
+
.ParameterSendNotification
141
+
[Optional] Whether or not to send a notification to the user.
142
+
143
+
.ParameterConfirmationType
144
+
[Optional] The confirmation type to use when creating the user, this can be set to 'invite' or 'signup'.
145
+
146
+
.ParameterApiVersion
147
+
[Optional] The version of the api to be used.
148
+
149
+
.ParameterSubscriptionId
150
+
[Optional] The Id of the subscription containing the Azure API Management service. When not provided, it will be retrieved from the current context (Get-AzContext).
151
+
152
+
.ParameterAccessToken
153
+
[Optional] The access token to be used. When not provided, it will be retrieved from the current context (Get-AzContext).
154
+
#>
155
+
functionCreate-AzApiManagementUser {
156
+
param(
157
+
[string][Parameter(Mandatory=$true)] $ResourceGroupName=$(throw"Resource group name is required"),
158
+
[string][parameter(Mandatory=$true)] $ServiceName=$(throw"API management service name is required"),
159
+
[string][parameter(Mandatory=$true)] $FirstName=$(throw"The first name of the user is required"),
160
+
[string][parameter(Mandatory=$true)] $LastName=$(throw"The last name of the user is required"),
161
+
[string][parameter(Mandatory=$true)] $MailAddress=$(throw"The mail-address of the user is required"),
0 commit comments