Git Product home page Git Product logo

armtester's Introduction

ArmTester

Test Azure Resource Manager templates

Create Certificate

$cert=New-SelfSignedCertificate -Subject "CN=Foo" -CertStoreLocation "Cert:\CurrentUser\My"  -KeyExportPolicy Exportable -KeySpec Signature
$bin = $cert.RawData
$base64Value = [System.Convert]::ToBase64String($bin)
$bin = $cert.GetCertHash()
$base64Thumbprint = [System.Convert]::ToBase64String($bin)
$keyid = [System.Guid]::NewGuid().ToString()
$jsonObj = @{customKeyIdentifier=$base64Thumbprint;keyId=$keyid;type="AsymmetricX509Cert";usage="Verify";value=$base64Value}
$keyCredentials=ConvertTo-Json @($jsonObj) | Out-File "keyCredentials.txt"

Get-ChildItem -path cert:\CurrentUser\My

Create an Application Registration

  • Azure Active Directory -> App registrations -> New application registration
  • Enter name -> Web app / API (Application type) -> Sign-on URL (any)
  • Copy the Application ID, that is the clientId required for the ArmTester
  • Select Manifest
  • Overwrite the current keyCredentials value of [] with the contents of the keyCredentials.txt file

Grant App Sufficient Permissions to Test Deployments

Create Blob Storage Container

  • Storage Accounts -> Add -> Name -> Create
  • Select storage account -> Blobs -> Add Container
  • Give the container a name -> Create
  • Select the new container -> Properties -> URL -> Copy
  • Select the storage account -> Shared access signature -> Generate SAS and connection string
  • Copy the SAS token (it must begin with ?)

The blob container URL and SAS token are required for deployments

armtester's People

Contributors

devdigital avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.