This python3 script are taking a json files with some values as in-file. It run true them and creating outfiles with az commands to ve deployd in Azure This make it easy to have the same dopoyment in differt enviroments (account) and you will have the namespaces saved for the future.
Added a install.ps1 (powershell script) This script will log you in to Azure account and list your accounts. Will show the files created by the Python script and deployt it for you.
Added a menu for the future. Plan was to rebrand https://github.com/Swedeniron/Azure-DevOPS-automatic and add the functions to the install script in powershell insted. Got time feel free to help me out.
Maintainer Stellan Eriksson [email protected]
-
Change the _config.json to your location
-
Create a namespace.json file in ventures, insted of [email protected] you can use security-enabled groups for role assignments
-
Run the script "python templator.py"
-
The script are creating a folder structure _build/azure/namespace.json/
and adding a azure-resources.sh file -
To deploy the new namespace run the azure-resources.sh (or go to number 6) that are az commands Just check that you are connected to for the right environment dev/stage/prod You need to be Owner to be allowed to run the commands.
-
Open the powershell and run the ./installer.ps1 It will guide you true the install, it's a simple Y/N guide Wish you a Good deployment...
Copyright (c) 2019 Stellan Eriksson [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.