Skip to main content

web_app_sites_controllers

Creates, updates, deletes, gets or lists a web_app_sites_controllers resource.

Overview

Nameweb_app_sites_controllers
TypeResource
Idazure.migrate.web_app_sites_controllers

Fields

NameDatatypeDescription
discovery_scenariotextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
service_endpointtextfield from the properties object
siteNametextfield from the properties object
site_appliance_properties_collectiontextfield from the properties object
subscriptionIdtextfield from the properties object
webAppSiteNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, siteName, subscriptionId, webAppSiteNameMethod to get a site.
list_by_master_siteSELECTresourceGroupName, siteName, subscriptionIdMethod to get all sites.
createINSERTresourceGroupName, siteName, subscriptionId, webAppSiteNameMethod to create a WebApp site.
deleteDELETEresourceGroupName, siteName, subscriptionId, webAppSiteNameDeletes the WebApp site.
updateUPDATEresourceGroupName, siteName, subscriptionId, webAppSiteNameMethod to update an existing site.
error_summaryEXECresourceGroupName, siteName, subscriptionId, webAppSiteNameMMethod to get error summary from web app site.
export_inventoryEXECresourceGroupName, siteName, subscriptionId, webAppSiteNameMethod to generate report containing web app inventory.
refreshEXECresourceGroupName, siteName, subscriptionId, webAppSiteNameMethod to refresh a site.
summaryEXECresourceGroupName, siteName, subscriptionId, webAppSiteNameMethod to get site usage/summary.

SELECT examples

Method to get all sites.

SELECT
discovery_scenario,
provisioning_state,
resourceGroupName,
service_endpoint,
siteName,
site_appliance_properties_collection,
subscriptionId,
webAppSiteName
FROM azure.migrate.vw_web_app_sites_controllers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new web_app_sites_controllers resource.

/*+ create */
INSERT INTO azure.migrate.web_app_sites_controllers (
resourceGroupName,
siteName,
subscriptionId,
webAppSiteName,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ siteName }}',
'{{ subscriptionId }}',
'{{ webAppSiteName }}',
'{{ properties }}'
;

UPDATE example

Updates a web_app_sites_controllers resource.

/*+ update */
UPDATE azure.migrate.web_app_sites_controllers
SET
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND webAppSiteName = '{{ webAppSiteName }}';

DELETE example

Deletes the specified web_app_sites_controllers resource.

/*+ delete */
DELETE FROM azure.migrate.web_app_sites_controllers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND webAppSiteName = '{{ webAppSiteName }}';