$location='eastasia'
$rgName='edu-destinationcy93-rg'
New-AzResourceGroup -Name $rgName -Location $location
PS /home/labuser93> $location='eastasia'
PS /home/labuser93> $rgName='edu-destinationcy93-rg'
PS /home/labuser93> New-AzResourceGroup -Name $rgName -Location $location
ResourceGroupName : edu-destinationcy93-rg
Location : eastasia
ProvisioningState : Succeeded
Tags :
ResourceId : /subscriptions/f5bc93f2-df0a-4b1a-ab9e-2b0203fc7d26/resourceGroups/edu-destinationcy93-rg
$location='eastasia'
$rgName='edu-destinationcy93-rg'
$diskConfig = New-AzDiskConfig `
-Location $location `
-CreateOption Empty `
-DiskSizeGB 32 `
-Sku Standard_LRS
$diskName = 'edu-ps-disk-93'
New-AzDisk `
-ResourceGroupName $rgName `
-DiskName $diskName `
-Disk $diskConfig
PS /home/labuser93> $location='eastasia'
PS /home/labuser93> $rgName='edu-destinationcy93-rg'
PS /home/labuser93> $diskConfig = New-AzDiskConfig `
>> -Location $location `
>> -CreateOption Empty `
>> -DiskSizeGB 32 `
>> -Sku Standard_LRS
PS /home/labuser93> $diskName = 'edu-ps-disk-93'
PS /home/labuser93> New-AzDisk `
>> -ResourceGroupName $rgName `
>> -DiskName $diskName `
>> -Disk $diskConfig
ResourceGroupName : edu-destinationcy93-rg
ManagedBy :
ManagedByExtended : {}
Sku : Microsoft.Azure.Management.Compute.Models.DiskSku
$ az account list -o table
Name CloudName SubscriptionId TenantId State IsDefault
----------------------- ----------- ------------------------------------ ------------------------------------ ------- -----------
서울대학교 ChatGPT 과정 AzureCloud f5bc93f2-df0a-4b1a-ab9e-2b0203fc7d26 c3b5a8fe-e46d-4078-9bd0-5eb0bb801edb Enabled True
$ az resource list -o table
Name ResourceGroup Location Type Status
---------------------------------------------------- --------------------------------- ---------------- -------------------------------------------------- --------
cs110032003416f2f58 cloud-shell-storage-southeastasia southeastasia Microsoft.Storage/storageAccounts
cs110032003416f2f66 cloud-shell-storage-southeastasia southeastasia Microsoft.Storage/storageAccounts
cs110032003416f2f6a cloud-shell-storage-southeastasia southeastasia Microsoft.Storage/storageAccounts
"sourceResourceId": {
"type": "String"
},
"hyperVGeneration": {
"defaultValue": "V1",
"type": "String"
},
"diskName": {
"value": "eduarmdiskjh02"
},
template.json
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"storageAccounts_name":{
"type":"String",
"metadata":{
"description":"My first storage account"
}
},
"location": {
"type": "String",
"metadata": {
"description": "Location for all resources."
}
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2022-05-01",
"name": "[parameters('storageAccounts_name')]",
"location": "[parameters('location')]",
"dependsOn": [],
"tags": {},
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "StorageV2",
}
],
"outputs": {}
}
parameters.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"storageAccounts_name": {
"value": "uniquestorage123xyz"
},
"location": {
"value": "eastus"
}
}
}
az group create -l koreacentral -n usingjh01-rg
$ az group create -l koreacentral -n usingjh01-rg
{
"id": "/subscriptions/f5bc93f2-df0a-4b1a-ab9e-2b0203fc7d26/resourceGroups/usingjh01-rg",
"location": "koreacentral",
"managedBy": null,
"name": "usingjh01-rg",
"properties": {
"provisioningState": "Succeeded"
},
"tags": null,
"type": "Microsoft.Resources/resourceGroups"
}
az deployment group create --name armdeployjh01 --resource-group usingjh01-rg --template-file template.json --parameters parameters.json
PS /home/labuser93> az deployment group create --name armdeployjh01 --resource-group usingjh01-rg --template-file template.json --parameters parameters.json
{
"id": "/subscriptions/f5bc93f2-df0a-4b1a-ab9e-2b0203fc7d26/resourceGroups/usingjh01-rg/providers/Microsoft.Resources/deployments/armdeployjh01",
"location": null,
"name": "armdeployjh01",
"properties": {
"correlationId": "23b25601-9c0e-40b2-b9b0-7f7dbbc17667",
...
}
다음에서 배울 수 있는 것
- 파일(이미지) 공유 후 주소로 공유
- 윈도우 가상머신에서 스토리지 공유 (윈도우 뿐만 아니라 맥, 리눅스에서도 가능)
<Error>
<Code>ResourceNotFound</Code>
<Message>The specified resource does not exist. RequestId:9c07a97d-101e-0110-8083-47a1e4000000 Time:2024-01-15T07:23:43.3226425Z</Message>
</Error>
first share.txt
파일을 만들어 저장해보았다.