Closed chavansachin20 closed 4 years ago
You can use this command:
Upload-PerTenantApp -AppId $appid `
-AppSecret $appsecret `
-Credentials $cred `
-Tenant $tenant `
-APIUri $apiuri `
-AppPath $file.FullName `
-Environment $environment `
-APIVersion $apiversion `
-WaitForResult
But first, you need to create new App in the AAD of the target environment to have the appseret and appid. ApiUri is something like 'api/microsoft/automation/v1.0' and apiversion is v2.0.
Thanks, @kine for command, now we are working against creating app in AAD, will keep you posted.
Hello @kine,
I have few queries, is this new App in AAD used to authenticate the user who is going to publish the app to the cloud portal?
Also, I have found a blog which helps to create a new App in AAD which requires Role assignment under Access control (IAM), please suggest a role which will only publish the BC app to BC tenant.
Thanks :)
Hi @chavansachin20 , Here is my settings of permissions.
Hey were you able to use azure pipelines to deploy your AL extension to a sandbox business central?
I would like to use it to deploy to my sandbox and production business central instances.
Yes, it should work.
Hi @kine,
We want to publish the app file (signed app) to the cloud sandbox environment with Command prompt, can we use NaverticAL to deploy the app to the cloud sandbox environment?
also, I have gone through the link which helps to upload the app to Sandbox, but now searching for a command which can be used from command prompt / PS - blog - upload-local extensions in sandbox
I have already used VS code to publish to my sandbox, but now want to use a command prompt or PowerShell to publish my app to the Sandbox environment.
VS code : { "version": "0.2.0", "configurations": [ { "type": "al", "request": "launch", "name": "my app", "server": "https://businesscentral.dynamics.com//Sandbox",
"schemaUpdateMode" : "ForceSync"
}
]
}
Thanks in Advance!
Regards Sachin Chavan
Ref : yammer blog