|
2210 | 2210 | helps['webapp sitecontainers create'] = """ |
2211 | 2211 | type: command |
2212 | 2212 | short-summary: Create sitecontainers for a linux webapp |
| 2213 | +long-summary: | |
| 2214 | + Multiple sitecontainers can be added at once by passing arg --sitecontainer-spec-file, which is the path to a json file containing an array of sitecontainer specs. |
| 2215 | + Example json file: |
| 2216 | + [{ |
| 2217 | + "name" : "firstcontainer", |
| 2218 | + "image": "myregistry.io/firstimage:latest", |
| 2219 | + "target_port": "80", |
| 2220 | + "is_main": true, |
| 2221 | + "environment_variables" : [ |
| 2222 | + { |
| 2223 | + "name" : "hello", |
| 2224 | + "value": "world" |
| 2225 | + } |
| 2226 | + ], |
| 2227 | + "volume_mounts": [ |
| 2228 | + { |
| 2229 | + "container_mount_path" : "mountPath", |
| 2230 | + "data": "configData", |
| 2231 | + "read_only": true, |
| 2232 | + "volume_sub_path": "subPath" |
| 2233 | + } |
| 2234 | + ] |
| 2235 | + }, |
| 2236 | + { |
| 2237 | + "name" : "secondcontainer", |
| 2238 | + "image": "myregistry.io/secondimage:latest", |
| 2239 | + "target_port": "3000", |
| 2240 | + "is_main": false, |
| 2241 | + "auth_type": "SystemIdentity", |
| 2242 | + "start_up_command": "MyStartupCmd" |
| 2243 | + }, |
| 2244 | + { |
| 2245 | + "name" : "thirdcontainer", |
| 2246 | + "image": "myregistry.io/thirdimage:latest", |
| 2247 | + "target_port": "3001", |
| 2248 | + "is_main": false, |
| 2249 | + "auth_type": "UserAssigned", |
| 2250 | + "user_managed_identity_client_id": "ClientID" |
| 2251 | + }, |
| 2252 | + { |
| 2253 | + "name" : "thirdcontainer", |
| 2254 | + "image": "myregistry.io/thirdimage:latest", |
| 2255 | + "target_port": "3002", |
| 2256 | + "is_main": false, |
| 2257 | + "auth_type": "UserCredentials", |
| 2258 | + "user_name": "Username", |
| 2259 | + "password_secret": "Password" |
| 2260 | + }] |
2213 | 2261 | examples: |
2214 | | - - name: Create sitecontainers for a linux webapp (autogenerated) |
2215 | | - text: az webapp sitecontaienrs create --name MyWebApp --resource-group MyResourceGroup |
2216 | | - crafted: true |
| 2262 | + - name: Create a sitecontainer for a linux webapp |
| 2263 | + text: az webapp sitecontainers create --name MyWebApp --resource-group MyResourceGroup --container-name MyContainer --image MyImageRegistry.io/MyImage:latest --target-port 80 --is-main |
| 2264 | + - name : Create multiple sitecontainers for a linux webapp using a json sitecontainer-spec file |
| 2265 | + text: az webapp sitecontainers create --name MyWebApp --resource-group MyResourceGroup --sitecontainer-spec-file ./sitecontainersspec.json |
| 2266 | +""" |
| 2267 | + |
| 2268 | + |
| 2269 | +helps['webapp sitecontainers update'] = """ |
| 2270 | +type: command |
| 2271 | +short-summary: Update a sitecontainer for a linux webapp |
| 2272 | +examples: |
| 2273 | + - name: Update a sitecontainer for a linux webapp |
| 2274 | + text: az webapp sitecontainers update --name MyWebApp --resource-group MyResourceGroup --container-name MyContainer --image MyImageRegistry.io/MyImage:latest --target-port 3000 --is-main false |
| 2275 | +""" |
| 2276 | + |
| 2277 | + |
| 2278 | +helps['webapp sitecontainers delete'] = """ |
| 2279 | +type: command |
| 2280 | +short-summary: Delete a sitecontainer for a linux webapp |
| 2281 | +examples: |
| 2282 | + - name: Delete a sitecontainer for a linux webapp |
| 2283 | + text: az webapp sitecontainers delete --name MyWebApp --resource-group MyResourceGroup --container-name MyContainer |
| 2284 | +""" |
| 2285 | + |
| 2286 | + |
| 2287 | +helps['webapp sitecontainers show'] = """ |
| 2288 | +type: command |
| 2289 | +short-summary: List the details of a sitecontainer for a linux webapp |
| 2290 | +examples: |
| 2291 | + - name: List the details of a sitecontainer for a linux webapp |
| 2292 | + text: az webapp sitecontainers show --name MyWebApp --resource-group MyResourceGroup --container-name MyContainer |
| 2293 | +""" |
| 2294 | + |
| 2295 | + |
| 2296 | +helps['webapp sitecontainers list'] = """ |
| 2297 | +type: command |
| 2298 | +short-summary: List all the sitecontainers for a linux webapp |
| 2299 | +examples: |
| 2300 | + - name: List all the sitecontainers for a linux webapp |
| 2301 | + text: az webapp sitecontainers list --name MyWebApp --resource-group MyResourceGroup --container-name MyContainer |
| 2302 | +""" |
| 2303 | + |
| 2304 | + |
| 2305 | +helps['webapp sitecontainers status'] = """ |
| 2306 | +type: command |
| 2307 | +short-summary: Get the status of a sitecontainer for a linux webapp |
| 2308 | +examples: |
| 2309 | + - name: Get the status of a sitecontainer for a linux webapp |
| 2310 | + text: az webapp sitecontainers status --name MyWebApp --resource-group MyResourceGroup --container-name MyContainer |
| 2311 | +""" |
| 2312 | + |
| 2313 | +helps['webapp sitecontainers log'] = """ |
| 2314 | +type: command |
| 2315 | +short-summary: Get the logs of a sitecontainer for a linux webapp |
| 2316 | +examples: |
| 2317 | + - name: Get the logs of a sitecontainer for a linux webapp |
| 2318 | + text: az webapp sitecontainers log --name MyWebApp --resource-group MyResourceGroup --container-name MyContainer |
2217 | 2319 | """ |
2218 | 2320 |
|
2219 | 2321 |
|
|
0 commit comments