-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use arm template parameters as sole input for live test environment variables #2247
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"azConfigEndpointSuffix": ".azconfig.azure.cn", | ||
"azureAuthorityHost": "https://login.chinacloudapi.cn/", | ||
"cognitiveServicesEndpointSuffix": ".cognitiveservices.azure.cn", | ||
"containerRegistryEndpointSuffix": ".azurecr.cn", | ||
"cosmosEndpointSuffix": "cosmos.azure.cn", | ||
"enableStorageVersioning": false, | ||
"keyVaultDomainSuffix": ".vault.azure.cn", | ||
"keyVaultEndpointSuffix": ".vault.azure.cn", | ||
"keyVaultSku": "standard", | ||
"searchEndpointSuffix": "search.azure.cn", | ||
"serviceBusEndpointSuffix": ".servicebus.chinacloudapi.cn", | ||
"storageEndpointSuffix": "core.chinacloudapi.cn", | ||
"textAnalyticsSku": "S" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"azureAuthorityHost": "https://login.microsoftonline.com/", | ||
"cognitiveServicesEndpointSuffix": ".cognitiveservices.azure.com", | ||
"communicationServicesEndpointSuffix": ".communication.azure.com", | ||
"keyVaultDomainSuffix": ".vault.azure.net", | ||
"keyVaultEndpointSuffix": ".vault.azure.net", | ||
"storageEndpointSuffix": "core.windows.net" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"azConfigEndpointSuffix": ".azconfig.azure.us", | ||
"azureAuthorityHost": "https://login.microsoftonline.us/", | ||
"cognitiveServicesEndpointSuffix": ".cognitiveservices.azure.us", | ||
"containerRegistryEndpointSuffix": ".azurecr.us", | ||
"cosmosEndpointSuffix": "cosmos.azure.us", | ||
"enableStorageVersioning": false, | ||
"formRecognizerLocation": "usgovvirginia", | ||
"keyVaultDomainSuffix": ".vault.usgovcloudapi.net", | ||
"keyVaultEndpointSuffix": ".vault.usgovcloudapi.net", | ||
"keyVaultSku": "premium", | ||
"searchEndpointSuffix": "search.azure.us", | ||
"serviceBusEndpointSuffix": ".servicebus.usgovcloudapi.net", | ||
"storageEndpointSuffix": "core.usgovcloudapi.net" | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we leave as-is? I've long practiced JavaScript-like bracketing because for pipelines like when using
ForEach-Object
, putting a{
on the same line means you don't need to use a continuation character. For people who don't know PowerShell as well, this can be very confusing why a script does things differently in different places. Using a consistent bracketing style eliminates that confusion.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to buy goodwill from @weshaggard because he likes net-style function syntax and usually makes these comments on my powershell PRs 😄 I don't have a strong opinion either way so I'll let you two duke it out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think your point about script accessibility for powershell newcomers is a good one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically, to highlight the difference:
Notice the backtick above. Without it, errors abound. So for the sake of consistency and readability, I've gone with JavaScript-style bracing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still, this isn't blocking so I'll unblock, but I think it's worth changing back, @weshaggard. You have previously mentioned about newcomers to the script and why a lot of my PowerShelly shortcuts weren't the best for approachability. I think the same is true here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is definitely some brace issues in PS. I still like having the braces on there own lines for larger blocks, except for when you cannot like the pipelines. I'm also pushing us to not depend on the pipeline syntax in most of our scripts as well as I think they cause more issues then they help with, they are nice at the command line but less so in script files.
As for consistency there is not a great way to be fully consistent but I do want to get some coding style configurations setup for our PS scripts at some point, I believe we have an issue on the backlog for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pipeline syntax has been there since the beginning. If there are scenarios you'd like me to help with, please point them out. It's been my daily driver - and I'm live in a terminal - since pre-1.0 days, when it was just "Monad". Never had a problem if functions are written correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pipelines main goal are for doing things on a single line from the command shell which is great, however when using them in a scripting context they can complicate things. One example is the returning of null, single or list of items when you are filtering. That causes a lot of redundant code and errors when trying to work with lists in different contexts from scripting. That is why I recommend we use the ".Where(...)" on an array over using a pipeline with Where-Object. That ensures that you are always working with a list and you don't end up switching data types in different contexts.
For what it's worth I to have been using PS since it was called monad as my daily shell. At any rate probably not worth having this debate on this particular PR.