web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Access to customer cloud sandbox

(0) ShareShare
ReportReport
Posted on by

Our customer has not purchased a license for us for dev and implementation purposes.

We access the prod environment of our customer via a delegated adnmin construct, using

https://businesscentral.dynamics.com/[Tenant-ID]/?RedirectedFromSignup=1

Now we would like to upload our customization from within vs code into the customers sandbox.

Unfortunately, we don't know how to access the customers cloud sandbox.

We have tried it by "throwing in "/sanbox" at various locations within and at the and of the "delegated admin url" shown above.

But we failed. 

Appending "/sandbox" to the url ended up in a login request we could not satisfy.

Should it be the case that you need to have an account to the customers azure ad to get access to the sandbox whereas the prod environment can be accessed without such an account?

How to setup launch.json to be able to "F5-publish" the customizations into the cloud sandbox?

Categories:
  • Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    The customer should not purchase license for you but the correct way is to setup delegated admin (they don't count as a named users for your customer). A delegated admin can access also the sandbox environment. When you create an AL project (AL:Go), choose Microsoft Cloud Sandbox and you will be prompted to insert your credentials. Launch.json will be set up for you and when pressing F5 you are redirected to the cloud sandbox.

  • Community Member Profile Picture
    on at

    After "AL:Go" and choosing "Microsoft Cloud Sanbox", no credential prompting happens.

    Instead of this, the system tries to "connect" me to another "Cloud Sandbox", the sandbox of our company".

    HowTo redirect this to the customers sandbox?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    Try AL:clear credentials and insert your delegated admin credentials.

  • Community Member Profile Picture
    on at

    I tried "AL:clear credential cache" and, after new authentication, still have no access to the customers sandbox (with "name": "Microsoft cloud sandbox" and "tenant": "[customer aad-domaine]").

    We get the following response:

    [2018-10-09 13:37:09.48] Using reference symbols cache path: c:\Users\mpromberger4080\Documents\AL\ALProject31\./.alpackages

    [2018-10-09 13:37:09.54] Authenticating...

    [2018-10-09 13:37:10.43] Sending request to api.businesscentral.dynamics.com/.../packages;appName=Application&versionText=13.0.0.0

    [2018-10-09 13:37:10.43] Sending request to api.businesscentral.dynamics.com/.../packages;appName=System&versionText=13.0.0.0

    [2018-10-09 13:37:11.53] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=System&versionText=13.0.0.0 failed with code Unauthorized. Reason: Authorization has been denied for this request.

    [2018-10-09 13:37:11.53] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=Application&versionText=13.0.0.0 failed with code Unauthorized. Reason: Authorization has been denied for this request.

    If we open the customers prod environment via "businesscentral.dynamics.com[customer aad-domaine]" and create a new sandbox, we get the error "Either your username mpromberger4080@cosmoconsult.com or password is incorrect, or you do not have a valid Dynamics 365 Business Central account."

    So, we are  not able to access the customers sandbox both via vs code and directly.

    Are there any settings the customer needs to make for us as delegated admins?

    Are there any special settings our IT has to make for us as delegated admins?

  • Community Member Profile Picture
    on at

    Kind of summary on the question of how to gain access to a customers cloud sandbox:

    1) We (COSMO Consult GmbH) are not configured as "Partner" within the "Partnerrelations" of the customer

    2) I am currently set up as "Delegated Admin"

    3) Since this morning, I am "Administrator-Agent", too.

    After step 3, everything seems to be fine at least from my point of view.

    That is: I gained access to the customers cloud sandbox.

    Of course, the following questions arise:

    --> Is it possible to avoid step 3 if we are listed as "Partner" in the customers "Partnerrelations"?

    --> did something else go wrong?

    --> is this the recommended way of gaining access ....

    ... thanks so far ....

  • Community Member Profile Picture
    on at

    For anyone like me that came here because the AL:Go command didn't let you choose Microsoft Cloud snadbox... You need to close down the VS Code project and create a new one and hope. Just keep trying and eventually maybe it will work.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans