-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmock_azure.sh
executable file
·62 lines (58 loc) · 1.47 KB
/
mock_azure.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
mkdir -p ./metadata
echo -n '{
"compute": {
"azEnvironment": "AzurePublicCloud",
"customData": "",
"location": "westus",
"name": "jubilee",
"offer": "Windows-10",
"osType": "Windows",
"placementGroupId": "",
"plan": {
"name": "",
"product": "",
"publisher": ""
},
"platformFaultDomain": "1",
"platformUpdateDomain": "1",
"provider": "Microsoft.Compute",
"publicKeys": [],
"publisher": "MicrosoftWindowsDesktop",
"resourceGroupName": "myrg",
"resourceId": "/subscriptions/704408fa-3e01-47ba-931a-56161a8a9775/resourceGroups/myrg/providers/Microsoft.Compute/virtualMachines/negasonic",
"sku": "rs4-pro",
"subscriptionId": "704408fa-3e01-47ba-931a-56161a8a9775",
"tags": "Department:IT;Environment:Prod;Role:WorkerRole",
"version": "17134.345.59",
"vmId": "13f56399-bd52-4150-9748-7190aae1ff21",
"vmScaleSetName": "",
"vmSize": "Standard_D1",
"zone": "1"
},
"network": {
"interface": [
{
"ipv4": {
"ipAddress": [
{
"privateIpAddress": "10.1.2.5",
"publicIpAddress": "X.X.X.X"
}
],
"subnet": [
{
"address": "10.1.2.0",
"prefix": "24"
}
]
},
"ipv6": {
"ipAddress": []
},
"macAddress": "000D3A36DDED"
}
]
}
}' > metadata/instance
python3 -m http.server