Delen via


AzureCloudPowerShellDeployment@1 - Azure Cloud Service-implementatie v1-taak

Een Azure-cloudservice implementeren.

Notitie

Deze taak biedt geen ondersteuning voor Azure Resource Manager-verificatie met werkstroomidentiteitsfederatie.

Syntax

# Azure Cloud Service deployment v1
# Deploy an Azure Cloud Service.
- task: AzureCloudPowerShellDeployment@1
  inputs:
    azureClassicSubscription: # string. Alias: ConnectedServiceName. Required. Azure subscription (Classic). 
    #EnableAdvancedStorageOptions: false # boolean. Enable ARM storage support. Default: false.
    StorageAccount: # string. Required when EnableAdvancedStorageOptions = false. Storage account (Classic). 
    #ARMConnectedServiceName: # string. Required when EnableAdvancedStorageOptions = true. Azure subscription (ARM). 
    #ARMStorageAccount: # string. Required when EnableAdvancedStorageOptions = true. Storage account (ARM). 
    ServiceName: # string. Required. Service name. 
    ServiceLocation: # string. Required. Service location. 
    CsPkg: # string. Required. CsPkg. 
    CsCfg: # string. Required. CsCfg. 
    slotName: 'Production' # string. Alias: Slot. Required. Environment (Slot). Default: Production.
    #DeploymentLabel: '$(Build.BuildNumber)' # string. Deployment label. Default: $(Build.BuildNumber).
    #AppendDateTimeToLabel: false # boolean. Append current date and time. Default: false.
    #AllowUpgrade: true # boolean. Allow upgrade. Default: true.
    #SimultaneousUpgrade: false # boolean. Optional. Use when AllowUpgrade == true. Simultaneous upgrade. Default: false.
    #ForceUpgrade: false # boolean. Optional. Use when AllowUpgrade == true. Force upgrade. Default: false.
    #VerifyRoleInstanceStatus: false # boolean. Verify role instance status. Default: false.
  # Advanced Options For Creating New Service
    #DiagnosticStorageAccountKeys: # string. Diagnostic storage account keys. 
    #NewServiceCustomCertificates: # string. Custom certificates to import. 
    #NewServiceAdditionalArguments: # string. Additional arguments. 
    #NewServiceAffinityGroup: # string. Affinity group.
# Azure Cloud Service deployment v1
# Deploy an Azure Cloud Service.
- task: AzureCloudPowerShellDeployment@1
  inputs:
    azureClassicSubscription: # string. Alias: ConnectedServiceName. Required. Azure subscription (Classic). 
    StorageAccount: # string. Required. Storage account. 
    ServiceName: # string. Required. Service name. 
    ServiceLocation: # string. Required. Service location. 
    CsPkg: # string. Required. CsPkg. 
    CsCfg: # string. Required. CsCfg. 
    slotName: 'Production' # string. Alias: Slot. Required. Environment (Slot). Default: Production.
    #DeploymentLabel: '$(Build.BuildNumber)' # string. Deployment label. Default: $(Build.BuildNumber).
    #AppendDateTimeToLabel: false # boolean. Append current date and time. Default: false.
    #AllowUpgrade: true # boolean. Allow upgrade. Default: true.
    #SimultaneousUpgrade: false # boolean. Optional. Use when AllowUpgrade == true. Simultaneous upgrade. Default: false.
    #ForceUpgrade: false # boolean. Optional. Use when AllowUpgrade == true. Force upgrade. Default: false.
    #VerifyRoleInstanceStatus: false # boolean. Verify role instance status. Default: false.
  # Advanced Options For Creating New Service
    #DiagnosticStorageAccountKeys: # string. Diagnostic storage account keys. 
    #NewServiceCustomCertificates: # string. Custom certificates to import. 
    #NewServiceAdditionalArguments: # string. Additional arguments. 
    #NewServiceAffinityGroup: # string. Affinity group.
# Azure Cloud Service Deployment v1
# Deploy an Azure Cloud Service.
- task: AzureCloudPowerShellDeployment@1
  inputs:
    azureClassicSubscription: # string. Alias: ConnectedServiceName. Required. Azure subscription (Classic). 
    StorageAccount: # string. Required. Storage account. 
    ServiceName: # string. Required. Service name. 
    ServiceLocation: # string. Required. Service location. 
    CsPkg: # string. Required. CsPkg. 
    CsCfg: # string. Required. CsCfg. 
    slotName: 'Production' # string. Alias: Slot. Required. Environment (Slot). Default: Production.
    #DeploymentLabel: '$(Build.BuildNumber)' # string. Deployment label. Default: $(Build.BuildNumber).
    #AppendDateTimeToLabel: false # boolean. Append current date and time. Default: false.
    #AllowUpgrade: true # boolean. Allow upgrade. Default: true.
    #SimultaneousUpgrade: false # boolean. Optional. Use when AllowUpgrade == true. Simultaneous upgrade. Default: false.
    #ForceUpgrade: false # boolean. Optional. Use when AllowUpgrade == true. Force upgrade. Default: false.
    #VerifyRoleInstanceStatus: false # boolean. Verify role instance status. Default: false.
  # Advanced Options For Creating New Service
    #DiagnosticStorageAccountKeys: # string. Diagnostic storage account keys. 
    #NewServiceCustomCertificates: # string. Custom certificates to import. 
    #NewServiceAdditionalArguments: # string. Additional arguments. 
    #NewServiceAffinityGroup: # string. Affinity group.

Invoerwaarden

azureClassicSubscription - Azure-abonnement (klassiek)
Invoeralias: ConnectedServiceName. string. Vereist.

Het Azure-abonnement dat moet worden geïmplementeerd.


EnableAdvancedStorageOptions - Ondersteuning voor ARM-opslag inschakelen
boolean. Standaardwaarde: false.

Arm-opslagondersteuning in- of uitschakelen.


StorageAccount - Opslagaccount (klassiek)
string. Vereist wanneer EnableAdvancedStorageOptions = false.

Het opslagaccount moet bestaan vóór de implementatie.


StorageAccount - Opslagaccount
string. Vereist.

Het opslagaccount moet bestaan vóór de implementatie.


ARMConnectedServiceName - Azure-abonnement (ARM)
string. Vereist wanneer EnableAdvancedStorageOptions = true.

Het ARM-abonnement.


ARMStorageAccount - Opslagaccount (ARM)
string. Vereist wanneer EnableAdvancedStorageOptions = true.

Een bestaand ARM-opslagaccount.


ServiceName - Servicenaam
string. Vereist.

Een bestaande cloudservicenaam.


ServiceLocation - Servicelocatie
string. Vereist.

Een regio voor nieuwe service-implementatie. Opties zijn onder andere: VS - oost, VS - oost 2, VS - centraal, VS - zuid-centraal, VS - west, Europa - noord, Europa - west en andere.


CsPkg - CsPkg
string. Vereist.

Pad naar de CsPkg in de standaardartefactmap.


CsCfg - CsCfg
string. Vereist.

Het CsCfg-pad in de map met standaardartefacten.


slotName - Omgeving (site)
Invoeralias: Slot. string. Vereist. Standaardwaarde: Production.

Stel deze waarde in op Fasering of gebruik de standaardwaarde.


DeploymentLabel - Implementatielabel
string. Standaardwaarde: $(Build.BuildNumber).

Hiermee geeft u de labelnaam voor de nieuwe implementatie. Als dit niet is opgegeven, wordt standaard een Globally Unique Identifier (GUID) gebruikt.


AppendDateTimeToLabel - Huidige datum en tijd toevoegen
boolean. Standaardwaarde: false.

Hiermee voegt u de huidige datum en tijd toe aan het implementatielabel.


AllowUpgrade - Upgrade toestaan
boolean. Standaardwaarde: true.

Hiermee staat u een upgrade naar de Microsoft Azure-implementatie toe.


SimultaneousUpgrade - Gelijktijdige upgrade
boolean. Optioneel. Gebruik wanneer AllowUpgrade == true. Standaardwaarde: false.

Hiermee wordt alle exemplaren in één keer bijgewerkt. Uw cloudservice is gedurende deze periode niet beschikbaar.


ForceUpgrade - Upgrade forceren
boolean. Optioneel. Gebruik wanneer AllowUpgrade == true. Standaardwaarde: false.

Hiermee stelt u een geforceerde upgrade in. Het afdwingen van een upgrade kan leiden tot verlies van lokale gegevens.


VerifyRoleInstanceStatus - Status van rolinstantie controleren
boolean. Standaardwaarde: false.

Zorgt ervoor dat de taak wacht totdat rolinstanties de status Gereed hebben.


DiagnosticStorageAccountKeys - Diagnostische opslagaccountsleutels
string.

Maak de tekenreeks voor de opslagsleutel op als Role:Storagekey. De naam van het opslagaccount voor diagnostische gegevens voor elke rol wordt opgehaald uit het diagnostische configuratiebestand (.wadcfgx).

  • Als het .wadcfgx-bestand voor een rol niet wordt gevonden: de diagnostische extensie is niet ingesteld voor die rol.
  • Als de naam van het opslagaccount niet wordt gevonden in het .wadcfgx-bestand: het standaardopslagaccount wordt gebruikt voor het opslaan van diagnostische resultaten en de opslagsleutelparameters van de implementatietaak worden genegeerd.

OPMERKING: Als de diagnostische resultaten voor uw omgeving gevoelige informatie bevatten, slaat u de storage_account_key op als een geheime variabele. Bijvoorbeeld:

  • WebRole: WebRole_storage_account_key
  • WorkerRole: WorkerRole_stoarge_account_key

NewServiceCustomCertificates - Te importeren aangepaste certificaten
string.

Maak de aangepaste certificaattekenreeks op als CertificatePfxBase64:CertificatePassword. Sla de certificate_password op als een geheime variabele. Bijvoorbeeld:

  • Certificaat1: Certificate1_password
  • Certificaat2: Certificate2_password

NewServiceAdditionalArguments - Aanvullende argumenten
string.

Geeft aanvullende argumenten door bij het maken van een nieuwe service. Argumenten worden doorgegeven aan de New-AzureService cmdlet. Bijvoorbeeld -Label 'MyTestService'.


NewServiceAffinityGroup - Affiniteitsgroep
string.

De affiniteitsgroep die wordt gebruikt in plaats van de servicelocatie bij het maken van een nieuwe service.


Opties voor taakbeheer

Alle taken hebben besturingsopties naast hun taakinvoer. Zie Opties voor besturingselementen en algemene taakeigenschappen voor meer informatie.

Uitvoervariabelen

Geen.

Opmerkingen

Gebruik deze taak om een Azure-cloudservice te implementeren.

Vereisten

Vereiste Beschrijving
Pijplijntypen YAML, klassieke build, klassieke release
Wordt uitgevoerd op Agent
Eisen Zelf-hostende agents moeten mogelijkheden hebben die voldoen aan de volgende vereisten om taken uit te voeren die gebruikmaken van deze taak: azureps
Functies Deze taak voldoet niet aan eventuele vereisten voor volgende taken in de taak.
Opdrachtbeperkingen Alle
Instelbare variabelen Alle
Agentversie 1.103.0 of hoger
Taakcategorie Implementeren