Set-AzureRmWebApp
Ändert eine Azure Web App.
Warnung
Das AzureRM PowerShell-Modul ist seit dem 29. Februar 2024 offiziell veraltet. Benutzern wird empfohlen, von AzureRM zum Az PowerShell-Modul zu migrieren, um weiterhin Support und Updates zu erhalten.
Obwohl das AzureRM-Modul weiterhin funktioniert, wird es nicht mehr Standard tained oder unterstützt, wobei eine fortgesetzte Verwendung nach Ermessen und Risiko des Benutzers erfolgt. Weitere Informationen zum Übergang zum Az-Modul finden Sie in unseren Migrationsressourcen.
Syntax
Set-AzureRmWebApp
[[-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>]
[-ContainerImageName <String>]
[-ContainerRegistryUrl <String>]
[-ContainerRegistryUser <String>]
[-ContainerRegistryPassword <SecureString>]
[-EnableContainerContinuousDeployment <Boolean>]
[-HostNames <String[]>]
[-NumberOfWorkers <Int32>]
[-AsJob]
[-AssignIdentity <Boolean>]
[-HttpsOnly <Boolean>]
[-ResourceGroupName] <String>
[-Name] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Set-AzureRmWebApp
[[-Use32BitWorkerProcess] <Boolean>]
[[-AutoSwapSlotName] <String>]
[-NumberOfWorkers <Int32>]
[-AsJob]
[-WebApp] <PSSite>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Beschreibung
Das Cmdlet Set-AzureRmWebApp legt eine Azure Web App fest.
Beispiele
Beispiel 1
PS C:\> Set-AzureRmWebApp -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp" -HttpLoggingEnabled $true
Mit diesem Befehl wird "HttpLoggingEnabled" auf "true" für Web App ContosoWebApp festgelegt, die der Ressourcengruppe Default-Web-WestUS zugeordnet ist.
Parameter
-AppServicePlan
Name des App Service-Plans
Typ: | String |
Position: | 2 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AppSettings
App-Einstellungen HashTable
Typ: | Hashtable |
Position: | 9 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AsJob
Cmdlet im Hintergrund ausführen
Typ: | SwitchParameter |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AssignIdentity
Aktivieren/Deaktivieren von MSI in einer vorhandenen Azure Webapp oder FunctionApp
Typ: | Boolean |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AutoSwapSlotName
Zielplatzname für den automatischen Tausch
Typ: | String |
Position: | 15 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ConnectionStrings
Verbinden ion Strings HashTable
Typ: | Hashtable |
Position: | 10 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ContainerImageName
Containerimagename
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ContainerRegistryPassword
Kennwort für private Containerregistrierung
Typ: | SecureString |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ContainerRegistryUrl
URL des Privaten Containerregistrierungsservers
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ContainerRegistryUser
Benutzername der Privaten Containerregistrierung
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultDocuments
Standarddokument-Zeichenfolgenarray
Typ: | String[] |
Position: | 3 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Die Anmeldeinformationen, Konten, Mandanten und Abonnements, die für die Kommunikation mit Azure verwendet werden.
Typ: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DetailedErrorLoggingEnabled
Detaillierte Fehlerprotokollierung aktiviert vom Typ Boolean
Typ: | Boolean |
Position: | 8 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableContainerContinuousDeployment
Aktiviert/Deaktiviert den Webhook für die fortlaufende Bereitstellung von Containern
Typ: | Boolean |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HandlerMappings
IList für Handlerzuordnungen
Typ: | IList<T>[HandlerMapping] |
Position: | 11 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HostNames
WebApp-HostNames-Zeichenfolgenarray
Typ: | String[] |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HttpLoggingEnabled
HttpLoggingEnabled Boolean
Typ: | Boolean |
Position: | 7 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HttpsOnly
Aktivieren/Deaktivieren des Umleitens des gesamten Datenverkehrs zu HTTPS in einer vorhandenen Azure Webapp oder functionapp
Typ: | Boolean |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ManagedPipelineMode
Name des verwalteten Pipelinemodus
Typ: | String |
Zulässige Werte: | Classic, Integrated |
Position: | 12 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
WebApp-Name
Typ: | String |
Position: | 1 |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-NetFrameworkVersion
Net Framework-Version
Typ: | String |
Position: | 4 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NumberOfWorkers
Die Anzahl der zuzuordnenden Arbeitnehmer
Typ: | Int32 |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PhpVersion
Php-Version
Typ: | String |
Position: | 5 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RequestTracingEnabled
Anforderungsablaufverfolgung aktiviert
Typ: | Boolean |
Position: | 6 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Ressourcengruppenname
Typ: | String |
Position: | 0 |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Use32BitWorkerProcess
Verwenden des 32-Bit-Arbeitsprozesses vom Typ Boolean
Typ: | Boolean |
Position: | 14 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WebApp
WebApp-Objekt
Typ: | PSSite |
Position: | 0 |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WebSocketsEnabled
WebSocketsEnabled Boolean
Typ: | Boolean |
Position: | 13 |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Eingaben
Parameter: NumberOfWorkers (ByValue)
Parameter: WebApp (ByValue)