|
2113 | 2113 | text: | |
2114 | 2114 | az containerapp sessionpool create -n mysessionpool -g MyResourceGroup \\ |
2115 | 2115 | --container-type CustomContainer --environment MyEnvironment \\ |
2116 | | - --cpu 0.5 --memory 1Gi --target-port 80 --image MyImage \\ |
| 2116 | + --cpu 0.5 --memory 1Gi --target-port 80 --image myregistry.azurecr.io/MyImage:Tag \\ |
2117 | 2117 | --env-vars GREETING="Hello, world" SECRETENV=secretref:anothersecret \\ |
2118 | 2118 | --secrets mysecret=secretvalue1 anothersecret="secret value 2" --location eastasia |
2119 | 2119 | - name: Create or update a Session Pool with container type CustomContainer that from private registry |
2120 | 2120 | text: | |
2121 | 2121 | az containerapp sessionpool create -n mysessionpool -g MyResourceGroup \\ |
2122 | | - --container-type CustomContainer --environment MyEnvironment --image MyImage \\ |
| 2122 | + --container-type CustomContainer --environment MyEnvironment --image myregistry.azurecr.io/MyImage:Tag \\ |
2123 | 2123 | --cpu 0.5 --memory 1Gi --target-port 80 --registry-server myregistry.azurecr.io \\ |
2124 | 2124 | --registry-username myregistry --registry-password $REGISTRY_PASSWORD \\ |
2125 | 2125 | --location eastasia |
2126 | 2126 | - name: Create or update a Session Pool with container type CustomContainer and Managed Identity to authenticate Azure container registry |
2127 | 2127 | text: | |
2128 | 2128 | az containerapp sessionpool create -n mysessionpool -g MyResourceGroup \\ |
2129 | | - --container-type CustomContainer --environment MyEnvironment --image MyImage \\ |
| 2129 | + --container-type CustomContainer --environment MyEnvironment --image myregistry.azurecr.io/MyImage:Tag \\ |
2130 | 2130 | --cpu 0.5 --memory 1Gi --target-port 80 --registry-server myregistry.azurecr.io \\ |
2131 | 2131 | --registry-identity MyUserIdentityResourceId \\ |
2132 | 2132 | --location eastasia |
2133 | 2133 | - name: Create or update a Session Pool with container type CustomContainer with system assigned and user assigned identity. |
2134 | 2134 | text: | |
2135 | 2135 | az containerapp sessionpool create -n mysessionpool -g MyResourceGroup \\ |
2136 | | - --container-type CustomContainer --environment MyEnvironment --image MyImage \\ |
| 2136 | + --container-type CustomContainer --environment MyEnvironment --image myregistry.azurecr.io/MyImage:Tag \\ |
2137 | 2137 | --cpu 0.5 --memory 1Gi --target-port 80 \\ |
2138 | 2138 | --mi-system-assigned --mi-user-assigned MyUserIdentityResourceId \\ |
2139 | 2139 | --location eastasia |
|
0 commit comments