共用方式為


New-AzureRemoteAppCollection

建立 Azure RemoteApp 集合。

注意

本文件中參考的 Cmdlet 用於管理使用 Azure Service Manager(ASM) API 的舊版 Azure 資源。 建立新的資源時,不建議使用此舊版 PowerShell 模組,因為 ASM 已排定淘汰。 如需詳細資訊,請參閱 Azure Service Manager 淘汰

Az PowerShell 模組是使用 PowerShell 管理 Azure Resource Manager (ARM) 資源的建議 PowerShell 模組。

語法

New-AzureRemoteAppCollection
   [-CollectionName] <String>
   [-ImageName] <String>
   [-Plan] <String>
   [[-Location] <String>]
   [-Description <String>]
   [-CustomRdpProperty <String>]
   [-ResourceType <CollectionMode>]
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]
New-AzureRemoteAppCollection
   [-CollectionName] <String>
   [-ImageName] <String>
   [-Plan] <String>
   [[-Location] <String>]
   [-VNetName] <String>
   [-SubnetName] <String>
   [-DnsServers <String>]
   [[-Domain] <String>]
   [[-Credential] <PSCredential>]
   [-OrganizationalUnit <String>]
   [-Description <String>]
   [-CustomRdpProperty <String>]
   [-ResourceType <CollectionMode>]
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

New-AzureRemoteAppCollection Cmdlet 會建立 Azure RemoteApp 集合。

範例

範例 1:建立集合

PS C:\> New-AzureRemoteAppCollection -CollectionName "Contoso" -ImageName "Windows Server 2012 R2" -Plan Standard -Location "West US" -Description CloudOnly

此命令會建立 Azure RemoteApp 集合。

範例 2:使用認證建立集合

PS C:\> $cred = Get-Credential corp.contoso.com\admin
PS C:\> New-AzureRemoteAppCollection -CollectionName "ContosoHybrid" -ImageName "Windows Server 2012 R2" -Plan Standard -VNetName azureVNet -Domain Contoso.com -Credential $cred -Description Hybrid

此命令會使用 Get-Credential Cmdlet 中的認證來建立 Azure RemoteApp 集合。

參數

-CollectionName

指定 Azure RemoteApp 集合的名稱。

類型:String
別名:Name
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Credential

指定有權將 Azure RemoteApp 伺服器加入網域的服務帳戶認證。 若要取得 PSCredential 物件,請使用 Get-Credential Cmdlet。

類型:PSCredential
Position:6
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-CustomRdpProperty

指定可用來設定磁碟驅動器重新導向和其他設定的自定義遠端桌面 Protocal (RDP) 屬性。 如需詳細資訊,請參閱 Windows Server (https://technet.microsoft.com/library/ff393699(v=ws.10).aspx) 中遠端桌面服務的 RDP 設定。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-Description

指定物件的簡短描述。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-DnsServers

指定 DNS 伺服器的 IPv4 位址逗號分隔清單。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-Domain

指定要加入 RD 工作階段主機伺服器之 Active Directory 網域服務 網域的名稱。

類型:String
Position:5
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-ImageName

指定 Azure RemoteApp 範本映像的名稱。

類型:String
Position:2
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Location

指定集合的 Azure 區域。

類型:String
Position:4
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-OrganizationalUnit

指定要加入 RD 工作階段主機伺服器的組織單位名稱,例如 OU=MyOu,DC=MyDomain,DC=ParentDomain,DC=com。 OU 和 DC 等屬性必須大寫。 建立集合之後,就無法變更 OU。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-Plan

指定可定義使用量限制的 Azure RemoteApp 集合計劃。 使用 Get-AzureRemoteAppPlan 查看可用的方案。

類型:String
Position:3
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Profile

指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設配置檔讀取。

類型:AzureSMProfile
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ResourceType

指定集合的資源類型。 此參數可接受的值為:應用程式或桌面。

類型:CollectionMode
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-SubnetName

指定要用來建立 Azure RemoteApp 集合之虛擬網路中的子網名稱。

類型:String
Position:7
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-VNetName

指定 Azure RemoteApp 虛擬網路的名稱。

類型:String
Position:4
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False