-
Notifications
You must be signed in to change notification settings - Fork 13
Added bicepconfig, main, metadata, and README #237
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
Closed
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
11 changes: 11 additions & 0 deletions
11
quickstart-templates/remove-serviceprincipal-credentials/README.md
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 |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Remove key and certificate credentials on a service principal | ||
|
|
||
| > **Note**: Minimum Bicep version required to deploy this quickstart template is [v0.32.4](https://github.com/Azure/bicep/releases/tag/v0.32.4). | ||
|
|
||
| This template allows you to remove credentials on a service principal. | ||
|
|
||
| You can deploy the template with the following Azure CLI command (replace `<resource-group>` and `<app-id-of-service-principal>` with the necessary values for your deployment): | ||
|
|
||
| ```sh | ||
| az deployment group create --resource-group <resource-group> --template-file main.bicep --parameters applicationId=<app-id-of-service-principal> | ||
| ``` | ||
9 changes: 9 additions & 0 deletions
9
quickstart-templates/remove-serviceprincipal-credentials/bicepconfig.json
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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "experimentalFeaturesEnabled": { | ||
| "extensibility": true | ||
| }, | ||
| // specify an alias for the version of the v1.0 dynamic types package you want to use | ||
| "extensions": { | ||
| "microsoftGraphV1": "br:mcr.microsoft.com/bicep/extensions/microsoftgraph/v1.0:0.2.0-preview" | ||
| } | ||
| } |
10 changes: 10 additions & 0 deletions
10
quickstart-templates/remove-serviceprincipal-credentials/main.bicep
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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| extension microsoftGraphV1 | ||
|
|
||
| @description('Application Id of the service principal') | ||
| param applicationId string | ||
|
|
||
| resource removeSPCreds 'Microsoft.Graph/servicePrincipals@v1.0' = { | ||
| appId: applicationId | ||
| keyCredentials: [] | ||
| passwordCredentials: [] | ||
| } |
12 changes: 12 additions & 0 deletions
12
quickstart-templates/remove-serviceprincipal-credentials/metadata.json
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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "$schema": "https://aka.ms/azure-quickstart-templates-metadata-schema#", | ||
| "type": "QuickStart", | ||
| "itemDisplayName": "Remove key and certificate credentials on a service principal", | ||
| "description": "This template removes credentials (password and certificates) on a service principal", | ||
| "summary": "This template removes credentials (password and certificates) on a service principal", | ||
|
linkhp marked this conversation as resolved.
Outdated
|
||
| "githubUsername": "linkhp", | ||
| "docOwner": "dkershaw10", | ||
| "dateUpdated": "2025-05-06", | ||
| "validationType": "Manual", | ||
| "languages": ["bicep"] | ||
| } | ||
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.
Could you add a bit more context in the README? Maybe describing the scenario with more details, like when would someone want to remove credentials on a service principal, what does it mean to remove them, how should service principals authenticate themselves, etc
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.
Addressed via recent commits.