Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Using powershell to deploy provider-hosted app and specify remote Url instead of using appinv.aspx page

$
0
0

Hello all,

Could you possibly help me with provider-hosted app development/deployment process.

We developed SharePoint provider-hosted app that works just fine in development environment. Now we need to automate it's installation in test environment via powershell.

In AppManifest.xml that we are deploying we have key instead of explicit URL:

<App xmlns="http://schemas.microsoft.com/sharepoint/2012/app/manifest" Name="ShowAllRoomsApp" ProductID="{922a18aa-5592-b59a-4da9-4791baef02e7}" Version="1.0.0.0" SharePointMinVersion="15.0.0.0">
  <Properties>
    <Title>SomeTitle</Title>
    <StartPage>~remoteAppUrl/Pages/Default.aspx?{StandardTokens}</StartPage>

If we use as https://technet.microsoft.com/en-us/library/jj655398.aspx recommends, we cannot specify Redirect Url as we can do this on/_layouts/appinv.aspx

So now it seems like the only way to deploy this kind of solution is using appinv.aspx page.Or must we apply this URL in AppManifest on developing stage in Visual Studio?

What did I miss?

P. S. Even if I use /_layouts/appinv.aspx after powershell commandlets, I get error.



Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>