Copy-ServiceFabricClusterPackage
Service Fabric çalışma zamanı yükleme dosyasını ve/veya küme bildirimini görüntü deposuna kopyalar.
Syntax
Copy-ServiceFabricClusterPackage
-CodePackagePath <String>
-ClusterManifestPath <String>
[-ImageStoreConnectionString <String>]
[-CodePackagePathInImageStore <String>]
[-ClusterManifestPathInImageStore <String>]
[-CertStoreLocation <StoreLocation>]
[-TimeoutSec <Int32>]
[<CommonParameters>]
Copy-ServiceFabricClusterPackage
[-Code]
-CodePackagePath <String>
[-ClusterManifestPath <String>]
[-ImageStoreConnectionString <String>]
[-CodePackagePathInImageStore <String>]
[-CertStoreLocation <StoreLocation>]
[-TimeoutSec <Int32>]
[<CommonParameters>]
Copy-ServiceFabricClusterPackage
[-Config]
[-CodePackagePath <String>]
-ClusterManifestPath <String>
[-ImageStoreConnectionString <String>]
[-ClusterManifestPathInImageStore <String>]
[-CertStoreLocation <StoreLocation>]
[-TimeoutSec <Int32>]
[<CommonParameters>]
Description
Copy-ServiceFabricClusterPackage cmdlet'i bir Service Fabric çalışma zamanı yükleme dosyasını ve/veya küme bildirimini görüntü deposuna kopyalar.
Paketi görüntü deposuna kopyaladıktan sonra Register-ServiceFabricClusterPackage cmdlet'ini kullanarak paketi kaydedin.
Paketi görüntü deposuna kaydettikten sonra Remove-ServiceFabricClusterPackage cmdlet'ini kullanarak paketi görüntü deposundan kaldırın.
Service Fabric kümelerini yönetmek için Yönetici olarak çalıştır seçeneğini kullanarak Windows PowerShell başlatın. Service Fabric kümesinde herhangi bir işlem yapmadan önce Connect-ServiceFabricCluster cmdlet'ini kullanarak kümeyle bağlantı kurun.
Örnekler
Örnek 1: Kodu ve bildirimi görüntü deposuna kopyalama
PS C:\> Copy-ServiceFabricClusterPackage -ClusterManifestPath "\\configStore\ClusterManifests\CH1\ClusterManifest_123.xml" -CodePackagePath "\\codeStore\MsiFiles\ServiceFabric.2.0.59.0.msi" -ImageStoreConnectionString "fabric:ImageStore"
Bu komut, belirtilen MSI ve küme bildirim dosyasını görüntü deposuna kopyalar. CodePackagePathInImageStore veya ClusterManifestPathInImageStore parametreleri sağlanmadığında, dosya adı varsayılan olarak kullanılır.
Örnek 2: Görüntü deposuna yalnızca küme bildirimini kopyalama
PS C:\> Copy-ServiceFabricClusterPackage -Config -ClusterManifestPath "\\configStore\ClusterManifests\CH1\ClusterManifest_123.xml" -ClusterManifestPathInImageStore ClusterManifest.xml -ImageStoreConnectionString "fabric:ImageStore"
Bu komut, belirtilen küme bildirimini görüntü deposundaki ClusterManifest.xml kopyalar.
Örnek 3: Görüntü deposuna yalnızca çalışma zamanı yükleme dosyasını kopyalama
PS C:\> Copy-ServiceFabricClusterPackage -Code -CodePackagePath "\\codeStore\MsiFiles\ServiceFabric.2.0.59.0.msi" -CodePackagePathInImageStore ServiceFabric.msi -ImageStoreConnectionString "fabric:ImageStore"
Bu komut yalnızca belirtilen MSI dosyasını görüntü deposundaki ServiceFabric.msi kopyalar.
Parametreler
-CertStoreLocation
{{Fill CertStoreLocation Description}}
Type: | StoreLocation |
Accepted values: | CurrentUser, LocalMachine |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ClusterManifestPath
Service Fabric küme bildiriminin yolunu belirtir.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ClusterManifestPathInImageStore
Küme bildiriminin kopyalanması gereken görüntü deposundaki göreli yolu belirtir.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Code
Görüntü deposuna yalnızca Service Fabric çalışma zamanı yükleme dosyasının kopyalanması gerektiğini belirtir.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CodePackagePath
Service Fabric çalışma zamanı yükleme dosyasının dosya yolunu belirtir. Bu dosya bir MSI, CAB veya DEB dosyası olabilir.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CodePackagePathInImageStore
Service Fabric çalışma zamanı yükleme dosyasının kopyalanması gereken görüntü deposundaki göreli yolu belirtir.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Config
Görüntü deposuna yalnızca Service Fabric kümesi bildirim dosyasının kopyalanması gerektiğini belirtir.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ImageStoreConnectionString
Service Fabric görüntü deposu için bağlantı dizesini belirtir. Görüntü deposu bağlantı dizesi hakkında daha fazla bilgi edinin.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TimeoutSec
İşlem için zaman aşımını saniye olarak belirtir. Varsayılan olarak, maksimum zaman aşımı değeri 1800 saniye ile sınırlıdır.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Girişler
None
Çıkışlar
System.Object