You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to use PowerShell you have to, first, create a in-memory object called Microsoft.Azure.PowerShell.Cmdlets.App.Models.EnvironmentVar using the [New-AzContainerAppEnvironmentVarObject](/powershell/module/az.app/new-azcontainerappenvironmentvarobject) PowerShell cmdlet.
42
+
If you want to use PowerShell you have to, first, create a in-memory object called [EnvironmentVar](/dotnet/api/Microsoft.Azure.PowerShell.Cmdlets.App.Models.EnvironmentVar) using the [New-AzContainerAppEnvironmentVarObject](/powershell/module/az.app/new-azcontainerappenvironmentvarobject) PowerShell cmdlet.
43
43
44
44
To use this cmdlet, you have to pass the name of the environment variable using the `-Name` parameter and the value using the `-Value` parameter, respectively.
45
45
@@ -53,7 +53,7 @@ If you want to reference a secret, you have to ensure that the secret you want t
Then you have to create another in-memory object called Microsoft.Azure.PowerShell.Cmdlets.App.Models.Container using the [New-AzContainerAppTemplateObject](/powershell/module/az.app/new-azcontainerapptemplateobject) PowerShell cmdlet.
56
+
Then you have to create another in-memory object called [Container](/dotnet/api/Microsoft.Azure.PowerShell.Cmdlets.App.Models.Container) using the [New-AzContainerAppTemplateObject](/powershell/module/az.app/new-azcontainerapptemplateobject) PowerShell cmdlet.
57
57
58
58
On this cmdlet, you have to pass the name of your container image (not the container app!) you desire using the `-Name` parameter, the fully qualified image name using the `-Image` parameter and reference the environment object you defined previously on the variable `$envVar`.
59
59
@@ -117,7 +117,7 @@ az containerapp update \
117
117
118
118
### [PowerShell](#tab/powershell)
119
119
120
-
Similarly to what you need to do upon creating a new Container App you have to create an object called Microsoft.Azure.PowerShell.Cmdlets.App.Models.EnvironmentVar, which is contained within a Microsoft.Azure.PowerShell.Cmdlets.App.Models.Container. This Microsoft.Azure.PowerShell.Cmdlets.App.Models.Container is then used with the [New-AzContainerApp](/powershell/module/az.app/new-azcontainerapp) PowerShell cmdlet.
120
+
Similarly to what you need to do upon creating a new Container App you have to create an object called [EnvironmentVar](/dotnet/api/Microsoft.Azure.PowerShell.Cmdlets.App.Models.EnvironmentVar), which is contained within a [Container](/dotnet/api/Microsoft.Azure.PowerShell.Cmdlets.App.Models.Container). This [Container](/dotnet/api/Microsoft.Azure.PowerShell.Cmdlets.App.Models.Container) is then used with the [New-AzContainerApp](/powershell/module/az.app/new-azcontainerapp) PowerShell cmdlet.
121
121
122
122
In this cmdlet, you only need to pass the template object you defined previously as described on the [Configuring environment variables](#configuring-environment-variables) section.
0 commit comments