Friday, July 17, 2015

Configuring Visio Graphics Service Application in SharePoint 2013 using PowerShell

Visio diagrams are wonderful way to express ideas, simplify complex topologies, illustrate the process flow, etc. With Visio Services in SharePoint 2013, you can publish Visio diagrams in SharePoint so that they can be Shared and viewed online without installing Visio application in client computers.

Configuring Visio Services in SharePoint 2013
Provisioning Visio services is straight-forward. Head on to SharePoint 2013 Central Administration site, Application Management >> Service Applications >> Manage Service Applications >> Click on "New" and choose "Visio Graphics Services"

Visio Graphics services available only in SharePoint 2010/2013 Enterprise Edition! Make sure "SharePoint Server Enterprise Site features" is activated both at site collection level and site level.
Visio Graphics service application in SharePoint 2013
Fill the form with Service application name, choose Service application pool and other details. Click on "OK" to complete creation of visio service application.
Configuring Visio Services in SharePoint 2013
SharePoint 2010 allowed only .VDW Visio drawing files to be published to SharePoint. With SharePoint 2013 you can also publish .vsdx files directly!

Create Visio Graphics Service in SharePoint 2013 using PowerShell:
Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue

#Start the service instance
Get-SPServiceInstance | Where{$_.TypeName -like '*Visio*'} | Start-SPServiceInstance

#Create new Service Application Pool
New-SPServiceApplicationPool -Name "Visio Services" -Account "Crescent\SPS_Services" 

#To Re-use any existing App Pool, use: $ServiceAppPool = Get-SPServiceApplicationPool "Service Application Pool"

#Create Visio Service Application
$VisioServiceApp = New-SPVisioServiceApplication -ApplicationPool "Visio Services" -Name "Visio Service Application"

#Create Service Application Proxy
New-SPVisioServiceApplicationProxy -ServiceApplication "Visio Service Application" -Name "Visio Service Application Proxy" 

To confirm everything is up and running, Go to the "Services on Server" page in the SharePoint 2013 Central Administration and make sure "Visio Graphics Service" is marked as started and under Service Applications list "Visio Graphics Service Application" is listed.

SharePoint 2013 Visio service application:
 sharepoint 2013 configure visio services

SharePoint 2013 Visio unattended service account:
If your visio diagram uses data connectivity, You must create a application id under secure store services for visio graphics services unattended operations.

Grant permissions to Visio Service account on All web applications
Make sure the service account you used for visio graphics service application is granted with dbo access to all content databases of all web applications in order to render visio web drawing. 
#Visio service Account
$VisioServiceAccount = "Crescent\VisioAppPoolAccount"

#Iterate through All Web Application
Get-SPWebApplication | Foreach-Object {
  #Grant access to each web app    
How to Publish Visio Files in SharePoint 2013: 
Upload your Visio drawings (either VDW or VSDX) to any SharePoint Library. SharePoint 2013 should render visio file in browser!

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.

Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...