forked from Azure/azure-powershell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
710c963
commit 03392cf
Showing
6 changed files
with
234 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/ResourceManager/Common/Commands.Common.Strategies/Compute/Image.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Microsoft.Azure.Commands.Common.Strategies.Compute | ||
{ | ||
public sealed class Image | ||
{ | ||
public string publisher; | ||
|
||
public string offer; | ||
|
||
public string sku; | ||
|
||
public string version; | ||
} | ||
} |
135 changes: 135 additions & 0 deletions
135
src/ResourceManager/Common/Commands.Common.Strategies/Compute/Images.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Microsoft.Azure.Commands.Common.Strategies.Compute | ||
{ | ||
public static class Images | ||
{ | ||
public static Dictionary<string, Dictionary<string, Image>> Instance { get; } = | ||
new Dictionary<string, Dictionary<string, Image>> | ||
{ | ||
{ | ||
"Linux", | ||
new Dictionary<string, Image> | ||
{ | ||
{ | ||
"CentOS", | ||
new Image | ||
{ | ||
publisher = "OpenLogic", | ||
offer = "CentOS", | ||
sku = "7.3", | ||
version = "latest", | ||
} | ||
}, | ||
{ | ||
"CoreOS", | ||
new Image | ||
{ | ||
publisher = "CoreOS", | ||
offer = "CoreOS", | ||
sku = "Stable", | ||
version = "latest", | ||
|
||
} | ||
}, | ||
{ | ||
"Debian", | ||
new Image | ||
{ | ||
publisher = "credativ", | ||
offer = "Debian", | ||
sku = "8", | ||
version = "latest", | ||
} | ||
}, | ||
{ | ||
"openSUSE-Leap", | ||
new Image | ||
{ | ||
publisher = "SUSE", | ||
offer = "openSUSE-Leap", | ||
sku = "42.2", | ||
version = "latest", | ||
} | ||
}, | ||
{ | ||
"RHEL", | ||
new Image | ||
{ | ||
publisher = "RedHat", | ||
offer = "RHEL", | ||
sku = "7.3", | ||
version = "latest" | ||
} | ||
}, | ||
{ | ||
"SLES", | ||
new Image | ||
{ | ||
publisher = "SUSE", | ||
offer = "SLES", | ||
sku = "12-SP2", | ||
version = "latest", | ||
} | ||
}, | ||
{ | ||
"UbuntuLTS", | ||
new Image | ||
{ | ||
publisher = "Canonical", | ||
offer = "UbuntuServer", | ||
sku = "16.04-LTS", | ||
version = "latest", | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"Windows", | ||
new Dictionary<string, Image> | ||
{ | ||
{ | ||
"Win2016Datacenter", | ||
new Image | ||
{ | ||
publisher = "MicrosoftWindowsServer", | ||
offer = "WindowsServer", | ||
sku = "2016-Datacenter", | ||
version = "latest", | ||
} | ||
}, | ||
{ | ||
"Win2012R2Datacenter", | ||
new Image | ||
{ | ||
publisher = "MicrosoftWindowsServer", | ||
offer = "WindowsServer", | ||
sku = "2012-R2-Datacenter", | ||
version = "latest", | ||
} | ||
}, | ||
{ | ||
"Win2012Datacenter", | ||
new Image | ||
{ | ||
publisher = "MicrosoftWindowsServer", | ||
offer = "WindowsServer", | ||
sku = "2012-Datacenter", | ||
version = "latest", | ||
} | ||
}, | ||
{ | ||
"Win2008R2SP1", | ||
new Image | ||
{ | ||
publisher = "MicrosoftWindowsServer", | ||
offer = "WindowsServer", | ||
sku = "2008-R2-SP1", | ||
version = "latest", | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters