Script Library

Boost your management, troubleshoot, and remediation capabilities with scripts created by experts in the IT community.

<< Back to Script Library

Tag: azure

(23 Scripts)
This script will test the connected virtual network of the machine, and validate if required outbound communication to use RDP Shortpath for public networks is open.
Version: 1.1.3  |   Created: 2022-10-05  |   Modified: 2022-10-06  |   Creator: Ton de Vreede  |   Downloads: 3
Finds resources, either for the resource group the VM the script is run against resides in or all resource groups in the subscription, that are not currently attached to anything.

Note that Citrix MCS machine catalogs may have resources which are not currently assigned but will be assigned when a VM is created in that catalog so should not be removed.
Version: 2.0.7  |   Created: 2022-09-17  |   Modified: 2022-09-18  |   Creator: Guy Leech  |   Downloads: 7
Lists current service health events in the subscription.
Version: 1.0.2  |   Created: 2022-08-30  |   Modified: 2022-08-31  |   Creator: Guy Leech  |   Downloads: 8
Retrieve the list of all current Azure emerging issues and show those which are marked as impacting the locations which are used in the resource group or subscription for the selected VM
Version: 1.0.3  |   Created: 2022-08-30  |   Modified: 2022-08-31  |   Creator: Guy Leech  |   Downloads: 11
Works at the resource group which contains the VM the script is run against
Version: 2.1.11  |   Created: 2022-08-01  |   Modified: 2022-09-18  |   Creator: Guy Leech  |   Downloads: 12
Show the Azure activity logs for the last number of (fractional) days.
Options to just show entries for the chosen AZ resource, the resource group it is in or the whole subscription.
Version: 1.1.16  |   Created: 2022-06-30  |   Modified: 2022-08-31  |   Creator: Guy Leech  |   Downloads: 9
Create a number of Azure VMs using the selected machine as a template in terms of machine, disk sizes/types and network interfaces.
If the machine name contains # characters, these will be replaced, with leading zeroes, by the next available machine name
It does not clone or copy any disks other than any gallery image the original was built from.
If domain details are provided, it will attempt to join the given domain when creation is complete.
Multiple tags can be added in a comma separated list of the form Tag name=Tag text
Version: 1.4.23  |   Created: 2022-06-27  |   Modified: 2022-10-07  |   Creator: Guy Leech  |   Downloads: 3
Create the credential files (locally) required by the Azure script actions.
Stored in %ALLUSERSPROFILE%ControlUpScriptingSupport but the client secret stored in the files can only be decrypted by the Windows user that created that file.
The files created contain the tenant id in the file name so that a single Windows user can have credential files for multiple tenants. Original Azure scripts did have this feature and the files contained the tenant id so only a single file can exist - this script creates both credential files so both new and old Azure script actions can be run.
The script willl overwrite any existing credential files for the user and tenant.
Version: 1.1.15  |   Created: 2022-02-24  |   Modified: 2022-03-09  |   Creator: Guy Leech  |   Downloads: 16
Change the type of disk assigned to the Azure VM. Valid disk types are:

Standard_LRS
Premium_LRS
StandardSSD_LRS
UltraSSD_LRS
Premium_ZRS
StandardSSD_ZRS

Note that costs of this VM once updated could be very different.
Version: 2.3.5  |   Created: 2022-01-19  |   Modified: 2022-03-17  |   Creator: Guy Leech  |   Downloads: 13
Get and display network info for specified Azure machine
Version: 3.9.16  |   Created: 2021-12-10  |   Modified: 2022-10-23  |   Creator: Guy Leech  |   Downloads: 28
Perform a power action.
A wait time of zero will not wait for the action to complete.
Version: 2.7.14  |   Created: 2021-11-25  |   Modified: 2022-03-17  |   Creator: Guy Leech  |   Downloads: 19
Change the size of the Azure VM. Specify the name, or partial name, of a VM size such as B2s but note that the name of the new size must be unique.
IF THE TARGET MACHINE IS ON THIS SCRIPT CAN TRIGGER A RESTART!

Note that costs of this VM once updated could be very different.
Version: 2.3.13  |   Created: 2021-11-09  |   Modified: 2022-03-17  |   Creator: Guy Leech  |   Downloads: 16
Add a public IP address if not already assisgned, launch mstsc to the public IP address, wait for mstsc to exit and then remove public IP address (if script assigned it)
Version: 3.2.12  |   Created: 2021-11-01  |   Modified: 2022-10-06  |   Creator: Guy Leech  |   Downloads: 14
Boot diagnostics must be enabled in order for screenshots of Azure VM consoles to be produced
Version: 2.5.9  |   Created: 2021-10-13  |   Modified: 2022-03-17  |   Creator: Guy Leech  |   Downloads: 9
Displays the console of the selected machine or stores the console image into a folder defined in the script action arguments
Version: 2.10.29  |   Created: 2021-09-17  |   Modified: 2022-03-17  |   Creator: Guy Leech  |   Downloads: 14
This Azure Script Based Action allows you to to retrieve detailed information on actual costs of selected VM in the Azure Subscription your Service Principal has access to.
README: https://support.controlup.com/hc/en-us/articles/360011378518#h_01EE8GMB35X9Y20MXV22N1GGE9
Version: 1.1.2  |   Created: 2020-12-25  |   Modified: 2020-12-27  |   Creator: Esther Barthel, MSc  |   Downloads: 56
This Azure Script Based Action allows you to to retrieve detailed information on actual and forecast costs of the Azure Subscription your Service Principal has access too.
README: https://support.controlup.com/hc/en-us/articles/360011378518#h_01EE8GMB35X9Y20MXV22N1GGE9
Version: 1.1.2  |   Created: 2020-12-06  |   Modified: 2020-12-13  |   Creator: Esther Barthel, MSc  |   Downloads: 34
This Azure Script Based Action allows you to to retrieve detailed information on actual and forecast costs of the Azure Subscription your Service Principal has access too.

README: https://support.controlup.com/hc/en-us/articles/360011378518#h_01EE8GMB35X9Y20MXV22N1GGE9
Version: 1.1.2  |   Created: 2020-12-06  |   Modified: 2020-12-13  |   Creator: Esther Barthel, MSc  |   Downloads: 48
Gets the AVD Sessions hosts in the same pool as the target machine/session.
Version: 2.4.8  |   Created: 2020-07-10  |   Modified: 2022-08-31  |   Creator: Esther Barthel, MSc  |   Downloads: 30
This AVD Script Based Action allows you to send a message to a user, logged on to a AVD Desktop or RemoteApp session.
Version: 2.4.7  |   Created: 2020-06-13  |   Modified: 2022-08-31  |   Creator: Esther Barthel, MSc  |   Downloads: 33
Sets the Drain mode of an AVD Session Host to True or False
Version: 2.4.10  |   Created: 2020-05-23  |   Modified: 2022-08-31  |   Creator: Esther Barthel, MSc  |   Downloads: 35
Get Azure Virtual Desktop Session Host information of the machine/session.
Version: 2.10.11  |   Created: 2020-05-19  |   Modified: 2022-08-31  |   Creator: Esther Barthel, MSc  |   Downloads: 42
Gets the details of the AVD Hostpool the target machine/session is in.
Requires credentials created with scrip AZ Store Azure Credentials
Version: 2.11.17  |   Created: 2020-05-18  |   Modified: 2022-08-31  |   Creator: Esther Barthel, MSc  |   Downloads: 40