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 |
168
+
|`ServiceName`| yes | The name of the Azure API Management instance located in Azure |
169
+
|`MailAddress`| yes | The email address of the user that is to be removed |
170
+
|`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). |
171
+
|`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). |
172
+
173
+
**Example**
174
+
175
+
Remove a user from an existing Azure API Management instance.
Remove a user from Azure API Management based on e-mail address.
186
+
187
+
.ParameterResourceGroupName
188
+
The resource group containing the API Management service.
189
+
190
+
.ParameterServiceName
191
+
The name of the API Management service located in Azure.
192
+
193
+
.ParameterMailAddress
194
+
The e-mail address of the user.
195
+
196
+
.ParameterSubscriptionId
197
+
[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).
198
+
199
+
.ParameterAccessToken
200
+
[Optional] The access token to be used. When not provided, it will be retrieved from the current context (Get-AzContext).
201
+
#>
202
+
functionRemove-AzApiManagementUserAccount {
203
+
param(
204
+
[string][Parameter(Mandatory=$true)] $ResourceGroupName=$(throw"Resource group name is required"),
205
+
[string][parameter(Mandatory=$true)] $ServiceName=$(throw"API management service name is required"),
206
+
[string][parameter(Mandatory=$true)] $MailAddress=$(throw"The mail-address of the user is required"),
0 commit comments