Граф коммитов

388 Коммитов

Автор SHA1 Сообщение Дата
Engin Polat a70d613554
Fix documentation and import module names (#357)
* fixing documentation
2024-01-31 08:28:54 -08:00
Engin Polat a57787f2ad
updating formatting configuration (#349)
* formatting documents based on the editor configuration, and relaxing max-length linter rules

* formatting documents based on the editor configuration

* formatting documents

* bumping resource providers to latest releases

* formatting document

* fixing linter issues

* formatting documents
2023-09-22 15:40:20 -07:00
Engin Polat 42d674cb36
removing custom rules for megalinter (#350) 2023-09-22 15:38:35 -07:00
Engin Polat b9a287e971
fixing bicep linter issues (#351) 2023-09-22 15:38:19 -07:00
Engin Polat 920eb6c17b
adding confirm-account cmdlet (#352)
* adding confirm-account cmdlet

* removing unneeded examples

* adding negative test
2023-09-22 15:38:03 -07:00
Engin Polat 26066ebcec
updating codespace vscode configuration (#348)
* updating recommended extensions to sync with codespace configuration

* bumping features to latest versions

* adding missing powershell modules

* updating devcontainer configuration to newest version
2023-09-18 15:00:24 -07:00
Engin Polat 5eff568ede
return from the script after cleanup, if -Clean flag provided (#347) 2023-09-18 14:59:58 -07:00
Engin Polat d187d15794
creating initial contributing guideline (#346)
* creating initial contributing guideline

* updating contributing guideline

* addressing pr comments
2023-09-18 14:59:21 -07:00
Engin Polat b9e9f2a1eb
adding search service module (#345)
* creating search service module

* updating pipelines for search service module

* fixing test issues

* fixing bicep linter issues
2023-09-15 10:12:59 -07:00
Hattan Shobokshi 74b9161baf
Update BenchPress.Azure.psd1
Bumping Module Version to 0.2.2
2023-09-07 18:16:35 -07:00
Hattan Shobokshi 2676e87a82
Merge pull request #344 from Azure/managed_identity_auth
Managed identity auth
2023-09-07 18:08:29 -07:00
Hattan Shobokshi e52de0a305 Adding back change to use sub name with Set-AzContext 2023-09-08 00:56:48 +00:00
Hattan Shobokshi c2d6608bd7 Combine both required and optiona get environment variable functions. 2023-09-08 00:17:18 +00:00
Hattan Shobokshi 9a616bd0f1 Adding tests for Get-RequiredEnv var and cleaning up connect account tests 2023-09-07 19:58:17 +00:00
Hattan Shobokshi 49a53052d0 Changing Write-Error and exit to throw in utility Function 2023-09-07 19:57:22 +00:00
Hattan Shobokshi bffb21633f Modifying Set-AzContext to use Subscription Id 2023-09-07 19:57:00 +00:00
Hattan Shobokshi d0d101bf05 Fixing minor formatting issues in connect-account.ps1 2023-09-07 16:29:47 +00:00
Hattan Shobokshi 4b4e915a5a removing duplicate connect-account test 2023-09-07 16:22:15 +00:00
Hattan Shobokshi b246714790 Moving Get-AzSubscription mock to BeforeEach 2023-09-07 15:54:06 +00:00
Hattan Shobokshi 80aff6bc07 Adding Managed Identity to docs and comments 2023-09-07 15:38:49 +00:00
Hattan Shobokshi c7d46ed7ef Change to only pull req env vars for sp login 2023-09-06 23:40:14 +00:00
Hattan Shobokshi 949ac18058 Added changes to support logging in using Managed Identity and also tests to cover. 2023-09-06 23:14:51 +00:00
marclerwick 7f485ab6ec
#338 Update PostgreSQL Flexible Server Version
* Updated the PostgreSQL bicep file and tests.

* Fixing megalinter outdated resource definitions.
2023-05-02 09:38:09 -07:00
marclerwick ccd09a9e35
#304 Add functionality that allows for checking whether a property key exists without checking a value.
* Added support for testing only for the presence of a key without testing for a value.
Updated the Confirm-Resource tests.

* Added a negative index test.
2023-04-17 10:03:16 -07:00
Ozi Boms 8ce3d8854d
Update Getting Started Documentation (#335)
* init

* Updating files based on code review.

---------

Co-authored-by: Caroline Quigg <caquigg@microsoft.com>
Co-authored-by: Marc Lerwick <marclerwick@microsoft.com>
2023-04-14 14:03:46 -07:00
Caroline Quigg 4f4a940696
Basic unit tests for Generator project (#324)
* Add unit test project for Generator solution
2023-04-14 12:31:05 -07:00
Mary Sha a1595f9626
Parameter and Variable Resolution (#323)
* separate out into method and call for dependson unpacking

* Initial code to extract from mulitiple "DependsOn" entries

* Rename method and vars and add some descriptive comments

* Updating the code to work with other code that will be introduced.

* Minor updates to comments and code.

* Minor update.

* Cleanup a lot and add more descriptive comments

* Some renaming cause i can never decide

* Remove launchSettings

* Remove no longer needed if

* Use default value key

* set resolvedvalue to null if defaultvalue does not exist

* resolve csharpier

* Some cleanup

* Simplify regex

* Potential solution for adding quotes to resolved values that do not contian arm template functions

* Typo with name

* Reuse square bracket pattern and remove parantheses regex

* Typo remove double and

---------

Co-authored-by: Marc Lerwick <marclerwick@microsoft.com>
2023-04-14 10:13:44 -07:00
marclerwick 815402fb25
#332 Fixing the `ci.yml` PS Gallery import to import from the local PS Gallery. 2023-04-13 14:35:50 -07:00
marclerwick 02308b6ca6
#255 PostgreSQL Flexible Server Support
* Added support for PostgreSQL Flexible Server.

* Fixed variable names in the .md

* Updating example tests to use -BeSuccessful

* Adding the PostgreSqlFlexibleServer resource type to the C# code.

* Minor fixex based on inconsistencies work items.

* Removing indents from multi-line

* Adding sourcing for Confirm-PostgreSqlFlexibleServer to Get-ResourceByType

* Resolving inconsistencies with variable scoping in the examples when there is only a single Describe block.

* Adding resourceid to Get-ResourceByType unit test.

* Fixing the PS installation link.
2023-04-13 10:47:47 -07:00
Hattan Shobokshi 36cfe44317
Merge pull request #331 from Azure/feature/cd-psgallery-build
adding job dependencies in ps gallery cd workflow
2023-04-12 14:39:07 -07:00
Hattan Shobokshi 97893ea54c adding job dependencies in ps gallery cd workflow 2023-04-12 14:37:42 -07:00
Hattan Shobokshi b6e239f3a0
Merge pull request #330 from Azure/feature/cd-psgallery-build
adding build-modules job to psgallery cd workflow
2023-04-12 14:35:44 -07:00
Hattan Shobokshi 301a0a99ee adding build-modules job to psgallery cd workflow 2023-04-12 14:33:44 -07:00
Hattan Shobokshi 5ec976fc01
Merge pull request #329 from Azure/version
Bumping version to 0.2.1
2023-04-12 14:28:43 -07:00
Hattan Shobokshi a7bb7ad947
Merge branch 'main' into version 2023-04-12 14:27:01 -07:00
github-actions ad8f192727 version: updating version 2023-04-12 21:24:30 +00:00
Hattan Shobokshi f678bf6836
Merge pull request #328 from Azure/feature/module_version_dispatch
adding workflow_displatch to module versioning workflow
2023-04-12 14:23:30 -07:00
Hattan Shobokshi dea7d13636 adding workflow_displatch to module versioning workflow 2023-04-12 14:21:35 -07:00
marclerwick 9522aff628
#312 Iterate through dependsOn when creating extraProperties dictionary in Generator code (#320)
* Initial code to extract from mulitiple "DependsOn" entries

* Updating the code to work with other code that will be introduced.

* Minor updates to comments and code.

* Minor update.

* Trying to make Megalinter happy.

* Grammar.

* Update BenchPress/Generators/AzureDeploymentImporter.cs

Co-authored-by: Ozi Boms <zboms123@gmail.com>

* Update BenchPress/Generators/AzureDeploymentImporter.cs

Co-authored-by: Ozi Boms <zboms123@gmail.com>

* Update BenchPress/Generators/AzureDeploymentImporter.cs

Co-authored-by: Ozi Boms <zboms123@gmail.com>

* Update BenchPress/Generators/AzureDeploymentImporter.cs

Co-authored-by: Ozi Boms <zboms123@gmail.com>

* Lint fixes and github suggestion fixes.

* Lint fixes.

* Lint fixes.

* Lint fixes.

* Writing ugly code to make csharpier happy.

* Writing even uglier code to make csharpier happy.

* It is unbelieveable how ugly this code is now.

* Let's make it uglier!

---------

Co-authored-by: Ozi Boms <zboms123@gmail.com>
2023-04-11 16:16:43 -07:00
Ozi Boms 52981fa017
init (#322) 2023-04-11 14:30:06 -07:00
marclerwick f8a0be2058
#303 Ensure contributor's Read Me includes instructions for adding examples. (#310)
* Adding additional information on how to contribute to the code base including coding standards and step-by-step file changes.

* Spelling correction.

* Grammar update to prevent hard coding a specific step #

* Spelling and grammar correction.

* Update CONTRIBUTING.md

Co-authored-by: Ozi Boms <zboms123@gmail.com>

* Update CONTRIBUTING.md

Co-authored-by: Ozi Boms <zboms123@gmail.com>

* Update CONTRIBUTING.md

Co-authored-by: Ozi Boms <zboms123@gmail.com>

* Update CONTRIBUTING.md

Co-authored-by: Ozi Boms <zboms123@gmail.com>

* Update CONTRIBUTING.md

Co-authored-by: Ozi Boms <zboms123@gmail.com>

---------

Co-authored-by: Ozi Boms <zboms123@gmail.com>
2023-04-10 15:08:32 -07:00
Caroline Quigg 9ed945e9a4
Merge pull request #316 from Azure/feature/302-update-get-resource-by-type-tests
Test all resources in  Get-ResourceByType unit tests
2023-04-10 10:35:35 -07:00
Mary Sha 66dcaa0908
Generate `-BeSuccessful` Tests (#318)
* Minimum support for be successful tests

* Add supported test types as a method to resource type class

* Cleanup the language provider interface

* Resolve csharpier warning
2023-04-10 10:17:44 -07:00
Ozi Boms e64dd9acc6
Add App Insights Diagnostic Settings Support (#317)
* init

* bicep working

* lint

* line length
2023-04-10 10:13:52 -07:00
Caroline c09d7b6a0e add missing parameters 2023-04-07 19:07:30 -07:00
Caroline 8ba02217cf update iterator to be more descriptive 2023-04-07 18:53:27 -07:00
Caroline 829566e5e4 validate function is called with required parameters 2023-04-07 18:53:27 -07:00
Caroline 266e31cfd1 move test case generation to before discovery 2023-04-07 18:53:27 -07:00
Caroline 8892360ff0 test get resource by type with every resource 2023-04-07 18:53:26 -07:00
Ozi Boms 58a19c9ba0
Cosmos DB Sql Role Assignment and Role Definition (#309)
* init

* removde cmdlet binding and update linter

* update based on comments

* update newly added resource types

* line length

* length

* fix role assignment + lines

* fix stale API versions

* utf-8 w bom

* unit tests + line lengths

* un-encode

* initial commit of role support for cosmosdb

* add bicep

* role definition

* revert test values

* linting

* comments

* comments

* add instructions for srvc principal id

* remove TODOs
2023-04-07 12:13:59 -07:00