问题描述
当创建一个新的APIM服务时,会要求输入组织名称(Organization name)和管理员邮箱(Administrator email : Set the e-mail address to receive all system notifications sent from API Management)。但是当APIM管理员发生变动的时候,如何来修改这些信息呢?
问题解答
在APIM的门户中,APIM的管理员可以通过 “General e-mail settings” 功能对Organization name和 **Administrator email **进行修改, 只是这个功能的入口隐藏较深,不易寻找到。可以通过以下步骤完成:
打开Azure APIM的门户:https://portal.azure.cn/#view/HubsExtension/BrowseResource/resourceType/Microsoft.ApiManagement%2Fservice
选择正确的APIM资源,并进入到 Notification Templates页面
-
选择 "General e-mail settings" 功能,在弹出的页面中,修改** Organization name 和 Administrator Email**
附录一:通过REST API修改Admin信息
- You can also modify these values using the APIM ARM REST API:
API Management Service - Create or Update:
- To make these changes you will supply values for these fields in the REST API call:
properties.publisherEmail
properties.publisherName
properties.notificationSenderEmail
Examples in the docs: https://docs.microsoft.com/en-us/rest/api/apimanagement/2019-01-01/apimanagementservice/createorupdate#examples
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
当在复杂的环境中面临问题,格物之道需:浊而静之徐清,安以动之徐生。 云中,恰是如此!
分类: 【Azure API 管理】
标签: APIM, Organization name, )管理员邮箱(Administrator email ), “General e-mail settings”