Vous êtes sur la page 1sur 11

Your cloud drive has been created in:

Subscription Id: 772e6e9f-4cf7-42bc-89c4-f32976396fd7

Resource group: cloud-shell-storage-southeastasia

Storage account: cs1772e6e9f4cf7x42bcx89c

File share: cs-fahad-bashir09-gmail-com-100320007d717134

Initializing your account for Cloud Shell...\

Requesting a Cloud Shell.Succeeded.

Connecting terminal...

Welcome to Azure Cloud Shell

Type "az" to use Azure CLIType "help" to learn about Cloud Shell

fahad@Azure:~$ az group create --name testContainerRG --location southeastasia

"id": "/subscriptions/772e6e9f-4cf7-42bc-89c4-f32976396fd7/resourceGroups/testContainerRG",

"location": "southeastasia",

"managedBy": null,

"name": "testContainerRG",

"properties": {

"provisioningState": "Succeeded"

},

"tags": null,

"type": "Microsoft.Resources/resourceGroups"

fahad@Azure:~$ az container create --image microsoft/mssql-server-linux --name mssql-container-


group --resource-group testContainerRG --cpu 1 --memory 3.5 --port 1433 --ip-address public -e
ACCEPT_EULA=Y MSSQL_SA_PASSWORD=iba@12345
^Cfahad@Azure:~$ az container create --image microsoft/mssql-server-linux --name mssql-container-
group --resource-group testContainerRG --cpu 1 --mery 3.5 --port 1433 --ip-address public -e
ACCEPT_EULA=Y MSSQL_SA_PASSWORD=iba@12345 MSSQL_PID=Developer
MSSQL_COLLATION=Latin1_General_CI_AS MSSQL_ENABLE_HADR=Y --location southeastasia

"containers": [

"command": null,

"environmentVariables": [

"name": "ACCEPT_EULA",

"secureValue": null,

"value": "Y"

},

"name": "MSSQL_SA_PASSWORD",

"secureValue": null,

"value": "iba@12345"

},

"name": "MSSQL_PID",

"secureValue": null,

"value": "Developer"

},

"name": "MSSQL_COLLATION",

"secureValue": null,

"value": "Latin1_General_CI_AS"

},

{
"name": "MSSQL_ENABLE_HADR",

"secureValue": null,

"value": "Y"

],

"image": "microsoft/mssql-server-linux",

"instanceView": {

"currentState": {

"detailStatus": "",

"exitCode": null,

"finishTime": null,

"startTime": "2019-10-19T07:20:53+00:00",

"state": "Running"

},

"events": [

"count": 1,

"firstTimestamp": "2019-10-19T07:19:35+00:00",

"lastTimestamp": "2019-10-19T07:19:35+00:00",

"message": "pulling image \"microsoft/mssql-server-linux\"",

"name": "Pulling",

"type": "Normal"

},

"count": 1,

"firstTimestamp": "2019-10-19T07:20:47+00:00",

"lastTimestamp": "2019-10-19T07:20:47+00:00",

"message": "Successfully pulled image \"microsoft/mssql-server-linux\"",

"name": "Pulled",
"type": "Normal"

},

"count": 1,

"firstTimestamp": "2019-10-19T07:20:52+00:00",

"lastTimestamp": "2019-10-19T07:20:52+00:00",

"message": "Created container",

"name": "Created",

"type": "Normal"

},

"count": 1,

"firstTimestamp": "2019-10-19T07:20:53+00:00",

"lastTimestamp": "2019-10-19T07:20:53+00:00",

"message": "Started container",

"name": "Started",

"type": "Normal"

],

"previousState": null,

"restartCount": 0

},

"livenessProbe": null,

"name": "mssql-container-group",

"ports": [

"port": 1433,

"protocol": "TCP"

}
],

"readinessProbe": null,

"resources": {

"limits": null,

"requests": {

"cpu": 1.0,

"gpu": null,

"memoryInGb": 3.5

},

"volumeMounts": null

],

"diagnostics": null,

"dnsConfig": null,

"id": "/subscriptions/772e6e9f-4cf7-42bc-89c4-
f32976396fd7/resourceGroups/testContainerRG/providers/Microsoft.ContainerInstance/containerGrou
ps/mssql-container-group",

"identity": null,

"imageRegistryCredentials": null,

"instanceView": {

"events": [],

"state": "Running"

},

"ipAddress": {

"dnsNameLabel": null,

"fqdn": null,

"ip": "40.90.187.107",

"ports": [
{

"port": 1433,

"protocol": "TCP"

],

"type": "Public"

},

"location": "southeastasia",

"name": "mssql-container-group",

"networkProfile": null,

"osType": "Linux",

"provisioningState": "Succeeded",

"resourceGroup": "testContainerRG",

"restartPolicy": "Always",

"tags": {},

"type": "Microsoft.ContainerInstance/containerGroups",

"volumes": null

}
fahad@Azure:~$ az container create -g testContainerRG --name nginx --image library/nginx --ip-address
public

"containers": [

"command": null,

"environmentVariables": [],

"image": "library/nginx",

"instanceView": {

"currentState": {

"detailStatus": "",

"exitCode": null,

"finishTime": null,

"startTime": "2019-10-19T07:22:47+00:00",

"state": "Running"

},
"events": [

"count": 1,

"firstTimestamp": "2019-10-19T07:22:33+00:00",

"lastTimestamp": "2019-10-19T07:22:33+00:00",

"message": "pulling image \"library/nginx\"",

"name": "Pulling",

"type": "Normal"

},

"count": 1,

"firstTimestamp": "2019-10-19T07:22:45+00:00",

"lastTimestamp": "2019-10-19T07:22:45+00:00",

"message": "Successfully pulled image \"library/nginx\"",

"name": "Pulled",

"type": "Normal"

},

"count": 1,

"firstTimestamp": "2019-10-19T07:22:47+00:00",

"lastTimestamp": "2019-10-19T07:22:47+00:00",

"message": "Created container",

"name": "Created",

"type": "Normal"

},

"count": 1,

"firstTimestamp": "2019-10-19T07:22:47+00:00",

"lastTimestamp": "2019-10-19T07:22:47+00:00",
"message": "Started container",

"name": "Started",

"type": "Normal"

],

"previousState": null,

"restartCount": 0

},

"livenessProbe": null,

"name": "nginx",

"ports": [

"port": 80,

"protocol": "TCP"

],

"readinessProbe": null,

"resources": {

"limits": null,

"requests": {

"cpu": 1.0,

"gpu": null,

"memoryInGb": 1.5

},

"volumeMounts": null

],

"diagnostics": null,
"dnsConfig": null,

"id": "/subscriptions/772e6e9f-4cf7-42bc-89c4-
f32976396fd7/resourceGroups/testContainerRG/providers/Microsoft.ContainerInstance/containerGrou
ps/nginx",

"identity": null,

"imageRegistryCredentials": null,

"instanceView": {

"events": [],

"state": "Running"

},

"ipAddress": {

"dnsNameLabel": null,

"fqdn": null,

"ip": "52.230.59.2",

"ports": [

"port": 80,

"protocol": "TCP"

],

"type": "Public"

},

"location": "southeastasia",

"name": "nginx",

"networkProfile": null,

"osType": "Linux",

"provisioningState": "Succeeded",

"resourceGroup": "testContainerRG",

"restartPolicy": "Always",
"tags": {},

"type": "Microsoft.ContainerInstance/containerGroups",

"volumes": null

fahad@Azure:~$ az container show --name helloword -g testContainerRG -o table

The Resource 'Microsoft.ContainerInstance/containerGroups/helloword' under resource group


'testContainerRG' was not found.

Vous aimerez peut-être aussi