【Azure API 管理】如何修改Azure APIM的管理员邮箱和组织名称

问题描述

当创建一个新的APIM服务时,会要求输入组织名称()和管理员邮箱()。但是当APIM管理员发生变动的时候,如何来修改这些信息呢?

 

 

问题解答

在APIM的门户中,APIM的管理员可以通过 “General e-mail settings” 功能对Organization name和 Administrator email 进行修改, 只是这个功能的入口隐藏较深,不易寻找到。可以通过以下步骤完成:

1)  打开Azure APIM的门户:https://portal.azure.cn/#view/HubsExtension/BrowseResource/resourceType/Microsoft.ApiManagement%2Fservice

2)  选择正确的APIM资源,并进入到 Notification Templates页面

3)  选择 "General e-mail settings" 功能,在弹出的页面中,修改 Organization name  Administrator Email

  

 

 

附录一:通过REST API修改Admin信息

PS: China Azure Azure Management Endpoint is https://management.chinacloudapi.cn

 

附录二:通过Powershell修改Admin信息

Lastly you can also make these same modification using PowerShell cmdlets. The following script will modify those same values as see in the screenshot above

	PS C:\> $apim = Get-AzApiManagement -ResourceGroupName "{ResourceGroupName}" -Name "{APIMServiceName}"                                                       
	PS C:\> $apim.PublisherEmail = "admin@contoso.com"                                                                                 
	PS C:\> $apim.NotificationSenderEmail = "apimgmt-noreply@mail.windowsazure.com"                                                    
	PS C:\> $apim.OrganizationName = "Contoso"                                                                                        
	PS C:\> Set-AzApiManagement -InputObject $apim -PassThru 

Set-AzApiManagement: https://docs.microsoft.com/en-us/powershell/module/az.apimanagement/set-azapimanagement?view=azps-2.7.0 

Get-AzApiManagement: https://docs.microsoft.com/en-us/powershell/module/az.apimanagement/get-azapimanagement?view=azps-2.7.0 

 
posted @ 2022-08-30 19:35  路边两盏灯  阅读(147)  评论(0编辑  收藏  举报