New-AzContainerAppManagedEnv
maak een beheerde omgeving die wordt gebruikt voor het hosten van container-apps.
Syntaxis
New-AzContainerAppManagedEnv
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-Location <String>
[-AppLogConfigurationDestination <String>]
[-CustomDomainConfigurationCertificateValueInputFile <String>]
[-CustomDomainConfigurationDnsSuffix <String>]
[-CustomDomainPassword <SecureString>]
[-DaprAiConnectionString <String>]
[-DaprAiInstrumentationKey <String>]
[-InfrastructureResourceGroup <String>]
[-Kind <String>]
[-LogAnalyticConfigurationCustomerId <String>]
[-LogAnalyticConfigurationSharedKey <String>]
[-MtlEnabled]
[-Tag <Hashtable>]
[-VnetConfigurationDockerBridgeCidr <String>]
[-VnetConfigurationInfrastructureSubnetId <String>]
[-VnetConfigurationInternal]
[-VnetConfigurationPlatformReservedCidr <String>]
[-VnetConfigurationPlatformReservedDnsIP <String>]
[-WorkloadProfile <IWorkloadProfile[]>]
[-ZoneRedundant]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzContainerAppManagedEnv
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonString <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzContainerAppManagedEnv
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzContainerAppManagedEnv
-InputObject <IAppIdentity>
-Location <String>
[-AppLogConfigurationDestination <String>]
[-CustomDomainConfigurationCertificateValueInputFile <String>]
[-CustomDomainConfigurationDnsSuffix <String>]
[-CustomDomainPassword <SecureString>]
[-DaprAiConnectionString <String>]
[-DaprAiInstrumentationKey <String>]
[-InfrastructureResourceGroup <String>]
[-Kind <String>]
[-LogAnalyticConfigurationCustomerId <String>]
[-LogAnalyticConfigurationSharedKey <String>]
[-MtlEnabled]
[-Tag <Hashtable>]
[-VnetConfigurationDockerBridgeCidr <String>]
[-VnetConfigurationInfrastructureSubnetId <String>]
[-VnetConfigurationInternal]
[-VnetConfigurationPlatformReservedCidr <String>]
[-VnetConfigurationPlatformReservedDnsIP <String>]
[-WorkloadProfile <IWorkloadProfile[]>]
[-ZoneRedundant]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
maak een beheerde omgeving die wordt gebruikt voor het hosten van container-apps.
Voorbeelden
Voorbeeld 1: Een beheerde omgeving maken die wordt gebruikt voor het hosten van container-apps.
New-AzOperationalInsightsWorkspace -ResourceGroupName azps_test_group_app -Name workspace-azpstestgp -Sku PerGB2018 -Location canadacentral -PublicNetworkAccessForIngestion "Enabled" -PublicNetworkAccessForQuery "Enabled"
$CustomId = (Get-AzOperationalInsightsWorkspace -ResourceGroupName azps_test_group_app -Name workspace-azpstestgp).CustomerId
$SharedKey = (Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName azps_test_group_app -Name workspace-azpstestgp).PrimarySharedKey
$workloadProfile = New-AzContainerAppWorkloadProfileObject -Name "Consumption" -Type "Consumption"
New-AzContainerAppManagedEnv -Name azps-env -ResourceGroupName azps_test_group_app -Location eastus -AppLogConfigurationDestination "log-analytics" -LogAnalyticConfigurationCustomerId $CustomId -LogAnalyticConfigurationSharedKey $SharedKey -VnetConfigurationInternal:$false -WorkloadProfile $workloadProfile
Location Name ResourceGroupName
-------- ---- -----------------
East US azps-env azps_test_group_app
Maak een beheerde omgeving die wordt gebruikt voor het hosten van container-apps.
Parameters
-AppLogConfigurationDestination
Doel van logboeken, kan 'log-analytics', 'azure-monitor' of 'none' zijn
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-AsJob
De opdracht uitvoeren als een taak
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Confirm
U wordt gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliassen: | cf |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-CustomDomainConfigurationCertificateValueInputFile
Invoerbestand voor CustomDomainConfigurationCertificateValue (PFX- of PEM-blob)
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-CustomDomainConfigurationDnsSuffix
Dns-achtervoegsel voor het omgevingsdomein
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-CustomDomainPassword
Certificaatwachtwoord.
Type: | SecureString |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DaprAiConnectionString
Application Insights-verbindingsreeks die wordt gebruikt door Dapr voor het exporteren van telemetrie van service-naar-service-communicatie
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DaprAiInstrumentationKey
Azure Monitor-instrumentatiesleutel die door Dapr wordt gebruikt voor het exporteren van telemetrie van service-naar-service-communicatie
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DefaultProfile
De parameter DefaultProfile is niet functioneel. Gebruik de parameter SubscriptionId indien beschikbaar als u de cmdlet uitvoert voor een ander abonnement.
Type: | PSObject |
Aliassen: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-InfrastructureResourceGroup
Naam van de door het platform beheerde resourcegroep die is gemaakt voor de beheerde omgeving voor het hosten van infrastructuurresources. Als er een subnet-id is opgegeven, wordt deze resourcegroep gemaakt in hetzelfde abonnement als het subnet.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-InputObject
Identiteitsparameter
Type: | IAppIdentity |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-JsonFilePath
Pad van het Json-bestand dat is opgegeven bij de bewerking Maken
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-JsonString
Json-tekenreeks die is opgegeven bij de bewerking Maken
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Kind
Soort omgeving.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Location
De geografische locatie waar de resource zich bevindt
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-LogAnalyticConfigurationCustomerId
Log Analytics-klant-id
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-LogAnalyticConfigurationSharedKey
Log Analytics-klantsleutel
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-MtlEnabled
Booleaanse waarde die aangeeft of wederzijdse TLS-verificatie is ingeschakeld
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Name
Naam van de omgeving.
Type: | String |
Aliassen: | EnvName |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-NoWait
De opdracht asynchroon uitvoeren
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ResourceGroupName
De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-SubscriptionId
De id van het doelabonnement.
Type: | String |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Tag
Resourcetags.
Type: | Hashtable |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-VnetConfigurationDockerBridgeCidr
CIDR-notatie-IP-bereik dat is toegewezen aan de Docker-brug, het netwerk. Mag niet overlappen met andere opgegeven IP-bereiken.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-VnetConfigurationInfrastructureSubnetId
Resource-id van een subnet voor infrastructuuronderdelen. Mag niet overlappen met andere opgegeven IP-bereiken.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-VnetConfigurationInternal
Booleaanse waarde die aangeeft dat de omgeving alleen een interne load balancer heeft. Deze omgevingen hebben geen openbare statische IP-resource. Ze moeten infrastructureSubnetId opgeven als deze eigenschap is ingeschakeld
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-VnetConfigurationPlatformReservedCidr
IP-bereik in CIDR-notatie die kan worden gereserveerd voor IP-adressen van de omgevingsinfrastructuur. Mag niet overlappen met andere opgegeven IP-bereiken.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-VnetConfigurationPlatformReservedDnsIP
Een IP-adres uit het IP-bereik dat is gedefinieerd door platformReservedCidr die wordt gereserveerd voor de interne DNS-server.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-WhatIf
Toont wat er zou gebeuren als de cmdlet wordt uitgevoerd. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliassen: | wi |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-WorkloadProfile
Workloadprofielen die zijn geconfigureerd voor de beheerde omgeving.
Type: | IWorkloadProfile[] |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ZoneRedundant
Of deze beheerde omgeving al dan niet zone-redundant is.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Invoerwaarden
Uitvoerwaarden
Azure PowerShell