Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

/tenant/settings no longer returning details

See original GitHub issue

Bug description

It seems there’s been a breaking change to the Management API and it’s no longer possible to retrieve the portal storage account details as described in the wiki pages:

Reproduction steps

  1. Make the following request:
GET https://<api-management-instance>
Authorization: SharedAccessSignature token
  1. Inspect the response (shown below). It does not include PortalStorageConnectionString
    "settings": {
        "CustomPortalSettings.UserRegistrationTerms": null,
        "CustomPortalSettings.UserRegistrationTermsEnabled": "False",
        "CustomPortalSettings.UserRegistrationTermsConsentRequired": "False",
        "CustomPortalSettings.DelegationEnabled": "False",
        "CustomPortalSettings.DelegationUrl": "",
        "CustomPortalSettings.DelegatedSubscriptionEnabled": "False"

Additional context

Not sure if this is related to the breaking changes, but we are also unable to “Save to” or “Deploy” from the built-in git repository, Both operations fail with the message below:

9/3/2020, 11:32:57 AM Request processing failed due to internal error.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

BrunoSolfocommented, Sep 8, 2020

Hi @azaslonov, we are going for production release this week and we have old scripts to migrate the portal content. i need your help in that, is there any way that we can get storage connection string? because we want to go with hotfix for this change. Anything can be helpful, it may be az command or any restful service to pull the connectionstring.

Hello @shashiguru ! We used this workaround to retrieve the connectionString :

Use this URL to get the Container SAS Url : https://[apim-name]

Also this we used librairies that required a ConnectionString and not only the Container SAS url, so we used this PowerShell script to generate the connectionString from this result :

In this case the we removed the container name (content) and change the string format

$sasUrl = $result.containerSasUrl
$splitedSasUrl = $sasUrl.Split("?")
$apimDevPortalStorageConnectionString = "BlobEndpoint="+($splitedSasUrl[0] -replace "/content", "" )+";SharedAccessSignature="+$splitedSasUrl[1]
azaslonovcommented, Sep 17, 2020

Closing the issue, looks like no more questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set-TenantSettings (Microsoft.PowerApps.Administration ...
The Get-AdminPowerAppRoleAssignment cmdlet returns permission information about one or more apps.
Read more >
Tenant Settings - Auth0
Describes the settings related to tenants available in the Auth0 Dashboard.
Read more >
Get SharePoint Online Tenant Settings using PowerShell
With PowerShell, you will be able to quickly and easily get the information that you need. Use Get-SPOTenant cmdlet to get all configuration ......
Read more >
Multi-tenant settings - Deep Security Help Center
... however it is important to note that switching from inherited to per-tenant will cause existing tenants to no longer have any licensed...
Read more >
Managing SharePoint Online tenant settings via the Graph API
First things first, this is currently only available under the /beta endpoint, and as such the experience is a subject to change –...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found