Skip to content
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

New command: m365 pp website webresource remove #6368

Open
appieschot opened this issue Sep 19, 2024 · 0 comments
Open

New command: m365 pp website webresource remove #6368

appieschot opened this issue Sep 19, 2024 · 0 comments
Labels
needs peer review Needs second pair of eyes to review the spec or PR new feature

Comments

@appieschot
Copy link
Member

Usage

m365 pp website webresource remove [options]

Description

Removes the specified webresource

Options

Option Description
-i, --id [id] ID of the webresource to remove.
--websiteId [websiteId] ID of the Power Pages website. Specify either websiteId or websiteName but not both.
--websiteName [websiteName] The unique name (not the display name) of the Power Pages website. Specify either websiteId or websiteName but not both.
-e, --environmentName <environmentName> The name of the environment where the web role is located.
--asAdmin Run the command as admin and retrieve Power Pages websites for environments you do not have explicitly assigned permissions to.
-f, --force Don't prompt for confirmation

Examples

Deletes webresource 2ca3eaa5-140f-4175-8261-3272edf9f339 from Power Pages website Contoso-Demo in the given environment.

m365 pp website webresource remove --id "2ca3eaa5-140f-4175-8261-3272edf9f339" --websiteName Contoso-Demo --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"

Deletes a webresource from the selected Power Pages website in the given environment without confirmation prompt.

m365 pp website webresource remove --id "2ca3eaa5-140f-4175-8261-3272edf9f339" --websiteId 2ca3eaa5-140f-4175-8261-3272edf9f339 --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --force

Additional Info

More details here: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/reference/entities/webresourceset. In this case the API call would be a DELETE request to ${dynamicsApiUrl}/api/data/v9.2/webresourceset(webresourceid)

@appieschot appieschot added new feature needs peer review Needs second pair of eyes to review the spec or PR labels Sep 19, 2024
@appieschot appieschot changed the title m365 pp website webresource remove New command: m365 pp website webresource remove Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs peer review Needs second pair of eyes to review the spec or PR new feature
Projects
None yet
Development

No branches or pull requests

1 participant