Skip to content

Commit e55a2e7

Browse files
committed
update
1 parent 4537a7e commit e55a2e7

File tree

3 files changed

+233
-0
lines changed

3 files changed

+233
-0
lines changed

AutoRestConfiguration.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### AutoRest Configuration
2+
> see https://aka.ms/autorest
3+
4+
``` yaml
5+
branch: main
6+
require:
7+
- $(this-folder)/../../readme.azure.noprofile.md
8+
input-file:
9+
- $(repo)/specification/advisor/resource-manager/Microsoft.Advisor/stable/2017-04-19/advisor.json
10+
11+
title: Aks
12+
module-version: 0.1.0
13+
subject-prefix: $(service-name)
14+
identity-correction-for-post: true
15+
```
16+
17+
18+
find-module Az.Automation -Repository PSgallery -AllVersions
19+

Az.Module.txt

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
Az.Accounts
2+
Az.ADDomainServices
3+
Az.Advisor
4+
Az.Aks
5+
Az.AlertsManagement
6+
Az.AnalysisServices
7+
Az.ApiManagement
8+
Az.AppConfiguration
9+
Az.ApplicationInsights
10+
Az.Attestation
11+
Az.Automation
12+
Az.BareMetal
13+
Az.Batch
14+
Az.Billing
15+
Az.Blueprint
16+
Az.BotService
17+
Az.Cdn
18+
Az.ChangeAnalysis
19+
Az.CloudService
20+
Az.CognitiveServices
21+
Az.Communication
22+
Az.Compute
23+
Az.Confluent
24+
Az.ConnectedKubernetes
25+
Az.ConnectedMachine
26+
Az.ConnectedNetwork
27+
Az.ContainerInstance
28+
Az.ContainerRegistry
29+
Az.CosmosDB
30+
Az.CostManagement
31+
Az.CustomLocation
32+
Az.CustomProviders
33+
Az.DataBox
34+
Az.DataBoxEdge
35+
Az.Databricks
36+
Az.Datadog
37+
Az.DataFactory
38+
Az.DataLakeAnalytics
39+
Az.DataLakeStore
40+
Az.DataMigration
41+
Az.DataProtection
42+
Az.DataShare
43+
Az.DedicatedHsm
44+
Az.DeploymentManager
45+
Az.DesktopVirtualization
46+
Az.DeviceProvisioningServices
47+
Az.DevSpaces
48+
Az.DevTestLabs
49+
Az.DigitalTwins
50+
Az.DiskPool
51+
Az.Dns
52+
Az.DnsResolver
53+
Az.EdgeOrder
54+
Az.Elastic
55+
Az.EventGrid
56+
Az.EventHub
57+
Az.FrontDoor
58+
Az.Functions
59+
Az.GuestConfiguration
60+
Az.HanaOnAzure
61+
Az.HDInsight
62+
Az.HealthBot
63+
Az.HealthcareApis
64+
Az.HPCCache
65+
Az.ImageBuilder
66+
Az.ImportExport
67+
Az.IotCentral
68+
Az.IotHub
69+
Az.KeyVault
70+
Az.KubernetesConfiguration
71+
Az.Kusto
72+
Az.LabServices
73+
Az.LogicApp
74+
Az.Logz
75+
Az.MachineLearning
76+
Az.Maintenance
77+
Az.ManagedServiceIdentity
78+
Az.ManagedServices
79+
Az.ManagementPartner
80+
Az.Maps
81+
Az.MariaDb
82+
Az.Marketplace
83+
Az.MarketplaceOrdering
84+
Az.Media
85+
Az.Migrate
86+
Az.MixedReality
87+
Az.Monitor
88+
Az.MonitoringSolutions
89+
Az.MySql
90+
Az.NetAppFiles
91+
Az.Network
92+
Az.NotificationHubs
93+
Az.OperationalInsights
94+
Az.Peering
95+
Az.PolicyInsights
96+
Az.Portal
97+
Az.PostgreSql
98+
Az.PowerBIEmbedded
99+
Az.PrivateDns
100+
Az.ProviderHub
101+
Az.Purview
102+
Az.Quota
103+
Az.RecoveryServices
104+
Az.RedisCache
105+
Az.RedisEnterpriseCache
106+
Az.Relay
107+
Az.Reservations
108+
Az.ResourceGraph
109+
Az.ResourceMover
110+
Az.Resources
111+
Az.Search
112+
Az.Security
113+
Az.SecurityInsights
114+
Az.ServiceBus
115+
Az.ServiceFabric
116+
Az.SignalR
117+
Az.SpringCloud
118+
Az.Sql
119+
Az.SqlVirtualMachine
120+
Az.StackEdge
121+
Az.StackHCI
122+
Az.Storage
123+
Az.StorageSync
124+
Az.StreamAnalytics
125+
Az.Subscription
126+
Az.Support
127+
Az.Synapse
128+
Az.TimeSeriesInsights
129+
Az.TrafficManager
130+
Az.VMware
131+
Az.Websites
132+
Az.WindowsIotServices

GetAzModule.ps1

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
[CmdletBinding()]
2+
param (
3+
[Parameter(Mandatory=$false,
4+
HelpMessage="The current path as the value of the path parameter if not passed Path parameter."
5+
)]
6+
[string]
7+
$Path,
8+
9+
[Parameter(Mandatory=$false,
10+
HelpMessage="The Path parameter and the OutPath parameter are the same if not passed OutPath parameter."
11+
)]
12+
[string]
13+
$OutPath
14+
)
15+
try {
16+
if (!$PSBoundParameters.ContainsKey("Path")) {
17+
$Path = $PSScriptRoot
18+
}
19+
20+
if (!$PSBoundParameters.ContainsKey("OutPath")) {
21+
$OutPath = $PSScriptRoot
22+
}
23+
24+
# $DataOfAzModules = (Get-ChildItem -Name -Path $Path)
25+
$DataOfAzModules = Get-Content -Path "D:\_Code\Script\Az.Module.txt"
26+
27+
function Get-AzModuleDataFunction{
28+
param (
29+
$AzModuleData
30+
)
31+
$OutPutTitle = @("Module Name,Module Version,Release Date,Cmdlet Name,Cmdlet Type,Az Version")
32+
$parameters = @{
33+
TypeName = 'System.Collections.Generic.HashSet[string]'
34+
ArgumentList = ([string[]]$OutPutTitle, [System.StringComparer]::OrdinalIgnoreCase)
35+
}
36+
$AzModuleOutPut = New-Object @parameters
37+
38+
foreach ($AzModule in $AzModuleData){
39+
# $AzModuleOutPut = New-Object PSObject
40+
# Add-Member -InputObject $AzModuleOutPut -MemberType NoteProperty -Name Module -Value $NULL
41+
# Add-Member -InputObject $AzModuleOutPut -MemberType NoteProperty -Name ModuleVersion -Value $NULL
42+
# Add-Member -InputObject $AzModuleOutPut -MemberType NoteProperty -Name ReleaseDate -Value $NULL
43+
# Add-Member -InputObject $AzModuleOutPut -MemberType NoteProperty -Name AzVersion -Value $NULL
44+
# Add-Member -InputObject $AzModuleOutPut -MemberType NoteProperty -Name CmdletName -Value $NULL
45+
# Add-Member -InputObject $AzModuleOutPut -MemberType NoteProperty -Name CmdletType -Value $NULL
46+
47+
$ModuleName = $AzModule
48+
$ModuleVersion = ""
49+
$ReleaseDate = ""
50+
$CmdletName = ""
51+
$CmdletType = ""
52+
$AzVersion = ""
53+
54+
$ModuleList = find-module $ModuleName -Repository PSgallery -AllVersions
55+
$CmdLetData = Get-Command -Module $ModuleName
56+
57+
foreach ($item in $CmdLetData){
58+
$ModuleVersion = $ModuleList[0].Version
59+
$ReleaseDate = $ModuleList[0].PublishedDate
60+
$CmdletName = $item.Name
61+
$CmdletType = $item.CommandType
62+
$AzVersion = $item.Version
63+
64+
$null = $AzModuleOutPut.Add("$ModuleName,$ModuleVersion,$ReleaseDate,$CmdletName,$CmdletType,$AzVersion")
65+
}
66+
}
67+
68+
$designFile = 'AzModuleDesign.txt'
69+
$outFilePath = Join-Path $OutPath $designFile
70+
$AzModuleOutPut | Out-File -FilePath $outFilePath -Append -ErrorAction Stop
71+
72+
Write-Host -ForegroundColor Green "Genereated $designFile completed in $OutPath. path."
73+
return
74+
}
75+
76+
Get-AzModuleDataFunction -AzModuleData $DataOfAzModules
77+
78+
}
79+
catch {
80+
throw
81+
return
82+
}

0 commit comments

Comments
 (0)