Set-AzWebAppSlot
Memodifikasi slot Azure Web App.
Sintaks
Set-AzWebAppSlot
[[-AppServicePlan] <String>]
[[-DefaultDocuments] <String[]>]
[[-NetFrameworkVersion] <String>]
[[-PhpVersion] <String>]
[[-RequestTracingEnabled] <Boolean>]
[[-HttpLoggingEnabled] <Boolean>]
[[-DetailedErrorLoggingEnabled] <Boolean>]
[[-AppSettings] <Hashtable>]
[[-ConnectionStrings] <Hashtable>]
[[-HandlerMappings] <System.Collections.Generic.IList`1[Microsoft.Azure.Management.WebSites.Models.HandlerMapping]>]
[[-ManagedPipelineMode] <String>]
[[-WebSocketsEnabled] <Boolean>]
[[-Use32BitWorkerProcess] <Boolean>]
[-AutoSwapSlotName <String>]
[-NumberOfWorkers <Int32>]
[-ContainerImageName <String>]
[-ContainerRegistryUrl <String>]
[-ContainerRegistryUser <String>]
[-ContainerRegistryPassword <SecureString>]
[-EnableContainerContinuousDeployment <Boolean>]
[-AsJob]
[-AssignIdentity <Boolean>]
[-HttpsOnly <Boolean>]
[-AzureStoragePath <WebAppAzureStoragePath[]>]
[-AlwaysOn <Boolean>]
[-MinTlsVersion <String>]
[-FtpsState <String>]
[-HostNames <String[]>]
[-ResourceGroupName] <String>
[-Name] <String>
[-Slot] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Set-AzWebAppSlot
[[-AppServicePlan] <String>]
[[-DefaultDocuments] <String[]>]
[[-NetFrameworkVersion] <String>]
[[-PhpVersion] <String>]
[[-RequestTracingEnabled] <Boolean>]
[[-HttpLoggingEnabled] <Boolean>]
[[-DetailedErrorLoggingEnabled] <Boolean>]
[[-AppSettings] <Hashtable>]
[[-ConnectionStrings] <Hashtable>]
[[-HandlerMappings] <System.Collections.Generic.IList`1[Microsoft.Azure.Management.WebSites.Models.HandlerMapping]>]
[[-ManagedPipelineMode] <String>]
[[-WebSocketsEnabled] <Boolean>]
[[-Use32BitWorkerProcess] <Boolean>]
[-AutoSwapSlotName <String>]
[-NumberOfWorkers <Int32>]
[-AsJob]
[-WebApp] <PSSite>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Set-AzWebApp mengatur Slot Aplikasi Web Azure.
Contoh
Contoh 1
Set-AzWebAppSlot -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp" -Slot "Slot001" -AppServicePlan "ContosoPlan"
Perintah ini mengubah paket layanan aplikasi yang terkait dengan Slot001, pada Webapp ContosoWebApp yang terkait dengan grup sumber daya Default-Web-WestUS. Gunakan tautan untuk mempelajari selengkapnya tentang mengubah paket dan batasan layanan aplikasi yang terkait dengannya. https://learn.microsoft.com/azure/app-service/app-service-plan-manage#move-an-app-to-another-app-service-plan
Contoh 2
Set-AzWebAppSlot -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp" -Slot "Slot001" -HttpLoggingEnabled $true
Perintah ini mengatur HttpLoggingEnabled ke true untuk Slot Slot001 yang berkaitan dengan Aplikasi Web ContosoWebApp yang terkait dengan grup sumber daya Default-Web-WestUS
Contoh 3
Memodifikasi slot Azure Web App. (dibuat otomatis)
Set-AzWebAppSlot -AppSettings <Hashtable> -Name 'ContosoWebApp' -ResourceGroupName 'Default-Web-WestUS' -Slot 'Slot001'
Parameter
-AlwaysOn
Pastikan aplikasi web dimuat sepanjang waktu, agak dibongkar setelah diam.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AppServicePlan
Nama Paket App Service
Type: | String |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AppSettings
HashTable Pengaturan Aplikasi. Pengaturan Aplikasi yang ada akan diganti, menghapus pengaturan apa pun yang tidak disediakan.
Type: | Hashtable |
Position: | 10 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AsJob
Jalankan cmdlet di latar belakang
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AssignIdentity
Aktifkan/nonaktifkan MSI pada slot yang ada [PRATINJAU]
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AutoSwapSlotName
Nama slot tujuan untuk pertukaran otomatis
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AzureStoragePath
Azure Storage untuk dipasang di dalam Aplikasi Web untuk Kontainer. Gunakan New-AzWebAppAzureStoragePath untuk membuatnya
Type: | WebAppAzureStoragePath[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ConnectionStrings
Koneksi String HashTable. Contoh: $connStrings = @{ConnectionStringName = @{ Type = "MySql"; Value = "TestValue"}}
Type: | Hashtable |
Position: | 11 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ContainerImageName
Nama Gambar Kontainer
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ContainerRegistryPassword
Kata Sandi Registri Kontainer Privat
Type: | SecureString |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ContainerRegistryUrl
Url Server Registri Kontainer Privat
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ContainerRegistryUser
Nama Pengguna Private Container Registry
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultDocuments
Array String Dokumen Default
Type: | String[] |
Position: | 4 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DetailedErrorLoggingEnabled
Boolean Berkemampuan Pengelogan Kesalahan Terperinci
Type: | Boolean |
Position: | 9 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableContainerContinuousDeployment
Mengaktifkan/Menonaktifkan webhook penyebaran berkelanjutan kontainer
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FtpsState
Atur nilai status Ftps untuk aplikasi. Nilai yang Diizinkan [AllAllowed | Dinonaktifkan | FtpsOnly].
Type: | String |
Accepted values: | AllAllowed, Disabled, FtpsOnly |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HandlerMappings
Daftar IList Pemetaan Handler
Type: | IList<T>[HandlerMapping] |
Position: | 12 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HostNames
Nama host kustom yang terkait dengan slot aplikasi web
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HttpLoggingEnabled
HttpLoggingEnabled Boolean
Type: | Boolean |
Position: | 8 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HttpsOnly
Aktifkan/nonaktifkan pengalihan semua lalu lintas ke HTTPS pada slot yang ada
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ManagedPipelineMode
Nama Mode Alur Terkelola
Type: | String |
Accepted values: | Classic, Integrated |
Position: | 13 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MinTlsVersion
Versi minimum TLS yang diperlukan untuk permintaan SSL. Nilai yang Diizinkan [1.0 | 1.1 | 1.2].
Type: | String |
Accepted values: | 1.0, 1.1, 1.2 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Nama WebApp
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-NetFrameworkVersion
Versi Net Framework
Type: | String |
Position: | 5 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NumberOfWorkers
Jumlah pekerja yang akan dialokasikan
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PhpVersion
Versi Php
Type: | String |
Position: | 6 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RequestTracingEnabled
Boolean Yang Diaktifkan Pelacakan Permintaan
Type: | Boolean |
Position: | 7 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Nama Grup Sumber Daya
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Slot
Nama Slot WebApp
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Use32BitWorkerProcess
Menggunakan Boolean Proses Pekerja 32-bit
Type: | Boolean |
Position: | 15 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WebApp
Objek WebApp
Type: | PSSite |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WebSocketsEnabled
Web Sockets Diaktifkan Boolean
Type: | Boolean |
Position: | 14 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |