Skip to content

Commit

Permalink
fix: multiple fixes to different files
Browse files Browse the repository at this point in the history
  • Loading branch information
ssokolic committed Oct 28, 2024
1 parent 75c0392 commit a793bf4
Show file tree
Hide file tree
Showing 26 changed files with 307 additions and 588 deletions.
5 changes: 0 additions & 5 deletions azure-cli/storage/az-cli-delete-storage-account.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
The script uses the following Azure CLI command:
az storage account delete --name $StorageAccountName --resource-group $ResourceGroup
.PARAMETER Name
Defines the name of the Azure Storage Account.
Expand All @@ -19,8 +16,6 @@
.PARAMETER AccessTier
Defines the access tier of the Azure Storage Account.
.EXAMPLE
.\az-cli-create-storage-account.ps1 -AzStorageAccountName "MyStorageAccount" -AzResourceGroup "MyResourceGroup" -AzLocation "eastus" -AzStorageSku "Standard_LRS"
Expand Down
30 changes: 0 additions & 30 deletions azure-cli/vms/az-cli-create-image-gallery.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,39 +17,9 @@
.PARAMETER AzGalleryName
Defines the name of the Azure Image Gallery.
.PARAMETER AzSubscription
Name or ID of subscription.
.PARAMETER AzDebug
Increase logging verbosity to show all debug logs.
.PARAMETER AzOnlyShowErrors
Only show errors, suppressing warnings.
.PARAMETER AzOutput
Output format.
.PARAMETER AzQuery
JMESPath query string.
.PARAMETER AzVerbose
Increase logging verbosity.
.PARAMETER WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
.PARAMETER Confirm
Prompts you for confirmation before running the cmdlet.
.EXAMPLE
.\az-cli-create-image-gallery.ps1 -AzResourceGroup "MyResourceGroup" -AzLocation "eastus" -AzGalleryName "MyImageGallery"
.NOTES
Author: Your Name
Date: 2024-09-03
Version: 1.1
Requires: Azure CLI
.LINK
https://learn.microsoft.com/en-us/cli/azure/sig
#>
Expand Down
46 changes: 1 addition & 45 deletions azure-cli/vms/az-cli-create-image-version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,36 +46,9 @@
.PARAMETER AzTags
Defines the tags for the image version.
.PARAMETER AzDebug
Increase logging verbosity to show all debug logs.
.PARAMETER AzOnlyShowErrors
Only show errors, suppressing warnings.
.PARAMETER AzOutput
Output format.
.PARAMETER AzQuery
JMESPath query string.
.PARAMETER AzVerbose
Increase logging verbosity.
.PARAMETER WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
.PARAMETER Confirm
Prompts you for confirmation before running the cmdlet.
.EXAMPLE
.\az-cli-create-image-version.ps1 -AzResourceGroup "MyResourceGroup" -AzGallery "MyGallery" -AzImageDefinition "MyImageDefinition" -AzGalleryImageVersion "1.0.0" -AzTargetRegions "westus" -AzReplicaCount 1 -AzSubscriptionId "00000000-0000-0000-0000-000000000000" -AzVmName "MyVm"
.NOTES
Author: Your Name
Date: 2024-09-03
Version: 1.1
Requires: Azure CLI
.LINK
https://learn.microsoft.com/en-us/cli/azure/sig/image-version
#>
Expand Down Expand Up @@ -127,24 +100,7 @@ param(
[string]$AzStorageAccountType = "Standard_LRS",

[Parameter(Mandatory=$false)]
[hashtable]$AzTags,

[Parameter(Mandatory=$false)]
[switch]$AzDebug,

[Parameter(Mandatory=$false)]
[switch]$AzOnlyShowErrors,

[Parameter(Mandatory=$false)]
[string]$AzOutput,

[Parameter(Mandatory=$false)]
[string]$AzQuery,

[Parameter(Mandatory=$false)]
[switch]$AzVerbose,


[hashtable]$AzTags
)

# Splatting parameters for better readability
Expand Down
52 changes: 1 addition & 51 deletions azure-cli/vms/az-cli-create-vm-scale-set.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,39 +26,9 @@
.PARAMETER AzAdminUserName
Defines the admin username of the Azure Scale Set.
.PARAMETER AzSubscription
Name or ID of subscription.
.PARAMETER AzDebug
Increase logging verbosity to show all debug logs.
.PARAMETER AzOnlyShowErrors
Only show errors, suppressing warnings.
.PARAMETER AzOutput
Output format.
.PARAMETER AzQuery
JMESPath query string.
.PARAMETER AzVerbose
Increase logging verbosity.
.PARAMETER WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
.PARAMETER Confirm
Prompts you for confirmation before running the cmdlet.
.EXAMPLE
.\az-cli-create-vm-scale-set.ps1 -AzResourceGroup "MyResourceGroup" -AzScaleSetName "MyScaleSet" -AzOrchestrationMode "Flexible" -AzSkuImage "UbuntuLTS" -AzScaleSetInstanceCount 2 -AzAdminUserName "azureuser"
.NOTES
Author: Your Name
Date: 2024-09-03
Version: 1.1
Requires: Azure CLI
.LINK
https://learn.microsoft.com/en-us/cli/azure/vmss
#>
Expand Down Expand Up @@ -87,27 +57,7 @@ param(

[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$AzAdminUserName = 'azureuser',

[Parameter(Mandatory=$false)]
[string]$AzSubscription,

[Parameter(Mandatory=$false)]
[switch]$AzDebug,

[Parameter(Mandatory=$false)]
[switch]$AzOnlyShowErrors,

[Parameter(Mandatory=$false)]
[string]$AzOutput,

[Parameter(Mandatory=$false)]
[string]$AzQuery,

[Parameter(Mandatory=$false)]
[switch]$AzVerbose,


[string]$AzAdminUserName = 'azureuser'
)

# Splatting parameters for better readability
Expand Down
46 changes: 1 addition & 45 deletions azure-cli/vms/az-cli-delete-image-builder-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,9 @@
.PARAMETER AzResourceId
Defines the ID of the Azure Resource.
.PARAMETER AzDebug
Increase logging verbosity to show all debug logs.
.PARAMETER AzOnlyShowErrors
Only show errors, suppressing warnings.
.PARAMETER AzOutput
Output format.
.PARAMETER AzQuery
JMESPath query string.
.PARAMETER AzVerbose
Increase logging verbosity.
.PARAMETER WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
.PARAMETER Confirm
Prompts you for confirmation before running the cmdlet.
.EXAMPLE
.\az-cli-delete-image-builder-windows.ps1 -AzResourceGroup "MyResourceGroup" -AzImageBuildName "MyImageBuild" -AzAssignee "MyAssignee" -AzRoleDefinitionName "MyRoleDefinition" -AzSubscriptionID "00000000-0000-0000-0000-000000000000" -AzResourceId "00000000-0000-0000-0000-000000000000"
.NOTES
Author: Your Name
Date: 2024-09-03
Version: 1.1
Requires: Azure CLI
.LINK
https://learn.microsoft.com/en-us/cli/azure/vm
#>
Expand Down Expand Up @@ -88,24 +61,7 @@ param(

[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$AzResourceId = "00000000-0000-0000-0000-000000000000",

[Parameter(Mandatory=$false)]
[switch]$AzDebug,

[Parameter(Mandatory=$false)]
[switch]$AzOnlyShowErrors,

[Parameter(Mandatory=$false)]
[string]$AzOutput,

[Parameter(Mandatory=$false)]
[string]$AzQuery,

[Parameter(Mandatory=$false)]
[switch]$AzVerbose,


[string]$AzResourceId = "00000000-0000-0000-0000-000000000000"
)

# Splatting parameters for better readability
Expand Down
46 changes: 1 addition & 45 deletions azure-cli/vms/az-cli-enable-EntraID-login-linux-vm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,36 +20,9 @@
.PARAMETER AzVmName
Defines the name of the Azure Virtual Machine.
.PARAMETER AzDebug
Increase logging verbosity to show all debug logs.
.PARAMETER AzOnlyShowErrors
Only show errors, suppressing warnings.
.PARAMETER AzOutput
Output format.
.PARAMETER AzQuery
JMESPath query string.
.PARAMETER AzVerbose
Increase logging verbosity.
.PARAMETER WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
.PARAMETER Confirm
Prompts you for confirmation before running the cmdlet.
.EXAMPLE
.\az-cli-enable-EntraID-login-linux-vm.ps1 -AzResourceGroup "MyResourceGroup" -AzExtensionName "Microsoft.Azure.ActiveDirectory" -AzVmName "MyVmName"
.NOTES
Author: Your Name
Date: 2024-09-03
Version: 1.1
Requires: Azure CLI
.LINK
https://learn.microsoft.com/en-us/cli/azure/vm
#>
Expand All @@ -66,24 +39,7 @@ param(

[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$AzVmName = "myVmName",

[Parameter(Mandatory=$false)]
[switch]$AzDebug,

[Parameter(Mandatory=$false)]
[switch]$AzOnlyShowErrors,

[Parameter(Mandatory=$false)]
[string]$AzOutput,

[Parameter(Mandatory=$false)]
[string]$AzQuery,

[Parameter(Mandatory=$false)]
[switch]$AzVerbose,


[string]$AzVmName = "myVmName"
)

# Splatting parameters for better readability
Expand Down
46 changes: 1 addition & 45 deletions azure-cli/vms/az-cli-install-webserver-vm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,36 +29,9 @@
.PARAMETER AzOpenPorts
Defines the ports to open on the Azure Virtual Machine.
.PARAMETER AzDebug
Increase logging verbosity to show all debug logs.
.PARAMETER AzOnlyShowErrors
Only show errors, suppressing warnings.
.PARAMETER AzOutput
Output format.
.PARAMETER AzQuery
JMESPath query string.
.PARAMETER AzVerbose
Increase logging verbosity.
.PARAMETER WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
.PARAMETER Confirm
Prompts you for confirmation before running the cmdlet.
.EXAMPLE
.\az-cli-install-webserver-vm.ps1 -AzResourceGroup "MyResourceGroup" -AzVmName "MyVmName" -Script "Install-WindowsFeature -name Web-Server -IncludeManagementTools" -AzOpenPorts "80"
.NOTES
Author: Your Name
Date: 2024-09-03
Version: 1.1
Requires: Azure CLI
.LINK
https://learn.microsoft.com/en-us/cli/azure/vm
#>
Expand All @@ -79,24 +52,7 @@ param(

[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$AzOpenPorts = '80',

[Parameter(Mandatory=$false)]
[switch]$AzDebug,

[Parameter(Mandatory=$false)]
[switch]$AzOnlyShowErrors,

[Parameter(Mandatory=$false)]
[string]$AzOutput,

[Parameter(Mandatory=$false)]
[string]$AzQuery,

[Parameter(Mandatory=$false)]
[switch]$AzVerbose,


[string]$AzOpenPorts = '80'
)

# Splatting parameters for better readability
Expand Down
Loading

0 comments on commit a793bf4

Please sign in to comment.