Skip to content

Commit

Permalink
Update for Multi CA, Accelerated Networking and runCommands. (Azure#3461
Browse files Browse the repository at this point in the history
)

* Compute update for version 2017-03-30

* Update Swagger spec file location.

* Update Microsoft.Azure.Management.ResourceManager to version 1.6.0-preview

* Update for Multi CA, Accelerated Networking and runCommands.

* Fix credscan issue.

* Remove unnecessary dependency to Network library
  • Loading branch information
hyonholee authored and shahabhijeet committed Jul 17, 2017
1 parent ec117bc commit c0f33ce
Show file tree
Hide file tree
Showing 18 changed files with 8,100 additions and 2,800 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Param(
[Parameter(Mandatory=$false)] [string]$keyVaultName = "pslibtestkeyvault"
)
$PfxCertifcate = ""
$PfxCertifcatePassword = "CRP-Core"
$PfxCertifcatePassword = "[PLACEHOLDER]"

Switch-AzureMode AzureResourceManager
Select-AzureSubscription -SubscriptionId $subscriptionId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,24 @@ public void TestVMOperations()
m_CrpClient.VirtualMachines.Start(rg1Name, vm1.Name);
m_CrpClient.VirtualMachines.Redeploy(rg1Name, vm1.Name);
m_CrpClient.VirtualMachines.Restart(rg1Name, vm1.Name);
m_CrpClient.VirtualMachines.RunCommand(rg1Name, vm1.Name, new RunCommandInput() { CommandId="ipconfig" });

var runCommandImput = new RunCommandInput() {
CommandId = "RunPowerShellScript",
Script = new List<string>() {
"param(",
" [string]$arg1,",
" [string]$arg2",
")",
"echo This is a sample script with parameters $arg1 $arg2"
},
Parameters = new List<RunCommandInputParameter>()
{
new RunCommandInputParameter("arg1","value1"),
new RunCommandInputParameter("arg2","value2"),
}
};
m_CrpClient.VirtualMachines.RunCommand(rg1Name, vm1.Name, runCommandImput);

m_CrpClient.VirtualMachines.PowerOff(rg1Name, vm1.Name);
m_CrpClient.VirtualMachines.Deallocate(rg1Name, vm1.Name);
m_CrpClient.VirtualMachines.Generalize(rg1Name, vm1.Name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@
"Microsoft.Azure.Management.Compute.ComputeManagementClient/15.0.0.0"
]
},
"ResponseBody": "{\r\n \"startTime\": \"2017-06-08T01:42:32.416461-07:00\",\r\n \"endTime\": \"2017-06-08T01:42:32.791447-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-hfcxwsnkrxxf.blob.core.windows.net/bn3kjhhnvdjf/abcd?sv=2016-05-31&sr=b&si=aff7c381-e6bd-4a90-94a7-1a7de936021f&sig=3aUc2nQYtelGjTd8KdOyeX4IPgehVynAd0B9JzjaehY%3D\"\r\n }\r\n },\r\n \"name\": \"70461de7-829f-4803-8a5d-8642bef5a505\"\r\n}",
"ResponseBody": "{\r\n \"startTime\": \"2017-06-08T01:42:32.416461-07:00\",\r\n \"endTime\": \"2017-06-08T01:42:32.791447-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-hfcxwsnkrxxf.blob.core.windows.net/\"\r\n }\r\n },\r\n \"name\": \"70461de7-829f-4803-8a5d-8642bef5a505\"\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3335,7 +3335,7 @@
"Microsoft.Azure.Management.Compute.ComputeManagementClient/15.0.0.0"
]
},
"ResponseBody": "{\r\n \"startTime\": \"2017-06-08T01:37:40.5367215-07:00\",\r\n \"endTime\": \"2017-06-08T01:37:41.9430289-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-hfcxwsnkrxxf.blob.core.windows.net/wzqqfhjqr2z0/abcd?sv=2016-05-31&sr=b&si=b1e8cd91-a41b-46b8-940d-548c5fe132ee&sig=REVCcF0twU91Er1Syw%2BGywN4mpXtJILYPpCpw0o1pM4%3D\"\r\n }\r\n },\r\n \"name\": \"1a15d8b9-7198-4879-b824-10b9e84b94b2\"\r\n}",
"ResponseBody": "{\r\n \"startTime\": \"2017-06-08T01:37:40.5367215-07:00\",\r\n \"endTime\": \"2017-06-08T01:37:41.9430289-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-hfcxwsnkrxxf.blob.core.windows.net/\"\r\n }\r\n },\r\n \"name\": \"1a15d8b9-7198-4879-b824-10b9e84b94b2\"\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@
"Microsoft.Azure.Management.Compute.ComputeManagementClient/15.0.0.0"
]
},
"ResponseBody": "{\r\n \"startTime\": \"2017-06-08T01:51:28.5669556-07:00\",\r\n \"endTime\": \"2017-06-08T01:51:28.8012989-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-hfcxwsnkrxxf.blob.core.windows.net/dwhv2gcc2tpq/abcd?sv=2016-05-31&sr=b&si=8be684df-9d00-48cc-8bd1-401e6c0a7b17&sig=eRgpnIgo1Ad7gG4nZO2p9SW2HlFYSR%2F%2BjeBrc%2Fa9nsI%3D\"\r\n }\r\n },\r\n \"name\": \"1c8fdd78-80e3-4b14-b497-04591c3f4cab\"\r\n}",
"ResponseBody": "{\r\n \"startTime\": \"2017-06-08T01:51:28.5669556-07:00\",\r\n \"endTime\": \"2017-06-08T01:51:28.8012989-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-hfcxwsnkrxxf.blob.core.windows.net/\"\r\n }\r\n },\r\n \"name\": \"1c8fdd78-80e3-4b14-b497-04591c3f4cab\"\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
Expand Down
Loading

0 comments on commit c0f33ce

Please sign in to comment.