{"id":22382572,"url":"https://github.com/smokedlinq/powershell-az","last_synced_at":"2026-05-18T00:31:46.589Z","repository":{"id":114522709,"uuid":"362273190","full_name":"smokedlinq/powershell-az","owner":"smokedlinq","description":"PowerShell module for handling AzureCLI command output more like a native PowerShell command.","archived":false,"fork":false,"pushed_at":"2025-10-22T12:50:33.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-22T14:53:06.884Z","etag":null,"topics":["azure","azurecli","powershell"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smokedlinq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-27T22:54:08.000Z","updated_at":"2025-10-22T12:50:37.000Z","dependencies_parsed_at":"2025-03-26T19:51:40.317Z","dependency_job_id":null,"html_url":"https://github.com/smokedlinq/powershell-az","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/smokedlinq/powershell-az","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smokedlinq%2Fpowershell-az","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smokedlinq%2Fpowershell-az/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smokedlinq%2Fpowershell-az/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smokedlinq%2Fpowershell-az/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smokedlinq","download_url":"https://codeload.github.com/smokedlinq/powershell-az/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smokedlinq%2Fpowershell-az/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azurecli","powershell"],"created_at":"2024-12-05T00:13:30.488Z","updated_at":"2026-05-18T00:31:46.566Z","avatar_url":"https://github.com/smokedlinq.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# powershell-az\n\n![CI](https://github.com/smokedlinq/powershell-az/workflows/ci/badge.svg)\n[![PowerShellGallery](https://img.shields.io/powershellgallery/dt/powershell-az.svg)](https://www.powershellgallery.com/packages/powershell-az)\n\nPowerShell module for handling AzureCLI command output more like a native PowerShell command.\n\n## Invoke-AzCommand\n\nReplaces the `az` command with an alias to `Invoke-AzCommand` that changes the behavior of `az` from the AzureCLI in the following ways:\n\n- Output is parsed as json unless the `-o|--output` parameter is specified as something other than `json|jsonc` and the `-h|--help` parameter is not specified\n- Error stream output is parsed into `Write-Warning`, `Write-Error`, `Write-Verbose`, and `Write-Debug` streams, progress bars are ignored\n- Automatically injects the `--verbose` parameter if `$VerbosePreference` is not `SilentlyContinue`\n- Automatically injects the `--debug` parameter is `$DebugPreference` is not `SilentlyContinue`\n- Uses `Write-Host` to log the command if run from an Azure DevOps Pipeline or GitHub Actions workflow\n\n## ConvertTo-AzJson\n\nConverts an array, object, or hashtable to JSON and encodes it for use with the `az` parameters that take JSON input.\n\n```powershell\naz deployment group create -g {} -f {} `\n  -p param1=$(@{x=1;y=2} | ConvertTo-AzJson)\n\naz deployment group create -g {} -f {} `\n  -p param1=$(@{x=1},@{x=2} | ConvertTo-AzJson -AsArray)\n```\n\n## Out-AzJsonFile\n\nConverts an array, object, or hashtable to JSON and saves it in a file for use with the `az` parameters that take JSON input from a file.\n\n```powershell\naz rest -m POST -u {} -b \"@$(@{x=1;y=2} | Out-AzJsonFile)\"\n\naz rest -m POST -u {} -b \"@$(@{x=1},@{x=2} | Out-AzJsonFile -AsArray)\"\n```\n\n*Note: If the `-Path` parameter is not specified a temporary file is used.*\n\n## Out-AzDeploymentParameters\n\nConverts an object or hashtable to a ARM template deployment parameters file.\n\n```powershell\naz deployment group create -g {} -f {} `\n  -p \"@$(@{param1='value';param2=@('x','y');param3=$true;param5=@{x=1;y=2}} | Out-AzDeploymentParameters)\"\n```\n\n*Note: If the `-Path` parameter is not specified a temporary file is used.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmokedlinq%2Fpowershell-az","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmokedlinq%2Fpowershell-az","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmokedlinq%2Fpowershell-az/lists"}