0

I am planning to publish the developer portal using powershell but i am unable to do that. team please help me anyone enter image description here

Zoe
  • 27,060
  • 21
  • 118
  • 148
Koti
  • 61
  • 3

1 Answers1

1

UPDATE: This functionality is a part of service API now: https://learn.microsoft.com/en-us/rest/api/apimanagement/2021-01-01-preview/portal-revision/create-or-update

Previous answer below:

I do not believe that this part is documented yet, but to publish dev portal you need to:

  1. Use Get SAS token API (https://learn.microsoft.com/en-us/rest/api/apimanagement/2019-12-01/user/getsharedaccesstoken) to get token for user with ID 1, i.e.
  2. Publish portal by sending following request:
POST https://<service-name>.developer.azure-api.net/publish
Authorization: SharedAccessSignature <token-you-obtained-on-step-1>
Vitaliy Kurokhtin
  • 7,205
  • 1
  • 19
  • 18
  • Is the below syntax correct or do I need to make any changes to it? ``` curl -v -X POST https://apim-demo-apim.developer.azure-api.net/publish -H "Authorization: SharedAccessSignature " -H "Content-Length: 0" ``` Coz I get HTTP/1.1 401 Unauthorized response. – devops-admin Aug 16 '21 at 10:23