Skip to content

Web and Compute experiments #4606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 67 commits into from
Sep 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
4af3d5c
Added experimental cmdlets for webapp creation scenarios for webapps.
NelsonDaniel Aug 18, 2017
e76b093
Fixed experimental cmdlet unit tests.
NelsonDaniel Aug 18, 2017
514b3f7
Fix to help analyzer for webapp experimental cmdlets.
NelsonDaniel Aug 18, 2017
b3d0e7b
Fix to breaking change analyzer for experimental cmdlets.
NelsonDaniel Aug 18, 2017
c461635
Added output path for helpfiles inside websites experiments project.
NelsonDaniel Aug 18, 2017
83e20a2
Made some cosmetic changes.
NelsonDaniel Aug 18, 2017
72b44be
Create VM rough draft.
twitchax Aug 28, 2017
b859389
Move.
twitchax Aug 28, 2017
ee3ade0
Update Az.Compute.psm1
twitchax Aug 28, 2017
57f9e73
Merge branch 'preview' into sergey-compute
sergey-shandar Aug 29, 2017
040b552
AzureRM.Compute.Experements
sergey-shandar Sep 1, 2017
9eb80c7
BOM ?
sergey-shandar Sep 1, 2017
09a4dc2
hardcoded images
sergey-shandar Sep 2, 2017
4507204
remove images.json
sergey-shandar Sep 2, 2017
d63a3e9
no password
sergey-shandar Sep 3, 2017
539bbe1
parameter
sergey-shandar Sep 5, 2017
1d9486d
Use specific version of modules
sergey-shandar Sep 6, 2017
02692a7
publishing.
sergey-shandar Sep 6, 2017
a321a65
Set-ResourceGroup
sergey-shandar Sep 6, 2017
6571649
common
sergey-shandar Sep 7, 2017
96972d2
classes
sergey-shandar Sep 8, 2017
255e154
resource group name as a parameter
sergey-shandar Sep 9, 2017
2384e26
Virtual Network as an object.
sergey-shandar Sep 9, 2017
a434c6e
publicipaddress and securitygroup
sergey-shandar Sep 11, 2017
01cc466
NetworkInterface class implementation
sergey-shandar Sep 11, 2017
144b3a6
unused object
sergey-shandar Sep 11, 2017
3f78229
VM creation using classes
sergey-shandar Sep 11, 2017
1ea0d9d
remove Set-ResourceGroup
sergey-shandar Sep 11, 2017
90ab0fa
minor
sergey-shandar Sep 11, 2017
d32bee0
Compute classess (Get/Create logic).
sergey-shandar Sep 11, 2017
82731a3
minor changes
sergey-shandar Sep 14, 2017
35915ea
Help template
sergey-shandar Sep 14, 2017
e89a548
help
sergey-shandar Sep 14, 2017
4575ee6
Merge pull request #2 from sergey-shandar/sergey-compute-class
sergey-shandar Sep 14, 2017
24c2a66
docs
sergey-shandar Sep 14, 2017
5d2629f
ShouldProcess
sergey-shandar Sep 14, 2017
b8950d4
-WhatIf test
sergey-shandar Sep 15, 2017
63bf4b0
-Warning SilentlyContinue
sergey-shandar Sep 15, 2017
390bc29
1.0.6
sergey-shandar Sep 15, 2017
315747d
CreateParams type
sergey-shandar Sep 15, 2017
199077b
Merge pull request #3 from sergey-shandar/sergey-compute-class
sergey-shandar Sep 15, 2017
a8e95a3
Merge branch 'preview' into preview
markcowl Sep 15, 2017
eac6277
OutputType
sergey-shandar Sep 15, 2017
0058e16
Merge pull request #4 from sergey-shandar/sergey-compute-class
sergey-shandar Sep 15, 2017
01d6a92
remove old Az.Compute.psm1
sergey-shandar Sep 15, 2017
96b9cbf
Merge pull request #5 from sergey-shandar/sergey-compute-class
sergey-shandar Sep 15, 2017
a68a635
Updating help and removing 'justdoit cmdlet
markcowl Sep 15, 2017
e3a5858
Make HalpAnalyzer robust over empty dependent assemblies
markcowl Sep 15, 2017
51e3ad9
Fix experiments project
markcowl Sep 15, 2017
a474e2b
Help fixes
markcowl Sep 15, 2017
b568a60
Update headers in help file
markcowl Sep 15, 2017
ad01778
Update build tools for package
markcowl Sep 15, 2017
b72cdd8
allow dealy signing of experiments assembly
markcowl Sep 15, 2017
3149c62
Update tools and module definition for websites experiments
markcowl Sep 15, 2017
e9b86e8
build fixes
markcowl Sep 15, 2017
e2cfbc1
Updates to websites git integration
markcowl Sep 15, 2017
e1b3725
Update help and add maml help for website cmdlets
markcowl Sep 15, 2017
54e74a6
Add help and ShouldProcess
markcowl Sep 15, 2017
55f1dd2
Merge branch 'sergey-compute' of github.com:sergey-shandar/azure-powe…
markcowl Sep 15, 2017
6553d22
Adding compute module
markcowl Sep 15, 2017
66fde51
Update module metadata
markcowl Sep 15, 2017
e372a86
Updating tools to not alter build for Experiments modules
markcowl Sep 15, 2017
7fb9bc3
Build updates for compute module
markcowl Sep 15, 2017
646a658
remove "Computer" suffix
sergey-shandar Sep 15, 2017
26c1ffe
Update compute definiton
markcowl Sep 15, 2017
6a2a9cc
Add simple validation test
markcowl Sep 16, 2017
d9527e5
updating tests
markcowl Sep 16, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,5 @@ FakesAssemblies/
/tools/*.dll
*.GhostDoc.xml
pingme.txt
groupMapping*.json
groupMapping*.json
.vscode/
23 changes: 20 additions & 3 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
Condition=" '$(Scope)' == 'ServiceManagement'"/>
<CmdletSolutionsToBuild Include=".\src\Storage\Storage.sln"
Condition=" '$(Scope)' == 'AzureStorage' "/>
<ExperimentalCmdletSolutionsToBuild Include=".\experiments\Websites.Experiments\Microsoft.Azure.Commands.Websites.Experiments.sln"/>
<SetupSln Include=".\setup\azurepowershell.sln" />
<StaticAnalysis Include=".\tools\StaticAnalysis\StaticAnalysis.sln" />
<LocalBuildTasks Include="$(LibraryToolsFolder)\BuildPackagesTask\Microsoft.Azure.Build.Tasks.sln" />
Expand Down Expand Up @@ -140,8 +141,8 @@
<NuGetRestoreConfigFile>$(MSBuildProjectDirectory)\restore.config</NuGetRestoreConfigFile>
<NuGetRestoreConfigSwitch>-ConfigFile &quot;$(NuGetRestoreConfigFile)&quot;</NuGetRestoreConfigSwitch>
<NuGetRestorePackageSetting>-PackagesDirectory $(LibraryNugetPackageFolder)</NuGetRestorePackageSetting>
<NuGetExperimentalCmdletPackages>-PackagesDirectory ".\experiments\Websites.Experiments\packages" </NuGetExperimentalCmdletPackages>
<NuGetLocalBuildTaskPackages>-PackagesDirectory $(LibraryToolsFolder)\BuildPackagesTask\packages</NuGetLocalBuildTaskPackages>

<PowerShellCommand Condition=" '$(PowerShellCommand)' == '' ">C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</PowerShellCommand>
</PropertyGroup>

Expand Down Expand Up @@ -171,6 +172,8 @@
<!-- Restore packages for static analysis-->
<Exec Command="$(NuGetCommand) restore %(StaticAnalysis.FullPath) $(NuGetRestoreConfigSwitch) $(NuGetRestorePackageSetting)"
ContinueOnError="false" />
<Exec Command="$(NuGetCommand) restore %(ExperimentalCmdletSolutionsToBuild.FullPath) $(NuGetRestoreConfigSwitch) $(NuGetExperimentalCmdletPackages)"
ContinueOnError="false" />
<!-- Restore packages for local build tasks-->
<Exec Command="$(NuGetCommand) restore %(LocalBuildTasks.FullPath) $(NuGetRestoreConfigSwitch) $(NuGetLocalBuildTaskPackages)"
ContinueOnError="false" />
Expand All @@ -196,7 +199,17 @@
Targets="Build"
Properties="Configuration=$(Configuration);Platform=Any CPU"
BuildInParallel="$(BuildInParallel)"
ContinueOnError="false" />
ContinueOnError="false" />

<MSBuild
Projects="@(ExperimentalCmdletSolutionsToBuild)"
Targets="Build"
Properties="Configuration=$(Configuration);Platform=Any CPU"
BuildInParallel="$(BuildInParallel)"
ContinueOnError="false" />

<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot; $(LibraryRoot)\experiments\Compute.Experiments\copy-dev.ps1 -Config $(Configuration) &quot;"
ContinueOnError="ErrorAndContinue" />

<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;. $(LibraryToolsFolder)\GenerateHelp.ps1 -ValidateMarkdownHelp -GenerateMamlHelp -BuildConfig $(Configuration) &quot;"
ContinueOnError="false"
Expand Down Expand Up @@ -322,7 +335,7 @@
<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;. $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) $(Scope) &quot;"/>
<!-- Copying shortcut to be signed -->
<Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psd1"
DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" Condition= " '$(NetCore)' == 'false' "/>
DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" Condition= " '$(NetCore)' == 'false' "/>
<Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psm1"
DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" Condition= " '$(NetCore)' == 'false' "/>
<Copy SourceFiles="$(LibraryRoot)tools\AzureRM.Netcore\AzureRM.Netcore.psd1"
Expand Down Expand Up @@ -397,6 +410,7 @@
DestinationFolder="$(LibraryRoot)tools\AzureRM" Condition= " '$(NetCore)' == 'false' "/>
<Copy SourceFiles="$(LibrarySourceFolder)\Package\$(Configuration)\AzureRM.Netcore.psd1"
DestinationFolder="$(LibraryRoot)tools\AzureRM" Condition= " '$(NetCore)' == 'true' "/>

</Target>

<Target Name="CodeSignInstaller">
Expand Down Expand Up @@ -460,6 +474,9 @@
<!-- Run checkin tests for each pull request -->
<Target Name="Test" DependsOnTargets="BeforeRunTests">
<Message Importance="high" Text="Running check in tests..." />
<!-- Run unit tests for AppService experimental cmdlets -->
<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;Import-Module $(MSBuildProjectDirectory)\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Profile\AzureRM.Profile.psd1; Import-Module $(MSBuildProjectDirectory)\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Resources\AzureRM.Resources.psd1; Import-Module $(MSBuildProjectDirectory)\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Websites\AzureRM.Websites.psd1; Import-Module $(MSBuildProjectDirectory)\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Websites.Experiments\AzureRM.Websites.Experiments.psd1; $(MSBuildProjectDirectory)\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Websites.Experiments\Run-UnitTests.ps1&quot;"
ContinueOnError="false"/>
<CallTarget Targets="InvokeXUnit"/>
</Target>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Import-Module .\..\..\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Profile\AzureRM.Profile.psd1
Import-Module .\..\..\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Resources\AzureRM.Resources.psd1
Import-Module .\..\..\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Network\AzureRM.Network.psd1
Import-Module .\..\..\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Compute\AzureRM.Compute.psd1
Import-Module .\..\..\experiments\Compute.Experiments\AzureRM.Compute.Experiments.psd1

# Login
$credentials = Get-Content -Path "C:\Users\sergey\Desktop\php-test.json" | ConvertFrom-Json
$clientSecret = ConvertTo-SecureString $credentials.clientSecret -AsPlainText -Force
$pscredentials = New-Object System.Management.Automation.PSCredential($credentials.applicationId, $clientSecret)
Login-AzureRmAccount -ServicePrincipal -Credential $pscredentials -TenantId $credentials.tenantId | Out-Null

$vmComputerPassword = $credentials.vmPassword;
$vmComputerUser = $credentials.vmUser;
$password = ConvertTo-SecureString $vmComputerPassword -AsPlainText -Force;
$vmCredential = New-Object System.Management.Automation.PSCredential ($vmComputerUser, $password);

New-AzVm -Name MyVM -Credential $vmCredential -WhatIf

# $vm = New-AzVm
# $vm = New-AzVm -Credential $vmCredential
$vm = New-AzVm -Name MyVM -Credential $vmCredential

$vm

# clean-up
Remove-AzureRmResourceGroup -ResourceId $vm.ResourceGroupId
126 changes: 126 additions & 0 deletions experiments/Compute.Experiments/AzureRM.Compute.Experiments.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
#
# Module manifest for module 'AzureRM.Compute.Experiments'
#
# Generated by: Microsoft
#
# Generated on: 9/1/2017
#

@{

# Script module or binary module file associated with this manifest.
RootModule = ".\AzureRM.Compute.Experiments.psm1"

# Version number of this module.
ModuleVersion = '1.0.7'

# Supported PSEditions
# CompatiblePSEditions = @()

# ID used to uniquely identify this module
GUID = 'b5a94030-df85-43fa-b581-54069f88428f'

# Author of this module
Author = 'Microsoft'

# Company or vendor of this module
CompanyName = 'Microsoft'

# Copyright statement for this module
Copyright = 'Microsoft'

# Description of the functionality provided by this module
Description = 'Azure Compute experiments for VM creation'

# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '5.0'

# Name of the Windows PowerShell host required by this module
# PowerShellHostName = ''

# Minimum version of the Windows PowerShell host required by this module
# PowerShellHostVersion = ''

# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# DotNetFrameworkVersion = ''

# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# CLRVersion = ''

# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(
@{ ModuleName = "AzureRM.Resources"; ModuleVersion = "4.3.1"; },
@{ ModuleName = "AzureRM.Network"; ModuleVersion = "4.3.1"; },
@{ ModuleName = "AzureRM.Compute"; ModuleVersion = "3.3.1"; }
)

# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()

# Format files (.ps1xml) to be loaded when importing this module
# FormatsToProcess = @()

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()

# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = 'New-AzVm'

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
# CmdletsToExport =

# Variables to export from this module
VariablesToExport = '*'

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = @()

# DSC resources to export from this module
# DscResourcesToExport = @()

# List of all modules packaged with this module
# ModuleList = @()

# List of all files packaged with this module
# FileList = @()

# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{

PSData = @{

# Tags applied to this module. These help with module discovery in online galleries.
# Tags = @()

# A URL to the license for this module.
# LicenseUri = ''

# A URL to the main website for this project.
# ProjectUri = ''

# A URL to an icon representing this module.
# IconUri = ''

# ReleaseNotes of this module
# ReleaseNotes = ''

} # End of PSData hashtable

} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

}
Loading