Get-SCSQLDeployment
Mendapatkan penyebaran SQL Server.
Sintaks
Get-SCSQLDeployment
[-VMMServer <ServerConnection>]
-SQLProfile <SQLProfile>
[-Name <String>]
[<CommonParameters>]
Get-SCSQLDeployment
[-VMMServer <ServerConnection>]
[-SQLConfigurationFile <Script>]
[<CommonParameters>]
Get-SCSQLDeployment
[-VMMServer <ServerConnection>]
-ID <Guid>
[<CommonParameters>]
Deskripsi
Cmdlet Get-SCSQLDeployment mendapatkan penyebaran Microsoft SQL Server.
Contoh
Contoh 1: Mendapatkan objek penyebaran SQL Server tertentu dari profil SQL Server yang ada
PS C:\> $SQLProfile = Get-SCSQLProfile -Name "SQLProfile01"
PS C:\> Get-SCSQLDeployment -SQLProfile $SQLProfile -Name "SQL Deployment 01"
Perintah pertama mendapatkan profil SQL Server bernama SQLProfile01, lalu menyimpan objek tersebut dalam variabel $SQLProfile. Perintah ini menggunakan cmdlet Get-SCSQLProfile .
Perintah kedua mendapatkan penyebaran SQL Server bernama SQL Deployment 01 dari Profil SQL yang disimpan di $SQLProfile.
Parameter
-ID
Menentukan ID unik penyebaran yang didapat cmdlet ini.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Menentukan nama penyebaran SQL Server yang didapat cmdlet ini.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SQLConfigurationFile
Menentukan file konfigurasi untuk penyebaran SQL Server yang didapatkan cmdlet ini.
Type: | Script |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SQLProfile
Menentukan profil SQL Server tempat cmdlet ini mendapatkan penyebaran SQL Server.
Type: | SQLProfile |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
Menentukan server VMM tempat cmdlet ini beroperasi.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Output
SQLDeployment
Cmdlet ini mengembalikan objek SQLDeployment .