-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[App Service] Fix #30336, #29761: Improve --scope and --linux-fx-version help text and examples
#33065
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
Closed
+13
−1
Closed
[App Service] Fix #30336, #29761: Improve --scope and --linux-fx-version help text and examples
#33065
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 hidden or 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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1665,6 +1665,15 @@ | |||||
| - name: set configuration through a JSON file called params.json | ||||||
| text: > | ||||||
| az webapp config set -g MyResourceGroup -n MyUniqueApp --generic-configurations "@.\\params.json" | ||||||
| - name: Set the linux runtime stack to Python 3.11 (format is RUNTIME|VERSION). | ||||||
| text: > | ||||||
| az webapp config set -g MyResourceGroup -n MyUniqueApp --linux-fx-version "PYTHON|3.11" | ||||||
| - name: Set the linux runtime stack to Node.js 18 LTS. | ||||||
| text: > | ||||||
| az webapp config set -g MyResourceGroup -n MyUniqueApp --linux-fx-version "NODE|18-lts" | ||||||
| - name: Set the linux runtime stack to .NET 8.0. | ||||||
| text: > | ||||||
| az webapp config set -g MyResourceGroup -n MyUniqueApp --linux-fx-version "DOTNETCORE|8.0" | ||||||
|
|
||||||
| """ | ||||||
|
|
||||||
|
|
@@ -1910,6 +1919,9 @@ | |||||
| - name: Create a web app with end-to-end encryption enabled and minimum TLS version 1.2 | ||||||
| text: > | ||||||
| az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --end-to-end-encryption-enabled true --min-tls-version 1.2 | ||||||
| - name: Create a web app with a system-assigned managed identity and grant it access to a storage account. | ||||||
| text: > | ||||||
| az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --assign-identity [system] --scope /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Storage/storageAccounts/{storageAccount} --role Contributor | ||||||
|
||||||
| az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --assign-identity [system] --scope /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Storage/storageAccounts/{storageAccount} --role Contributor | |
| az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --assign-identity "[system]" --scope /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Storage/storageAccounts/{storageAccount} --role Contributor |
This file contains hidden or 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
Oops, something went wrong.
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.
The example uses
--role Contributorat the storage account scope while the description says “grant it access to a storage account”. "Contributor" is broad (management-plane) and may be misleading for customers who expect data access; consider using a least-privilege role (e.g.,Readerfor management access, or a storage data role if you intend data access) and/or adjust the example description to clarify what access is being granted.