{"id":18137,"date":"2025-01-28T14:20:43","date_gmt":"2025-01-28T13:20:43","guid":{"rendered":"https:\/\/xoap.io\/?p=18137"},"modified":"2026-03-03T14:16:44","modified_gmt":"2026-03-03T13:16:44","slug":"how-to-remove-unused-images-in-azure-with-scripted-actions","status":"publish","type":"post","link":"https:\/\/xoap.io\/fr\/how-to-remove-unused-images-in-azure-with-scripted-actions\/","title":{"rendered":"Comment supprimer les images inutilis\u00e9es dans Azure \u00e0 l'aide d'actions script\u00e9es ?"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"18137\" class=\"elementor elementor-18137\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d22b75f e-con-full e-flex e-con e-parent\" data-id=\"d22b75f\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t<div class=\"elementor-element elementor-element-f167f5e e-con-full e-flex e-con e-child\" data-id=\"f167f5e\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-52890ae elementor-toc--content-ellipsis elementor-toc--minimized-on-tablet elementor-widget elementor-widget-table-of-contents\" data-id=\"52890ae\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;headings_by_tags&quot;:[&quot;h2&quot;,&quot;h3&quot;],&quot;container&quot;:&quot;main&quot;,&quot;exclude_headings_by_selector&quot;:[],&quot;marker_view&quot;:&quot;bullets&quot;,&quot;icon&quot;:{&quot;value&quot;:&quot;fas fa-arrow-right&quot;,&quot;library&quot;:&quot;fa-solid&quot;,&quot;rendered_tag&quot;:&quot;&lt;svg class=\\&quot;e-font-icon-svg e-fas-arrow-right\\&quot; viewBox=\\&quot;0 0 448 512\\&quot; xmlns=\\&quot;http:\\\/\\\/www.w3.org\\\/2000\\\/svg\\&quot;&gt;&lt;path d=\\&quot;M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z\\&quot;&gt;&lt;\\\/path&gt;&lt;\\\/svg&gt;&quot;},&quot;no_headings_message&quot;:&quot;No headings were found on this page.&quot;,&quot;minimize_box&quot;:&quot;yes&quot;,&quot;minimized_on&quot;:&quot;tablet&quot;,&quot;hierarchical_view&quot;:&quot;yes&quot;,&quot;min_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-widget_type=\"table-of-contents.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-toc__header\">\n\t\t\t\t\t\t<h4 class=\"elementor-toc__header-title\">\n\t\t\t\tTable of contents\t\t\t<\/h4>\n\t\t\t\t\t\t\t\t\t\t<div class=\"elementor-toc__toggle-button elementor-toc__toggle-button--expand\" role=\"button\" tabindex=\"0\" aria-controls=\"elementor-toc__52890ae\" aria-expanded=\"true\" aria-label=\"Ouvrir la table des mati\u00e8res\"><svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-chevron-down\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z\"><\/path><\/svg><\/div>\n\t\t\t\t<div class=\"elementor-toc__toggle-button elementor-toc__toggle-button--collapse\" role=\"button\" tabindex=\"0\" aria-controls=\"elementor-toc__52890ae\" aria-expanded=\"true\" aria-label=\"Fermer la table des mati\u00e8res\"><svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-chevron-up\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z\"><\/path><\/svg><\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<div id=\"elementor-toc__52890ae\" class=\"elementor-toc__body\">\n\t\t\t<div class=\"elementor-toc__spinner-container\">\n\t\t\t\t<svg class=\"elementor-toc__spinner eicon-animation-spin e-font-icon-svg e-eicon-loading\" aria-hidden=\"true\" viewBox=\"0 0 1000 1000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M500 975V858C696 858 858 696 858 500S696 142 500 142 142 304 142 500H25C25 237 238 25 500 25S975 237 975 500 763 975 500 975Z\"><\/path><\/svg>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-311f07f2 e-con-full e-flex e-con e-parent\" data-id=\"311f07f2\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-064193a elementor-widget elementor-widget-spacer\" data-id=\"064193a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a91d282 elementor-widget elementor-widget-text-editor\" data-id=\"a91d282\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In Azure environments, unused resources, such as<strong> orphaned virtual machine disk images<\/strong>, can build up over time. These unused images not only clutter your resource inventory but also result in unnecessary storage costs. Manually identifying and removing these images is a tedious and inefficient process, particularly in large-scale or dynamic setups. This article introduces a <strong>practical and automated solution<\/strong> for identifying and cleaning up unused images in Azure using <a href=\"https:\/\/xoap.io\/platformxo-scripted-actions\/\" target=\"_blank\" rel=\"noopener\">XOAP\u2019s Scripted Action module<\/a>. By following the outlined steps, you can simplify resource management, lower costs, and<strong> keep your Azure environment clean and well-organized<\/strong>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-deecc15 e-con-full e-flex e-con e-parent\" data-id=\"deecc15\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-bd20466 elementor-widget elementor-widget-spacer\" data-id=\"bd20466\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5167ee4 elementor-widget elementor-widget-heading\" data-id=\"5167ee4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Automating image cleanup in Azure with one script<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fdbae1c elementor-widget elementor-widget-spacer\" data-id=\"fdbae1c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-473adec elementor-widget elementor-widget-text-editor\" data-id=\"473adec\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\ud83d\udca1 The <strong>script identifies unused images in Azure<\/strong> using the following logic:<\/p><p><strong>Retrieve VMs:<\/strong> It fetches a list of all virtual machines (VMs) in the Azure subscription using the Get-AzVM -Status command. This ensures it has the most up-to-date information about the VMs and their status.<\/p><p><strong>Compare image IDs: <\/strong>The script iterates through each VM and checks its StorageProfile.ImageReference.Id property, which indicates the image used by the VM. For each image in the specified resource group (retrieved with Get-AzImage -ResourceGroupName), it compares the image&#8217;s ID against the ImageReference.Id of the VMs.<\/p><p><strong>Determine usage: <\/strong>If a match is found, the function Is-ImageInUse returns $true, indicating the image is currently in use by a VM. Moreover, if no match is found, the function returns $false, marking the image as unused.<\/p><p><strong>Output and actions: <\/strong>For each image, the script logs its name and whether it is in use. If the image is not in use, additional actions (such as deletion) can be implemented following this check.<\/p><p>This approach makes sure that only images with no active VM dependencies are identified as unused, preventing accidental deletion of critical resources. <strong>Removing unused images<\/strong> from your Azure subscription is a simple process with <a href=\"https:\/\/xoap.io\/\" target=\"_blank\" rel=\"noopener\">XOAP<\/a>. It<strong> involves just three easy steps:<\/strong><\/p><ol><li><span lang=\"de\">Add an Azure connection to your <a href=\"https:\/\/auth.xoap.io\/auth\/realms\/my.xoap.io\/protocol\/openid-connect\/registrations?client_id=portal&amp;response_type=code&amp;scope=openid%20email&amp;redirect_uri=https:\/\/my.xoap.io&amp;kc_locale=en\" target=\"_blank\" rel=\"noopener\">XOAP Workspace<\/a><\/span><\/li><li><span lang=\"de\">Create a Scripted Action with defined parameters<\/span><\/li><li><span lang=\"de\">Run the Scripted Action to remove unused images<\/span><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-892e1ef elementor-widget elementor-widget-spacer\" data-id=\"892e1ef\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7358f31 elementor-widget elementor-widget-heading\" data-id=\"7358f31\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Step 1: Add a Connection for your Azure Subscription\n<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-7c0a7d5 e-con-full e-flex e-con e-parent\" data-id=\"7c0a7d5\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3d41baf elementor-widget elementor-widget-text-editor\" data-id=\"3d41baf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>To begin, make sure your Azure subscription is connected to XOAP. If you haven\u2019t set up a connection yet, navigate to the Connections section in XOAP. Click the green plus (+) button to create a new connection. Follow the on-screen instructions to securely link your Azure subscription. Once the connection is successfully established, you can proceed to the next steps.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-357c8aa elementor-widget elementor-widget-spacer\" data-id=\"357c8aa\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7de6a5b elementor-widget elementor-widget-image\" data-id=\"7de6a5b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-1.webp\" data-elementor-open-lightbox=\"yes\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTc5MzUsInVybCI6Imh0dHBzOlwvXC94b2FwLmlvXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI1XC8wMVwvaG93LXRvLXNwaW4tdXAtbXVsdGlwbGUtdm1zLXdpdGgtc2NyaXB0ZWQtYWN0aW9ucy0xLndlYnAifQ%3D%3D\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-1-1024x576.webp\" class=\"attachment-large size-large wp-image-17935\" alt=\"Establish connection\" srcset=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-1-1024x576.webp 1024w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-1-300x169.webp 300w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-1-768x432.webp 768w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-1-1536x864.webp 1536w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-1.webp 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4ee42ec elementor-widget elementor-widget-spacer\" data-id=\"4ee42ec\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-334f31a elementor-widget elementor-widget-text-editor\" data-id=\"334f31a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span lang=\"hr\"><span lang=\"en-GB\">In the \u201cAdd New Connection\u201d slide-out panel, enter all the required connection details and click <\/span><span lang=\"de\">Save<\/span><span lang=\"en-GB\"> to complete the setup.<\/span><\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-63c526c elementor-widget elementor-widget-spacer\" data-id=\"63c526c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a45a5a0 elementor-widget elementor-widget-image\" data-id=\"a45a5a0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-2.webp\" data-elementor-open-lightbox=\"yes\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTc5MzQsInVybCI6Imh0dHBzOlwvXC94b2FwLmlvXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI1XC8wMVwvaG93LXRvLXNwaW4tdXAtbXVsdGlwbGUtdm1zLXdpdGgtc2NyaXB0ZWQtYWN0aW9ucy0yLndlYnAifQ%3D%3D\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-2-1024x576.webp\" class=\"attachment-large size-large wp-image-17934\" alt=\"Save the setup\" srcset=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-2-1024x576.webp 1024w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-2-300x169.webp 300w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-2-768x432.webp 768w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-2-1536x864.webp 1536w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-2.webp 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c5c44f7 elementor-widget elementor-widget-spacer\" data-id=\"c5c44f7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c0a04f3 elementor-widget elementor-widget-text-editor\" data-id=\"c0a04f3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>If you need additional guidance on adding a connection in XOAP, feel free to <a href=\"https:\/\/xoap.io\/docs\/getting-started-connections\/\" target=\"_blank\" rel=\"noopener\">visit our documentation page<\/a>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e8b475b elementor-widget elementor-widget-spacer\" data-id=\"e8b475b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-904405a elementor-widget elementor-widget-heading\" data-id=\"904405a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Step 2: Create your scripted action\n<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-543d4c3 elementor-widget elementor-widget-spacer\" data-id=\"543d4c3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-102640d elementor-widget elementor-widget-text-editor\" data-id=\"102640d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Next, navigate to Platform Management and select Scripted Actions. In the upper-right corner, click the green plus (+) button to create a new Scripted Action.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-314329b elementor-widget elementor-widget-spacer\" data-id=\"314329b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f3ce915 elementor-widget elementor-widget-image\" data-id=\"f3ce915\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-3.webp\" data-elementor-open-lightbox=\"yes\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTc5MzMsInVybCI6Imh0dHBzOlwvXC94b2FwLmlvXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI1XC8wMVwvaG93LXRvLXNwaW4tdXAtbXVsdGlwbGUtdm1zLXdpdGgtc2NyaXB0ZWQtYWN0aW9ucy0zLndlYnAifQ%3D%3D\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-3-1024x576.webp\" class=\"attachment-large size-large wp-image-17933\" alt=\"Add your scripted action\" srcset=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-3-1024x576.webp 1024w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-3-300x169.webp 300w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-3-768x432.webp 768w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-3-1536x864.webp 1536w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-3.webp 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2acd646 elementor-widget elementor-widget-spacer\" data-id=\"2acd646\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f243794 elementor-widget elementor-widget-text-editor\" data-id=\"f243794\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Give your Scripted Action a name and select the \u201c<strong>Remove-UnusedImages.ps1<\/strong>\u201d script from the resources. Optionally, you can add tags and a description to organize and document it. You can <a href=\"#unusedimages\"><strong>get the script at the end of this blog<\/strong><\/a>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c6274d2 elementor-widget elementor-widget-spacer\" data-id=\"c6274d2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-10fa26f elementor-widget elementor-widget-image\" data-id=\"10fa26f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-1.png\" data-elementor-open-lightbox=\"yes\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTgxNjYsInVybCI6Imh0dHBzOlwvXC94b2FwLmlvXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI1XC8wMVwvcmVtb3ZlLXVudXNlZC1pbWFnZXMtaW4tYXp1cmUtMS53ZWJwIn0%3D\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-1-1024x576.webp\" class=\"attachment-large size-large wp-image-18166\" alt=\"Remove unwanted Azure images in XOAP, Step 1\" srcset=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-1-1024x576.webp 1024w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-1-300x169.webp 300w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-1-768x432.webp 768w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-1-1536x864.webp 1536w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-1.webp 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0455405 elementor-widget elementor-widget-spacer\" data-id=\"0455405\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5b6a85f elementor-widget elementor-widget-text-editor\" data-id=\"5b6a85f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p lang=\"en-GB\" style=\"text-align: left;\">In the second step, define your parameters. Some parameters are mandatory and must be provided, while others are optional. These optional parameters allow you to customize the script.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f08adea elementor-widget elementor-widget-spacer\" data-id=\"f08adea\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b87b48b elementor-widget elementor-widget-image\" data-id=\"b87b48b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-2.webp\" data-elementor-open-lightbox=\"yes\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTgxNjUsInVybCI6Imh0dHBzOlwvXC94b2FwLmlvXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI1XC8wMVwvcmVtb3ZlLXVudXNlZC1pbWFnZXMtaW4tYXp1cmUtMi53ZWJwIn0%3D\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-2-1024x576.webp\" class=\"attachment-large size-large wp-image-18165\" alt=\"Remove unwanted Azure images in XOAP, Step 2\" srcset=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-2-1024x576.webp 1024w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-2-300x169.webp 300w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-2-768x432.webp 768w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-2-1536x864.webp 1536w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-2.webp 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a2ec12d elementor-widget elementor-widget-spacer\" data-id=\"a2ec12d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b41fd73 elementor-widget elementor-widget-text-editor\" data-id=\"b41fd73\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p lang=\"en-GB\" style=\"text-align: left;\"><strong>Explanation of Key Fields:<\/strong><\/p><p style=\"text-align: left;\"><strong><span lang=\"de\">DryRun<\/span><span lang=\"en-GB\">: <\/span><\/strong><span lang=\"en-US\">It allows you to simulate the execution of a script or command without actually making any changes to the system.<\/span><\/p><p style=\"text-align: left;\"><strong><span lang=\"de\">ResourceGroup<\/span><\/strong><span lang=\"en-GB\"><strong>:<\/strong> <\/span><span lang=\"en-US\">Azure Resource Group that a particular command should target. If this field is left empty, the command will be applied to all resource groups.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-048620c elementor-widget elementor-widget-spacer\" data-id=\"048620c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-98078c6 elementor-widget elementor-widget-spacer\" data-id=\"98078c6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-87a1c7b elementor-widget elementor-widget-heading\" data-id=\"87a1c7b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Step 3: Complete the process<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-be19090 elementor-widget elementor-widget-spacer\" data-id=\"be19090\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-512dd90 elementor-widget elementor-widget-text-editor\" data-id=\"512dd90\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: left;\"><span lang=\"hr\"><span lang=\"en-GB\">In the third step, select your connection and click <\/span><span lang=\"de\">Finish<\/span><span lang=\"en-GB\"> to complete the setup.<\/span><\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d9700fb elementor-widget elementor-widget-spacer\" data-id=\"d9700fb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4b41507 elementor-widget elementor-widget-image\" data-id=\"4b41507\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-7.webp\" data-elementor-open-lightbox=\"yes\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTc5MjksInVybCI6Imh0dHBzOlwvXC94b2FwLmlvXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI1XC8wMVwvaG93LXRvLXNwaW4tdXAtbXVsdGlwbGUtdm1zLXdpdGgtc2NyaXB0ZWQtYWN0aW9ucy03LndlYnAifQ%3D%3D\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-7-1024x576.webp\" class=\"attachment-large size-large wp-image-17929\" alt=\"Finish your scripted action setup\" srcset=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-7-1024x576.webp 1024w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-7-300x169.webp 300w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-7-768x432.webp 768w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-7-1536x864.webp 1536w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-spin-up-multiple-vms-with-scripted-actions-7.webp 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0457335 elementor-widget elementor-widget-spacer\" data-id=\"0457335\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cd15991 elementor-widget elementor-widget-text-editor\" data-id=\"cd15991\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: left;\"><span lang=\"en-GB\">The final step is to run the Scripted Action you created. Locate your Scripted Action in the table, open the action menu, and select <\/span><span lang=\"de\">Run<\/span><span lang=\"en-GB\">.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-65855e7 elementor-widget elementor-widget-spacer\" data-id=\"65855e7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2942a91 elementor-widget elementor-widget-image\" data-id=\"2942a91\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-3.webp\" data-elementor-open-lightbox=\"yes\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTgxNjQsInVybCI6Imh0dHBzOlwvXC94b2FwLmlvXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI1XC8wMVwvcmVtb3ZlLXVudXNlZC1pbWFnZXMtaW4tYXp1cmUtMy53ZWJwIn0%3D\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-3-1024x576.webp\" class=\"attachment-large size-large wp-image-18164\" alt=\"Remove unwanted Azure images in XOAP, Step 3\" srcset=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-3-1024x576.webp 1024w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-3-300x169.webp 300w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-3-768x432.webp 768w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-3-1536x864.webp 1536w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/remove-unused-images-in-azure-3.webp 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-98bf987 elementor-widget elementor-widget-spacer\" data-id=\"98bf987\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e03d21c elementor-widget elementor-widget-text-editor\" data-id=\"e03d21c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: left;\"><span lang=\"en-GB\">The Scripted Action will progress through the <\/span><span lang=\"de\">Queued<\/span><span lang=\"en-GB\"> and <\/span><span lang=\"de\">Running<\/span><span lang=\"en-GB\"> phases. Once completed, its status will change to <\/span><span lang=\"de\">Success<\/span><span lang=\"en-GB\"> and the<strong> unused images will be removed from Azure<\/strong>.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2e166b7 elementor-widget elementor-widget-spacer\" data-id=\"2e166b7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-efce394 elementor-widget elementor-widget-heading\" data-id=\"efce394\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Safeguard critical resources<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c79af75 elementor-widget elementor-widget-spacer\" data-id=\"c79af75\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e0df7e7 elementor-widget elementor-widget-text-editor\" data-id=\"e0df7e7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: left;\">Using XOAP&#8217;s Scripted Actions module to delete unused Azure images is a great way to <strong>optimize costs and improve your resource management<\/strong>. Its flexibility to target specific resource groups or default to all secures a comprehensive cleanup. Key considerations include accurate detection of unused images, verifying dependencies, maintaining detailed logs, and <strong>adhering to RBAC policies<\/strong>.<\/p><p style=\"text-align: left;\">Testing the script in a non-production environment and implementing a backup strategy further improve reliability. This approach boosts automation while safeguarding critical resources, making it<strong> a practical solution for Azure optimization<\/strong>.<\/p><p style=\"text-align: left;\"><a href=\"https:\/\/github.com\/xoap-io\/scripted-actions\/blob\/master\/azure-ps\/Remove-UnusedImages.ps1\" target=\"_blank\" rel=\"noopener\">Get the free script from our GitHub <\/a>(don&#8217;t forget to follow us!) and test it out <a href=\"https:\/\/auth.xoap.io\/auth\/realms\/my.xoap.io\/protocol\/openid-connect\/registrations?client_id=portal&amp;response_type=code&amp;scope=openid%20email&amp;redirect_uri=https:\/\/my.xoap.io&amp;kc_locale=en\" target=\"_blank\" rel=\"noopener\">in XOAP for free<\/a>. If you need help, <a href=\"https:\/\/xoap.io\/support\/\" target=\"_blank\" rel=\"noopener\">fill out the form here <\/a>and one of our experts will reach out.\u00a0<\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-acf5350 elementor-widget elementor-widget-text-editor\" data-id=\"acf5350\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<blockquote><p style=\"text-align: left;\"><strong>\ud83d\udcda Additional resources for Scripted Actions:\u00a0<\/strong><\/p><p style=\"text-align: left;\"><a href=\"https:\/\/xoap.io\/guide-to-scripted-actions\/\" target=\"_blank\" rel=\"noopener\"><b>\u2192 <\/b>Scripted Actions tutorial: Step by step<\/a><br \/><a href=\"https:\/\/xoap.io\/docs\/platformxo-scripted-actions\/\" target=\"_blank\" rel=\"noopener\"><b>\u2192<\/b><\/a><a href=\"https:\/\/xoap.io\/how-to-spin-up-multiple-vms-for-azure\/\" target=\"_blank\" rel=\"noopener\"> How to spin up multiple VMs for Azure with Scripted Actions<\/a><br \/><a href=\"https:\/\/xoap.io\/use-cases-for-scripted-actions\/\" target=\"_blank\" rel=\"noopener\"><b>\u2192 <\/b>Top 4 use cases for Scripted Actions<\/a><br \/><a href=\"https:\/\/xoap.io\/cross-platform-cloud-automation-with-scripted-actions\/\" target=\"_blank\" rel=\"noopener\"><b>\u2192 <\/b>Cross-platform cloud automation with Scripted Actions<\/a><br \/><a href=\"https:\/\/xoap.io\/docs\/platformxo-scripted-actions\/\" target=\"_blank\" rel=\"noopener\"><b>\u2192 <\/b>Scripted Actions documentation<\/a><\/p><\/blockquote>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-95a9bd8 e-flex e-con-boxed e-con e-child\" data-id=\"95a9bd8\" data-element_type=\"container\" data-e-type=\"container\" id=\"unusedimages\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;,&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-92b1238 e-con-full e-flex e-con e-child\" data-id=\"92b1238\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ce76179 elementor-hidden-mobile elementor-widget elementor-widget-image\" data-id=\"ce76179\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"570\" src=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/previewcode.webp\" class=\"attachment-large size-large wp-image-18195\" alt=\"\" srcset=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/previewcode.webp 828w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/previewcode-300x207.webp 300w, https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/previewcode-768x529.webp 768w\" sizes=\"(max-width: 828px) 100vw, 828px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-5846a60 e-con-full e-flex e-con e-child\" data-id=\"5846a60\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3634bd4 elementor-widget elementor-widget-heading\" data-id=\"3634bd4\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;none&quot;,&quot;_animation_tablet&quot;:&quot;fadeInDown&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/github.com\/xoap-io\/scripted-actions\/blob\/master\/azure-ps\/Remove-UnusedImages.ps1\" target=\"_blank\">Get the free script on GitHub \u2192<\/a><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a0e7d21 elementor-widget elementor-widget-heading\" data-id=\"a0e7d21\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;none&quot;,&quot;_animation_tablet&quot;:&quot;fadeInDown&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/github.com\/xoap-io\/scripted-actions\/blob\/master\/azure-ps\/Remove-UnusedImages.ps1\">Want us to deliver scripts directly to your inbox?<\/a><\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fc785f2 animated-slow elementor-widget__width-initial elementor-mobile-button-align-stretch elementor-invisible elementor-widget elementor-widget-form\" data-id=\"fc785f2\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;step_next_label&quot;:&quot;Next&quot;,&quot;step_previous_label&quot;:&quot;Previous&quot;,&quot;_animation&quot;:&quot;fadeIn&quot;,&quot;step_type&quot;:&quot;number_text&quot;,&quot;step_icon_shape&quot;:&quot;circle&quot;}\" data-widget_type=\"form.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<form class=\"elementor-form\" method=\"post\" name=\"newsletter\" aria-label=\"newsletter\">\n\t\t\t<input type=\"hidden\" name=\"post_id\" value=\"18137\"\/>\n\t\t\t<input type=\"hidden\" name=\"form_id\" value=\"fc785f2\"\/>\n\t\t\t<input type=\"hidden\" name=\"referer_title\" value=\"XOAP\" \/>\n\n\t\t\t\n\t\t\t<div class=\"elementor-form-fields-wrapper elementor-labels-\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-email elementor-field-group elementor-column elementor-field-group-email elementor-col-66 elementor-field-required\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-email\" class=\"elementor-field-label elementor-screen-only\">\n\t\t\t\t\t\t\t\tEmail\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"email\" name=\"form_fields[email]\" id=\"form-field-email\" class=\"elementor-field elementor-size-md  elementor-field-textual\" placeholder=\"Enter your email\" required=\"required\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-html elementor-field-group elementor-column elementor-field-group-field_b20a517 elementor-col-70\">\n\t\t\t\t\tBy subscribing, you accept the XOAP <a href=\"https:\/\/xoap.io\/data-protection\" target=\"_blank\"> privacy policy<\/a> and will receive product information from us.\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-recaptcha_v3 elementor-field-group elementor-column elementor-field-group-field_1eb3fa3 elementor-col-100 recaptcha_v3-bottomright\">\n\t\t\t\t\t<div class=\"elementor-field\" id=\"form-field-field_1eb3fa3\"><div class=\"elementor-g-recaptcha\" data-sitekey=\"6Ld61w4pAAAAAGfjGrvIDymMiqJJ6ghZ58D6BIro\" data-type=\"v3\" data-action=\"Form\" data-badge=\"bottomright\" data-size=\"invisible\"><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-group elementor-column elementor-field-type-submit elementor-col-100 e-form__buttons\">\n\t\t\t\t\t<button class=\"elementor-button elementor-size-md\" type=\"submit\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Yes, keep me updated!<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/button>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/form>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Apprenez \u00e0 nettoyer les images inutilis\u00e9es dans Azure en automatisant le processus \u00e0 l'aide de Scripted Actions. Simplifiez votre gestion des ressources et faites des \u00e9conomies gr\u00e2ce \u00e0 ce guide \u00e9tape par \u00e9tape.<\/p>","protected":false},"author":3,"featured_media":18178,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[105,174,109],"class_list":["post-18137","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-azure","tag-free-script","tag-scripted-actions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to remove unused images in Azure with Scripted Actions | XOAP<\/title>\n<meta name=\"description\" content=\"Learn how to remove unused images in Azure by automating the process with XOAP. Simplify your resource management and save costs!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/xoap.io\/fr\/how-to-remove-unused-images-in-azure-with-scripted-actions\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to remove unused images in Azure with Scripted Actions | XOAP\" \/>\n<meta property=\"og:description\" content=\"Learn how to remove unused images in Azure by automating the process with XOAP. Simplify your resource management and save costs!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/xoap.io\/fr\/how-to-remove-unused-images-in-azure-with-scripted-actions\/\" \/>\n<meta property=\"og:site_name\" content=\"XOAP\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/XOAP.io\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-28T13:20:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-03T13:16:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-remove-unused-images-in-azure.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mario\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to remove unused images in Azure with Scripted Actions | XOAP\" \/>\n<meta name=\"twitter:description\" content=\"Learn how to remove unused images in Azure by automating the process with XOAP. Simplify your resource management and save costs!\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-remove-unused-images-in-azure.png\" \/>\n<meta name=\"twitter:creator\" content=\"@xoap_io\" \/>\n<meta name=\"twitter:site\" content=\"@xoap_io\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/\"},\"author\":{\"name\":\"Mario\",\"@id\":\"https:\/\/xoap.io\/#\/schema\/person\/73e345356d7e3947ab547bb8e68ab7ce\"},\"headline\":\"How to remove unused images in Azure with Scripted Actions\",\"datePublished\":\"2025-01-28T13:20:43+00:00\",\"dateModified\":\"2026-03-03T13:16:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/\"},\"wordCount\":848,\"publisher\":{\"@id\":\"https:\/\/xoap.io\/#organization\"},\"image\":{\"@id\":\"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-remove-unused-images-in-azure.png\",\"keywords\":[\"azure\",\"free script\",\"scripted actions\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/\",\"url\":\"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/\",\"name\":\"How to remove unused images in Azure with Scripted Actions | XOAP\",\"isPartOf\":{\"@id\":\"https:\/\/xoap.io\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-remove-unused-images-in-azure.png\",\"datePublished\":\"2025-01-28T13:20:43+00:00\",\"dateModified\":\"2026-03-03T13:16:44+00:00\",\"description\":\"Learn how to remove unused images in Azure by automating the process with XOAP. Simplify your resource management and save costs!\",\"breadcrumb\":{\"@id\":\"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#primaryimage\",\"url\":\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-remove-unused-images-in-azure.png\",\"contentUrl\":\"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-remove-unused-images-in-azure.png\",\"width\":1024,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/xoap.io\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to remove unused images in Azure with Scripted Actions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/xoap.io\/#website\",\"url\":\"https:\/\/xoap.io\/\",\"name\":\"XOAP\",\"description\":\"Platform for IT infrastructure and workplace automation\",\"publisher\":{\"@id\":\"https:\/\/xoap.io\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/xoap.io\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/xoap.io\/#organization\",\"name\":\"XOAP\",\"url\":\"https:\/\/xoap.io\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/xoap.io\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/xoap.io\/wp-content\/uploads\/2023\/11\/XOAP-no-lettering-transparent_no-boarder.svg\",\"contentUrl\":\"https:\/\/xoap.io\/wp-content\/uploads\/2023\/11\/XOAP-no-lettering-transparent_no-boarder.svg\",\"width\":250,\"height\":90,\"caption\":\"XOAP\"},\"image\":{\"@id\":\"https:\/\/xoap.io\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/XOAP.io\",\"https:\/\/x.com\/xoap_io\",\"https:\/\/www.linkedin.com\/company\/xoap_io\",\"https:\/\/www.youtube.com\/@xoap_io\",\"https:\/\/github.com\/xoap-io\",\"https:\/\/www.instagram.com\/xoap_io\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/xoap.io\/#\/schema\/person\/73e345356d7e3947ab547bb8e68ab7ce\",\"name\":\"Mario\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/xoap.io\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4d268ca366dbe356ec4f55bb746c489ad8aa53a4a6108a9cab7bbf8c5875fa54?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4d268ca366dbe356ec4f55bb746c489ad8aa53a4a6108a9cab7bbf8c5875fa54?s=96&d=mm&r=g\",\"caption\":\"Mario\"},\"sameAs\":[\"http:\/\/xoap.io\"],\"url\":\"https:\/\/xoap.io\/fr\/author\/mario\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to remove unused images in Azure with Scripted Actions | XOAP","description":"Learn how to remove unused images in Azure by automating the process with XOAP. Simplify your resource management and save costs!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/xoap.io\/fr\/how-to-remove-unused-images-in-azure-with-scripted-actions\/","og_locale":"fr_FR","og_type":"article","og_title":"How to remove unused images in Azure with Scripted Actions | XOAP","og_description":"Learn how to remove unused images in Azure by automating the process with XOAP. Simplify your resource management and save costs!","og_url":"https:\/\/xoap.io\/fr\/how-to-remove-unused-images-in-azure-with-scripted-actions\/","og_site_name":"XOAP","article_publisher":"https:\/\/www.facebook.com\/XOAP.io","article_published_time":"2025-01-28T13:20:43+00:00","article_modified_time":"2026-03-03T13:16:44+00:00","og_image":[{"width":1024,"height":600,"url":"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-remove-unused-images-in-azure.png","type":"image\/png"}],"author":"Mario","twitter_card":"summary_large_image","twitter_title":"How to remove unused images in Azure with Scripted Actions | XOAP","twitter_description":"Learn how to remove unused images in Azure by automating the process with XOAP. Simplify your resource management and save costs!","twitter_image":"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-remove-unused-images-in-azure.png","twitter_creator":"@xoap_io","twitter_site":"@xoap_io","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#article","isPartOf":{"@id":"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/"},"author":{"name":"Mario","@id":"https:\/\/xoap.io\/#\/schema\/person\/73e345356d7e3947ab547bb8e68ab7ce"},"headline":"How to remove unused images in Azure with Scripted Actions","datePublished":"2025-01-28T13:20:43+00:00","dateModified":"2026-03-03T13:16:44+00:00","mainEntityOfPage":{"@id":"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/"},"wordCount":848,"publisher":{"@id":"https:\/\/xoap.io\/#organization"},"image":{"@id":"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#primaryimage"},"thumbnailUrl":"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-remove-unused-images-in-azure.png","keywords":["azure","free script","scripted actions"],"articleSection":["Tutorials"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/","url":"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/","name":"How to remove unused images in Azure with Scripted Actions | XOAP","isPartOf":{"@id":"https:\/\/xoap.io\/#website"},"primaryImageOfPage":{"@id":"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#primaryimage"},"image":{"@id":"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#primaryimage"},"thumbnailUrl":"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-remove-unused-images-in-azure.png","datePublished":"2025-01-28T13:20:43+00:00","dateModified":"2026-03-03T13:16:44+00:00","description":"Learn how to remove unused images in Azure by automating the process with XOAP. Simplify your resource management and save costs!","breadcrumb":{"@id":"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#primaryimage","url":"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-remove-unused-images-in-azure.png","contentUrl":"https:\/\/xoap.io\/wp-content\/uploads\/2025\/01\/how-to-remove-unused-images-in-azure.png","width":1024,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/xoap.io\/how-to-remove-unused-images-in-azure-with-scripted-actions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/xoap.io\/"},{"@type":"ListItem","position":2,"name":"How to remove unused images in Azure with Scripted Actions"}]},{"@type":"WebSite","@id":"https:\/\/xoap.io\/#website","url":"https:\/\/xoap.io\/","name":"XOAP","description":"Plate-forme pour l'infrastructure informatique et l'automatisation du lieu de travail","publisher":{"@id":"https:\/\/xoap.io\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/xoap.io\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/xoap.io\/#organization","name":"XOAP","url":"https:\/\/xoap.io\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/xoap.io\/#\/schema\/logo\/image\/","url":"https:\/\/xoap.io\/wp-content\/uploads\/2023\/11\/XOAP-no-lettering-transparent_no-boarder.svg","contentUrl":"https:\/\/xoap.io\/wp-content\/uploads\/2023\/11\/XOAP-no-lettering-transparent_no-boarder.svg","width":250,"height":90,"caption":"XOAP"},"image":{"@id":"https:\/\/xoap.io\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/XOAP.io","https:\/\/x.com\/xoap_io","https:\/\/www.linkedin.com\/company\/xoap_io","https:\/\/www.youtube.com\/@xoap_io","https:\/\/github.com\/xoap-io","https:\/\/www.instagram.com\/xoap_io"]},{"@type":"Person","@id":"https:\/\/xoap.io\/#\/schema\/person\/73e345356d7e3947ab547bb8e68ab7ce","name":"Mario","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/xoap.io\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4d268ca366dbe356ec4f55bb746c489ad8aa53a4a6108a9cab7bbf8c5875fa54?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d268ca366dbe356ec4f55bb746c489ad8aa53a4a6108a9cab7bbf8c5875fa54?s=96&d=mm&r=g","caption":"Mario"},"sameAs":["http:\/\/xoap.io"],"url":"https:\/\/xoap.io\/fr\/author\/mario\/"}]}},"_links":{"self":[{"href":"https:\/\/xoap.io\/fr\/wp-json\/wp\/v2\/posts\/18137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xoap.io\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xoap.io\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xoap.io\/fr\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/xoap.io\/fr\/wp-json\/wp\/v2\/comments?post=18137"}],"version-history":[{"count":60,"href":"https:\/\/xoap.io\/fr\/wp-json\/wp\/v2\/posts\/18137\/revisions"}],"predecessor-version":[{"id":30175,"href":"https:\/\/xoap.io\/fr\/wp-json\/wp\/v2\/posts\/18137\/revisions\/30175"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xoap.io\/fr\/wp-json\/wp\/v2\/media\/18178"}],"wp:attachment":[{"href":"https:\/\/xoap.io\/fr\/wp-json\/wp\/v2\/media?parent=18137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xoap.io\/fr\/wp-json\/wp\/v2\/categories?post=18137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xoap.io\/fr\/wp-json\/wp\/v2\/tags?post=18137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}