Azure Stack Hub Multi Stamp Management
Cloud Assert HomeDocs Home
2008.1
2008.1
  • Introduction
  • Release Notes
  • Key Concepts
    • ADMIN
      • Manage Stamps
      • Updates
      • Images and Marketplace
      • Usage and Billing
      • Capacity and Infrastructure Management
      • Alerts
      • Diagnostics
      • Tenant Services
      • Email Reports
      • Offline Marketplace Download
  • INSTALLATION
    • Prerequisites
      • PKI Certificate Requirements
      • AzureStack Certification Authority certificate
      • Create SQL Server VM and necessary databases in a tenant subscription
    • Deployment
      • Install VConnect RP
      • License Activation
        • Offline Activation
      • Update Billing Resource Provider Details
      • Remove VConnect RP
      • Version Update
  • Configuration
    • Configure SMTP Settings
    • Configure Automated Emails
    • Configure Remote Machine for PowerShell Access
    • Configure Offline Marketplace Download
    • Configure a new Azure Stack Hub Stamp
      • Configure an Azure AD Stamp
      • Configure an ADFS Stamp
Powered by GitBook
On this page
  • Remote PowerShell Machine
  • VConnect Resource Provider Machine

Was this helpful?

  1. Configuration

Configure Remote Machine for PowerShell Access

Configuring PowerShell machine is required for Offline Marketplace Download feature.

PreviousConfigure Automated EmailsNextConfigure Offline Marketplace Download

Last updated 4 years ago

Was this helpful?

Remote PowerShell Machine

The machine in which the required PowerShell modules needs to be installed must be accessible to the VConnect resource provider VM.

The VM can be created within the Azure Stack tenant subscription or it can be provisioned outside Azure Stack. Choose a Window Server Data Center 2016 with at least 8 GB RAM and 4 vCPUs.

Install PowerShell modules

Open a new elevated (administrative) PowerShell console and follow below instructions.

  • Follow instructions to . Refer documentation in case there are issues while registering PowerShell Gallery.

  • Download the Azs.Syndication.Admin Module from the PowerShell Gallery using the command below.

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityProtocolType]::Tls13
Install-Module -Name Azs.Syndication.Admin -RequiredVersion 0.1.152-preview -AllowPrerelease

Allow Remote PowerShell execution

Run the following PowerShell cmdlets in the elevated PowerShell window.

  • Configure PS Remote access, WinRM using following script

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityProtocolType]::Tls13
Enable-PSRemoting -Force
WinRM quickconfig
WinRM set winrm/config/winrs '@{MaxShellsPerUser="500"}' 
Set-Item -Path WSMan:\localhost\Plugin\microsoft.powershell\Quotas\MaxShells -Value 500

Set-Item -Path WSMan:\localhost\Plugin\microsoft.powershell\Quotas\MaxShellsPerUser -Value 500

Set-Item -Path WSMan:\localhost\Plugin\microsoft.powershell32\Quotas\MaxShells -Value 500

Set-Item -Path WSMan:\localhost\Plugin\microsoft.powershell32\Quotas\MaxShellsPerUser -Value 500
Restart-Service winrm

VConnect Resource Provider Machine

To execute PowerShell cmdlets from VConnect Resource Provider VM to Remote PowerShell machine, the remote machine IP must be trusted in WinRM inside the VConnect Resource Provider VM.

  • Execute the following PowerShell cmdlets in the VConnect Resource Provider VM.

WinRM quickconfig
winrm set winrm/config/client '@{AllowUnencrypted="true"}'
winrm set winrm/config/winrs '@{MaxShellsPerUser="500"}'
winrm set winrm/config/client '@{TrustedHosts ="REPLACE POWERSHELL CONFIGURED MACHINE IP HERE"}'
Restart-Service winrm

Set AllowUnencrypted="true" as needed.

Replace TrustedHosts ="REPLACE POWERSHELL CONFIGURED MACHINE IP HERE" with IP of the machine used in 'Configure Remote PowerShell Machine' step

Install PowerShell Az preview module for Azure Stack Hub
this