def METHOD_NAME():
    client = AppPlatformManagementClient(
        credential=DefaultAzureCredential(),
        subscription_id="00000000-0000-0000-0000-000000000000",
    )
    response = client.apps.begin_create_or_update(
        resource_group_name="myResourceGroup",
        service_name="myservice",
        app_name="myapp",
        app_resource={
            "identity": {
                "principalId": None,
                "tenantId": None,
                "type": "SystemAssigned,UserAssigned",
                "userAssignedIdentities": {
                    "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {
                        "clientId": None,
                        "principalId": None,
                    },
                    "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {
                        "clientId": None,
                        "principalId": None,
                    },
                },
            },
            "location": "eastus",
            "properties": {
                "addonConfigs": {
                    "ApplicationConfigurationService": {
                        "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configurationServices/myacs"
                    },
                    "ServiceRegistry": {
                        "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/serviceRegistries/myServiceRegistry"
                    },
                },
                "customPersistentDisks": [
                    {
                        "customPersistentDiskProperties": {
                            "mountOptions": ["uid=0", "gid=0", "dir_mode=0777", "file_mode=0777"],
                            "mountPath": "/mypath1/mypath2",
                            "shareName": "myFileShare",
                            "type": "AzureFileVolume",
                        },
                        "storageId": "myASCStorageID",
                    }
                ],
                "enableEndToEndTLS": False,
                "httpsOnly": False,
                "loadedCertificates": [
                    {
                        "loadTrustStore": False,
                        "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert1",
                    },
                    {
                        "loadTrustStore": True,
                        "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert2",
                    },
                ],
                "persistentDisk": {"mountPath": "/mypersistentdisk", "sizeInGB": 2},
                "public": True,
                "temporaryDisk": {"mountPath": "/mytemporarydisk", "sizeInGB": 2},
            },
        },
    ).result()
    print(response)